Advertisement
Guest User

Untitled

a guest
Oct 9th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.39 KB | None | 0 0
  1. <?php
  2. if (!defined('ZNOTE_OS')) {
  3. $isWindows = (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN');
  4. define('ZNOTE_OS', ($isWindows) ? 'WINDOWS' : 'LINUX');
  5. }
  6.  
  7. // If you want to use items.php (not 100% yet, I guess)
  8. // Tested with TFS items.xml master (1.3)
  9. $config['items'] = false;
  10.  
  11. // Available options: TFS_02, TFS_03
  12. // TFS 0.2 = TFS_02
  13. // TFS 0.3 = TFS_03 (If ur using 0.3.6, set $config['salt'] to false)!
  14. // TFS 0.4 = TFS_03
  15. // TFS 1.0 = TFS_10 (Under developement)
  16. $config['TFSVersion'] = 'TFS_03';
  17. // As far as I know, OTX is based on TFS_03, so make sure TFS version is configured TFS_03
  18. $config['CustomVersion'] = false;
  19.  
  20. $config['site_title'] = '';
  21. $config['site_title_context'] = '';
  22. $config['site_url'] = "";
  23.  
  24. // Path to server folder without / Example: C:\Users\Alvaro\Documents\GitHub\forgottenserver
  25. $config['server_path'] = '\home\OTS';
  26.  
  27. // ------------------------ \\
  28. // MYSQL CONNECTION DETAILS \\
  29. // ------------------------ \\
  30.  
  31. // phpmyadmin username for OT server: (DONT USE "root" if ur hosting to public.).
  32. $config['sqlUser'] = '';
  33.  
  34. // phpmyadmin password for OT server:
  35. $config['sqlPassword'] = '';
  36.  
  37. // The database name to connect to. (This is usually same as username).
  38. $config['sqlDatabase'] = 'theforgottenserver';
  39.  
  40. // Hostname is usually localhost or 127.0.0.1.
  41. $config['sqlHost'] = '127.0.0.1';
  42.  
  43. // QR code authenticator Only works with TFS 1.2+
  44. $config['twoFactorAuthenticator'] = false;
  45. // You can use the mobile phone app "authy" with this.
  46.  
  47. /* CLOCK FUNCTION
  48. - getClock() = returns current time in numbers.
  49. - getClock(time(), true) = returns current time in formatted date
  50. - getClock(false, true) = same as above
  51. - getClock(false, true, false) = get current time, don't adjust timezone
  52. - echo getClock($profile_data['lastlogin'], true); = from characterprofile,
  53. explains when user was last logged in. */
  54. function getClock($time = false, $format = false, $adjust = true) {
  55. if ($time === false) $time = time();
  56. // Date string representation
  57. $date = "d F Y (H:i)"; // 15 July 2013 (13:50)
  58. if ($adjust) $adjust = (1 * 3600); // Adjust to fit your timezone.
  59. else $adjust = 0;
  60. if ($format) return date($date, $time+$adjust);
  61. else return $time+$adjust;
  62. }
  63.  
  64. // ------------------- \\
  65. // CUSTOM SERVER STUFF \\
  66. // ------------------- \\
  67. // Enable / disable Questlog function (true / false)
  68. $config['EnableQuests'] = false;
  69.  
  70. // array for filling questlog (Questid, max value, name, end of the quest fill 1 for the last part 0 for all others)
  71. $config['quests'] = array(
  72. array(1501,100,"Killing in the Name of",0),
  73. array(1502,150,"Killing in the Name of",0),
  74. array(65001,100,"Killing in the Name of",0),
  75. array(65002,150,"Killing in the Name of",0),
  76. array(65003,300,"Killing in the Name of",0),
  77. array(65004,3,"Killing in the Name of",0),
  78. array(65005,300,"Killing in the Name of",0),
  79. array(65006,150,"Killing in the Name of",0),
  80. array(65007,200,"Killing in the Name of",0),
  81. array(65008,300,"Killing in the Name of",0),
  82. array(65009,300,"Killing in the Name of",0),
  83. array(65010,300,"Killing in the Name of",0),
  84. array(65011,300,"Killing in the Name of",0),
  85. array(65012,300,"Killing in the Name of",0),
  86. array(65013,300,"Killing in the Name of",0),
  87. array(65014,300,"Killing in the Name of",1),
  88. array(12110,2,"The Inquisition",0),
  89. array(12111,7,"The Inquisition",0),
  90. array(12112,3,"The Inquisition",0),
  91. array(12113,6,"The Inquisition",0),
  92. array(12114,3,"The Inquisition",0),
  93. array(12115,3,"The Inquisition",0),
  94. array(12116,3,"The Inquisition",0),
  95. array(12117,5,"The Inquisition",1),
  96. array(330,3,"Sam's Old Backpack",1),
  97. array(12121,3,"The Ape City",0),
  98. array(12122,5,"The Ape City",0),
  99. array(12123,3,"The Ape City",0),
  100. array(12124,3,"The Ape City",0),
  101. array(12125,3,"The Ape City",0),
  102. array(12126,3,"The Ape City",0),
  103. array(12127,4,"The Ape City",0),
  104. array(12128,3,"The Ape City",0),
  105. array(12129,3,"The Ape City",1),
  106. array(12101,1,"The Ancient Tombs",0),
  107. array(12102,1,"The Ancient Tombs",0),
  108. array(12103,1,"The Ancient Tombs",0),
  109. array(12104,1,"The Ancient Tombs",0),
  110. array(12105,1,"The Ancient Tombs",0),
  111. array(12106,1,"The Ancient Tombs",0),
  112. array(12107,1,"The Ancient Tombs",1),
  113. array(12022,3,"Barbarian Test Quest",0),
  114. array(12022,3,"Barbarian Test Quest",0),
  115. array(12022,3,"Barbarian Test Quest",1),
  116. array(12025,3,"The Ice Islands Quest",0),
  117. array(12026,5,"The Ice Islands Quest",0),
  118. array(12027,3,"The Ice Islands Quest",0),
  119. array(12028,2,"The Ice Islands Quest",0),
  120. array(12029,6,"The Ice Islands Quest",0),
  121. array(12030,8,"The Ice Islands Quest",0),
  122. array(12031,3,"The Ice Islands Quest",0),
  123. array(12032,4,"The Ice Islands Quest",0),
  124. array(12033,2,"The Ice Islands Quest",0),
  125. array(12034,2,"The Ice Islands Quest",0),
  126. array(12035,2,"The Ice Islands Quest",0),
  127. array(12036,6,"The Ice Islands Quest",1),
  128. );
  129.  
  130. //Achivements based on "https://github.com/PrinterLUA/FORGOTTENSERVER-ORTS/blob/master/data/lib/achievements_lib.lua" (TFS 1.0)
  131. $config['Ach'] = false;
  132. $config['achievements'] = array(
  133. 35000 => array(
  134. 'First Dragon', //name
  135. 'Rumours say that you will never forget your first Dragon', //comment
  136. 'points' => '1', //points
  137. 'img' => 'http://www.tibia-wiki.net/images/Dragon.gif', //img link or folder (example)> 'images/dragon.png'
  138. ),
  139. 35001 => array(
  140. 'Uniwheel',
  141. 'You\'re probably one of the very few people with this classic and unique ride, hope it doesn\'t break anytime soon.', //comment
  142. 'points' => '1', //points
  143. 'img' => 'http://img1.wikia.nocookie.net/__cb20140214234600/tibia/en/images/e/e5/Uniwheel.gif', //img link or folder (example)> 'images/dragon.png'
  144. 'secret' => true
  145. ),
  146. 30001 => array(
  147. 'Allow Cookies?',
  148. 'With a perfectly harmless smile you fooled all of those wicecrackers into eating your exploding cookies. Consider a boy or girl scout outfit next time to make the trick even better.',
  149. 'points' => '10', // 1-3 points (1star), 4-6 points(2 stars), 7-9 points(3 stars), 10 points => (4 stars)
  150. 'secret' => true // show "secret" image
  151. ),
  152. 30002 => array(
  153. 'Backpack Tourist',
  154. 'If someone lost a random thing in a random place, you\'re probably a good person to ask and go find it, even if you don\'t know what and where.',
  155. 'points' => '7'
  156. ),
  157. 30003 => array(
  158. 'Bearhugger',
  159. 'Warm, furry and cuddly - though that same bear you just hugged would probably rip you into pieces if he had been conscious, he reminded you of that old teddy bear which always slept in your bed when you were still small.',
  160. 'points' => '4'
  161. ),
  162. 30004 => array(
  163. 'Bone Brother',
  164. 'You\'ve joined the undead bone brothers - making death your enemy and your weapon as well. Devouring what\'s weak and leaving space for what\'s strong is your primary goal.',
  165. 'points' => '1'
  166. ),
  167. 30005 => array(
  168. 'Chorister',
  169. 'Lalalala... you now know the cult\'s hymn sung in Liberty Bay by heart. Not that hard, considering that it mainly consists of two notes and repetitive lyrics.',
  170. 'points' => '1'
  171. ),
  172. 30006 => array(
  173. 'Fountain of Life',
  174. 'You found and took a sip from the Fountain of Life. Thought it didn\'t grant you eternal life, you feel changed and somehow at peace.',
  175. 'points' => '1',
  176. 'secret' => true
  177. ),
  178. 30007 => array(
  179. 'Here, Fishy Fishy!',
  180. 'Ah, the smell of the sea! Standing at the shore and casting a line is one of your favourite activities. For you, fishing is relaxing - and at the same time, providing easy food. Perfect!',
  181. 'points' => '1'
  182. ),
  183. 30008 => array(
  184. 'Honorary Barbarian',
  185. 'You\'ve hugged bears, pushed mammoths and proved your drinking skills. And even though you have a slight hangover, a partially fractured rib and some greasy hair on your tongue, you\'re quite proud to call yourself a honorary barbarian from now on.',
  186. 'points' => '1'
  187. ),
  188. 30009 => array(
  189. 'Huntsman',
  190. 'You\'re familiar with hunting tasks and have carried out quite a few already. A bright career as hunter for the Paw & Fur society lies ahead!',
  191. 'points' => '2'
  192. ),
  193. 300010 => array(
  194. 'Just in Time',
  195. 'You\'re a fast runner and are good at delivering wares which are bound to decay just in the nick of time, even if you can\'t use any means of transportation or if your hands get cold or smelly in the process.',
  196. 'points' => '1'
  197. ),
  198. 30011 => array(
  199. 'Matchmaker',
  200. 'You don\'t believe in romance to be a coincidence or in love at first sight. In fact - love potions, bouquets of flowers and cheesy poems do the trick much better than ever could. Keep those hormones flowing!',
  201. 'points' => '1',
  202. 'secret' => true
  203. ),
  204. 30012 => array(
  205. 'Nightmare Knight',
  206. 'You follow the path of dreams and that of responsibility without self-centered power. Free from greed and selfishness, you help others without expecting a reward.',
  207. 'points' => '1',
  208. 'secret' => true
  209. ),
  210. 30013 => array(
  211. 'Party Animal',
  212. 'Oh my god, it\'s a paaaaaaaaaaaarty! You\'re always in for fun, friends and booze and love being the center of attention. There\'s endless reasons to celebrate! Woohoo!',
  213. 'points' => '1',
  214. 'secret' => true
  215. ),
  216. 30014 => array(
  217. 'Secret Agent',
  218. 'Pack your spy gear and get ready for some dangerous missions in service of a secret agency. You\'ve shown you want to - but can you really do it? Time will tell.',
  219. 'points' => '1',
  220. 'secret' => true
  221. ),
  222. 30015 => array(
  223. 'Talented Dancer',
  224. 'You\'re a lord or lady of the dance - and not afraid to use your skills to impress tribal gods. One step to the left, one jump to the right, twist and shout!',
  225. 'points' => '1'
  226. ),
  227. 30016 => array(
  228. 'Territorial',
  229. 'Your map is your friend - always in your back pocket and covered with countless marks of interesting and useful locations. One could say that you might be lost without it - but luckily there\'s no way to take it from you.',
  230. 'points' => '1'
  231. ),
  232. 30017 => array(
  233. 'Worm Whacker',
  234. 'Weehee! Whack those worms! You sure know how to handle a big hammer.',
  235. 'points' => '1',
  236. 'secret' => true
  237. ),
  238. 30018 => array(
  239. 'Allowance Collector',
  240. 'You certainly have your ways when it comes to acquiring money. Many of them are pink and paved with broken fragments of porcelain.',
  241. 'points' => '1'
  242. ),
  243. 30019 => array(
  244. 'Amateur Actor',
  245. 'You helped bringing Princess Buttercup, Doctor Dumbness and Lucky the Wonder Dog to life - and will probably dream of them tonight, since you memorised your lines perfectly. What a .. special piece of.. screenplay.',
  246. 'points' => '2'
  247. ),
  248. 30020 => array(
  249. 'Animal Activist',
  250. 'Phasellus lacinia odio dolor, in elementum mauris dapibus a. Vivamus nec gravida libero, ac pretium eros. Nam in dictum ealesuada sodales. Nullam eget ex sit amet urna fringilla molestie. Aliquam lobortis urna eros, vel elementum metus accumsan eu. Nulla porttitor in lacus vel ullamcorper.',
  251. 'points' => '2',
  252. 'secret' => true
  253. ),
  254. );
  255.  
  256. // TFS 1.0 powergamers and top online
  257. //Before enabling powergamers, make sure that you have added LUA files and possible cloums to your server.
  258. //files can be found at Lua folder.
  259.  
  260. $config['powergamers'] = array(
  261. 'enabled' => false, // Enable or disable page
  262. 'limit' => 20, //Number of players that it will show.
  263. );
  264.  
  265. $config['toponline'] = array(
  266. 'enabled' => false, // Enable or disable page
  267. 'limit' => 20, //Number of players that it will show.
  268. );
  269.  
  270. // Vocation IDs, names and which vocation ID they got promoted from
  271. $config['vocations'] = array(
  272. 0 => array(
  273. 'name' => 'No vocation',
  274. 'fromVoc' => false
  275. ),
  276. 1 => array(
  277. 'name' => 'Sorcerer',
  278. 'fromVoc' => false
  279. ),
  280. 2 => array(
  281. 'name' => 'Druid',
  282. 'fromVoc' => false
  283. ),
  284. 3 => array(
  285. 'name' => 'Paladin',
  286. 'fromVoc' => false
  287. ),
  288. 4 => array(
  289. 'name' => 'Knight',
  290. 'fromVoc' => false
  291. ),
  292. 5 => array(
  293. 'name' => 'Master Sorcerer',
  294. 'fromVoc' => 1
  295. ),
  296. 6 => array(
  297. 'name' => 'Elder Druid',
  298. 'fromVoc' => 2
  299. ),
  300. 7 => array(
  301. 'name' => 'Royal Paladin',
  302. 'fromVoc' => 3
  303. ),
  304. 8 => array(
  305. 'name' => 'Elite Knight',
  306. 'fromVoc' => 4
  307. )
  308. );
  309.  
  310. /* Vocation stat gains per level
  311. - Ordered by vocation ID
  312. - Currently used for admin_skills page. */
  313. $config['vocations_gain'] = array(
  314. 0 => array(
  315. 'hp' => 5,
  316. 'mp' => 5,
  317. 'cap' => 10
  318. ),
  319. 1 => array(
  320. 'hp' => 5,
  321. 'mp' => 30,
  322. 'cap' => 10
  323. ),
  324. 2 => array(
  325. 'hp' => 5,
  326. 'mp' => 30,
  327. 'cap' => 10
  328. ),
  329. 3 => array(
  330. 'hp' => 10,
  331. 'mp' => 15,
  332. 'cap' => 20
  333. ),
  334. 4 => array(
  335. 'hp' => 15,
  336. 'mp' => 5,
  337. 'cap' => 25
  338. ),
  339. 5 => array(
  340. 'hp' => 5,
  341. 'mp' => 30,
  342. 'cap' => 10
  343. ),
  344. 6 => array(
  345. 'hp' => 5,
  346. 'mp' => 30,
  347. 'cap' => 10
  348. ),
  349. 7 => array(
  350. 'hp' => 10,
  351. 'mp' => 15,
  352. 'cap' => 20
  353. ),
  354. 8 => array(
  355. 'hp' => 15,
  356. 'mp' => 5,
  357. 'cap' => 25
  358. ),
  359. );
  360. // Town ids and names: (In RME map editor, open map, click CTRL + T to view towns, their names and their IDs.
  361. // townID => 'townName' etc: ['3'=>'Thais']
  362. $config['towns'] = array(
  363. 1 => 'Aphel City',
  364. 2 => 'Thais',
  365. 3 => 'Kazordoon',
  366. 4 => 'Carlin',
  367. 5 => "Ab'Dendriel",
  368. 6 => 'Rookgaard',
  369. 7 => 'Liberty Bay',
  370. 8 => 'Port Hope',
  371. 9 => 'Ankrahmun',
  372. 10 => 'Darashia',
  373. 11 => 'Edron',
  374. 12 => 'Svargrond',
  375. 13 => 'Yalahar',
  376. 14 => 'Farmine',
  377. 28 => 'Gray Beach',
  378. 29 => 'Roshamuul',
  379. 30 => 'Rookgaard Tutorial Island',
  380. 31 => 'Isle of Solitude',
  381. 32 => 'Island Of Destiny',
  382. 33 => 'Rathleton'
  383. );
  384.  
  385. // - TFS 1.0 ONLY -- HOUSE AUCTION SYSTEM!
  386. $config['houseConfig'] = array(
  387. 'HouseListDefaultTown' => 1, // Default town id to display when visting house list page page.
  388. 'minimumBidSQM' => 200, // minimum bid cost on auction (per SQM)
  389. 'auctionPeriod' => 24 * 60 * 60, // 24 hours auction time.
  390. 'housesPerPlayer' => 1,
  391. 'requirePremium' => false,
  392. 'levelToBuyHouse' => 8,
  393. );
  394.  
  395. // Leave on black square in map and player should get teleported to their selected town.
  396. // If chars get buggy set this position to a beginner location to force players there.
  397. $config['default_pos'] = array(
  398. 'x' => 5,
  399. 'y' => 5,
  400. 'z' => 2,
  401. );
  402.  
  403. $config['war_status'] = array(
  404. 0 => 'Pending',
  405. 1 => 'Accepted',
  406. 2 => 'Rejected',
  407. 3 => 'Cancelled',
  408. 4 => 'Ended by kill limit',
  409. 5 => 'Ended',
  410. );
  411.  
  412. /* -- SUB PAGES --
  413. Some custom layouts/templates have custom pages, they can use
  414. this sub page functionality for that.
  415. */
  416. $config['allowSubPages'] = true;
  417.  
  418. // ---------------- \\
  419. // Create Character \\
  420. // ---------------- \\
  421.  
  422. // Max characters on each account:
  423. $config['max_characters'] = 7;
  424.  
  425. // Available character vocation users can create.
  426. $config['available_vocations'] = array(1, 2, 3, 4);
  427.  
  428. // Available towns (specify town ids, etc: (1, 2, 3); to display 3 town options (town id 1, 2 and 3).
  429. $config['available_towns'] = array(1);
  430.  
  431. $config['player'] = array(
  432. 'base' => array(
  433. 'level' => 8,
  434. 'health' => 185,
  435. 'mana' => 90,
  436. 'cap' => 470,
  437. 'soul' => 100
  438. ),
  439. // health, mana cap etc are calculated with $config['vocations_gain'] and 'base' values of $config['player']
  440. 'create' => array(
  441. 'level' => 8,
  442. 'novocation' => array( // vocation id 0 (No vocation) special settings
  443. 'level' => 1, // Level
  444. 'forceTown' => true,
  445. 'townId' => 30
  446. ),
  447. 'skills' => array( // See $config['vocations'] for proper vocation names of these IDs
  448. // No vocation
  449. 0 => array(
  450. 'magic' => 0,
  451. 'fist' => 10,
  452. 'club' => 10,
  453. 'axe' => 10,
  454. 'sword' => 10,
  455. 'dist' => 10,
  456. 'shield' => 50,
  457. 'fishing' => 50,
  458. ),
  459. // Sorcerer
  460. 1 => array(
  461. 'magic' => 5,
  462. 'fist' => 10,
  463. 'club' => 10,
  464. 'axe' => 10,
  465. 'sword' => 10,
  466. 'dist' => 10,
  467. 'shield' => 15,
  468. 'fishing' => 30,
  469. ),
  470. // Druid
  471. 2 => array(
  472. 'magic' => 5,
  473. 'fist' => 10,
  474. 'club' => 10,
  475. 'axe' => 10,
  476. 'sword' => 10,
  477. 'dist' => 10,
  478. 'shield' => 15,
  479. 'fishing' => 30,
  480. ),
  481. // Paladin
  482. 3 => array(
  483. 'magic' => 3,
  484. 'fist' => 10,
  485. 'club' => 10,
  486. 'axe' => 10,
  487. 'sword' => 10,
  488. 'dist' => 15,
  489. 'shield' => 20,
  490. 'fishing' => 30,
  491. ),
  492. // Knight
  493. 4 => array(
  494. 'magic' => 1,
  495. 'fist' => 15,
  496. 'club' => 15,
  497. 'axe' => 15,
  498. 'sword' => 15,
  499. 'dist' => 10,
  500. 'shield' => 40,
  501. 'fishing' => 30,
  502. ),
  503. ),
  504. 'male_outfit' => array(
  505. 'id' => 128,
  506. 'head' => 78,
  507. 'body' => 68,
  508. 'legs' => 58,
  509. 'feet' => 76
  510. ),
  511. 'female_outfit' => array(
  512. 'id' => 136,
  513. 'head' => 78,
  514. 'body' => 68,
  515. 'legs' => 58,
  516. 'feet' => 76
  517. )
  518. )
  519. );
  520.  
  521. // Minimum allowed character name letters. Etc 4 letters: "Kåre".
  522. $config['minL'] = 3;
  523. // Maximum allowed character name letters. Etc 20 letters: "Bobkåreolesofiesberg"
  524. $config['maxL'] = 20;
  525.  
  526. // Maximum allowed character name words. Etc 2 words = "Bob Kåre", 3 words: "Bob Arne Kåre" as max char name words.
  527. $config['maxW'] = 3;
  528.  
  529. // -------------- \\
  530. // WEBSITE STUFF \\
  531. // -------------- \\
  532.  
  533. // News to be displayed per page
  534. $config['news_per_page'] = 5;
  535.  
  536. // Enable or disable changelog ticker in news page.
  537. $config['UseChangelogTicker'] = true;
  538.  
  539. // Highscore configuration
  540. $config['highscore'] = array(
  541. 'rows' => 100,
  542. 'rowsPerPage' => 20,
  543. 'ignoreGroupId' => 2, // Ignore this and higher group ids (staff)
  544. );
  545.  
  546. // ONLY FOR TFS 0.2 (TFS 0.3/4 users don't need to care about this, as its fully loaded from db)
  547. $config['house'] = array(
  548. 'house_file' => 'C:\test\Mystic Spirit_0.2.5\data\world\forgotten-house.xml',
  549. 'price_sqm' => '50', // price per house sqm
  550. );
  551.  
  552. $config['delete_character_interval'] = '3 DAY'; // Delay after user character delete request is executed eg. 1 DAY, 2 HOUR, 3 MONTH etc.
  553.  
  554. $config['validate_IP'] = false;
  555. $config['salt'] = false;
  556.  
  557. // Restricted names
  558. $config['invalidNameTags'] = array(
  559. "owner", "gamemaster", "hoster", "admin", "staff", "tibia", "account", "god", "anal", "ass", "fuck", "sex", "hitler", "pussy", "dick", "rape", "cm", "gm", "amazon", "valkyrie", "carrion worm", "rotworm", "rotworm queen", "cockroach", "kongra", "merlkin", "sibang", "crystal spider", "giant spider", "poison spider", "scorpion", "spider", "tarantula", "achad", "axeitus headbanger", "bloodpaw", "bovinus", "colerian the barbarian", "cursed gladiator", "frostfur", "orcus the cruel", "rocky", "the hairy one", "avalanche", "drasilla", "grimgor guteater", "kreebosh the exile", "slim", "spirit of earth", "spirit of fire", "spirit of water", "the dark dancer", "the hag", "darakan the executioner", "deathbringer", "fallen mooh'tah master ghar", "gnorre chyllson", "norgle glacierbeard", "svoren the mad", "the masked marauder", "the obliverator", "the pit lord", "webster", "barbarian bloodwalker", "barbarian brutetamer", "barbarian headsplitter", "barbarian skullhunter", "bear", "panda", "polar bear", "braindeath", "beholder", "elder beholder", "gazer", "chicken", "dire penguin", "flamingo", "parrot", "penguin", "seagull", "terror bird", "bazir", "infernatil", "thul", "munster", "son of verminor", "xenia", "zoralurk", "big boss trolliver", "foreman kneebiter", "mad technomancer", "man in the cave", "lord of the elements", "the count", "the plasmother", "dracola", "the abomination", "the handmaiden", "mr. punish", "the countess sorrow", "the imperor", "massacre", "apocalypse", "brutus bloodbeard", "deadeye devious", "demodras", "dharalion", "fernfang", "ferumbras", "general murius", "ghazbaran", "grorlam", "lethal lissy", "morgaroth", "necropharus", "orshabaal", "ron the ripper", "the evil eye", "the horned fox", "the old widow", "tiquandas revenge", "apprentice sheng", "dog", "hellhound", "war wolf", "winter wolf", "wolf", "chakoya toolshaper", "chakoya tribewarden", "chakoya windcaller", "blood crab", "crab", "frost giant", "frost giantess", "ice golem", "yeti", "acolyte of the cult", "adept of the cult", "enlightened of the cult", "novice of the cult", "ungreez", "dark torturer", "demon", "destroyer", "diabolic imp", "fire devil", "fury", "hand of cursed fate", "juggernaut", "nightmare", "plaguesmith", "blue djinn", "efreet", "admin", "green djinn", "marid", "frost dragon", "wyrm", "sea serpent", "dragon lord", "dragon", "hydra", "dragon hatchling", "dragon lord hatchling", "frost dragon hatchling", "dwarf geomancer", "dwarf guard", "dwarf soldier", "dwarf", "dworc fleshhunter", "dworc venomsniper", "dworc voodoomaster", "elephant", "mammoth", "elf arcanist", "elf scout", "elf", "charged energy elemental", "energy elemental", "massive energy elemental", "overcharged energy elemental", "energy overlord", "cat", "lion", "tiger", "azure frog", "coral frog", "crimson frog", "green frog", "orchid frog", "toad", "jagged earth elemental", "muddy earth elemental", "earth elemental", "massive earth elemental", "earth overlord", "gargoyle", "stone golem", "ghost", "phantasm", "phantasm", "pirate ghost", "spectre", "cyclops smith", "cyclops drone", "behemoth", "cyclops", "slick water elemental", "roaring water elemental", "ice overlord", "water elemental", "massive water elemental", "ancient scarab", "butterfly", "bug", "centipede", "exp bug", "larva", "scarab", "wasp", "lizard sentinel", "lizard snakecharmer", "lizard templar", "minotaur archer", "minotaur guard", "minotaur mage", "minotaur", "squirrel", "goblin demon", "badger", "bat", "deer", "the halloween hare", "hyaena", "pig", "rabbit", "silver rabbit", "skunk", "wisp", "dark monk", "monk", "tha exp carrier", "necromancer", "priestess", "orc berserker", "orc leader", "orc rider", "orc shaman", "orc spearman", "orc warlord", "orc warrior", "orc", "goblin leader", "goblin scavenger", "goblin", "goblin assassin", "assasin", "bandit", "black knight", "hero", "hunter", "nomad", "smuggler", "stalker", "poacher", "wild warrior", "ashmunrah", "dipthrah", "mahrdis", "morguthis", "omruc", "rahemos", "thalas", "vashresamun", "pirate buccaneer", "pirate corsair", "pirate cutthroat", "pirate marauder", "carniphila", "spit nettle", "fire overlord", "massive fire elemental", "blistering fire elemental", "blazing fire elemental", "fire elemental", "hellfire fighter", "quara constrictor scout", "quara hydromancer scout", "quara mantassin scout", "quara pincher scout", "quara predator scout", "quara constrictor", "quara hydromancer", "quara mantassin", "quara pincher", "quara predator", "cave rat", "rat", "cobra", "crocodile", "serpent spawn", "snake", "wyvern", "black sheep", "sheep", "mimic", "betrayed wraith", "bonebeast", "demon skeleton", "lost soul", "pirate skeleton", "skeleton", "skeleton warrior", "undead dragon", "defiler", "slime2", "slime", "bog raider", "ice witch", "warlock", "witch", "bones", "fluffy", "grynch clan goblin", "hacker", "minishabaal", "primitive", "tibia bug", "undead minion", "annihilon", "hellgorak", "latrivan", "madareth", "zugurosh", "ushuriel", "golgordan", "thornback tortoise", "tortoise", "eye of the seven", "deathslicer", "flamethrower", "magicthrower", "plaguethrower", "poisonthrower", "shredderthrower", "troll champion", "frost troll", "island troll", "swamp troll", "troll", "banshee", "blightwalker", "crypt shambler", "ghoul", "lich", "mummy", "vampire", "grim reaper", "frost dragon", "mercenary", "zathroth", "goshnar", "durin", "demora", "orc champion", "dracula", "alezzo", "prince almirith", "elf warlord", "magebomb", "nightmare scion"
  560. );
  561.  
  562. // Use guild logo system
  563. $config['use_guild_logos'] = true;
  564.  
  565. // Use country flags
  566. $config['country_flags'] = array(
  567. 'enabled' => true,
  568. 'highscores' => true,
  569. 'onlinelist' => true,
  570. 'characterprofile' => true,
  571. 'server' => 'http://flag.znote.eu'
  572. );
  573.  
  574. // Show outfits
  575. $config['show_outfits'] = array(
  576. 'shop' => true,
  577. 'highscores' => true,
  578. 'characterprofile' => true,
  579. 'onlinelist' => true,
  580. // Image server may be unreliable and only for test,
  581. // host yourself: https://otland.net/threads/item-images-10-92.242492/
  582. 'imageServer' => 'http://outfit-images.ots.me/animatedOutfits1099/animoutfit.php'
  583. );
  584.  
  585. // Level requirement to create guild? (Just set it to 1 to allow all levels).
  586. $config['create_guild_level'] = 555;
  587.  
  588. // Change Gender can be purchased in shop, or perhaps you want to allow everyone to change gender for free?
  589. $config['free_sex_change'] = false;
  590.  
  591. // Do you need to have premium account to create a guild?
  592. $config['guild_require_premium'] = false;
  593.  
  594. $config['guildwar_enabled'] = true;
  595.  
  596. // Use htaccess rewrite? (basically this makes website.com/username work instead of website.com/characterprofile.php?name=username
  597. // Linux users needs to enable mod_rewrite php extention to make it work properly, so set it to false if your lost and using Linux.
  598. $config['htwrite'] = true;
  599.  
  600. // What client version and server port are you using on this OT?
  601. // Used for the Downloads page.
  602. $config['client'] = 860; // 954 = client 9.54
  603.  
  604. // Download link to client.
  605. $config['client_download'] = 'http://clients.halfaway.net/windows.php?tibia='. $config['client'] .'';
  606. $config['client_download_linux'] = 'http://clients.halfaway.net/linux.php?tibia='. $config['client'] .'';
  607.  
  608. $config['port'] = 7171; // Port number to connect to your OT.
  609.  
  610. $config['status'] = array(
  611. 'status_check' => false, //enable or disable status checker
  612. 'status_ip' => '127.0.0.1',
  613. 'status_port' => "7171",
  614. );
  615.  
  616. // Gameserver info is used for client 11+ loginWebService
  617. $config['gameserver'] = array(
  618. 'ip' => '',
  619. 'port' => 7171,
  620. 'name' => '' // Must be identical to config.lua (OT config file) server name.
  621. );
  622.  
  623. // How often do you want highscores to update?
  624. $config['cache_lifespan'] = 5;//60 * 15; // 15 minutes.
  625.  
  626. // WARNING! Account names written here will have admin access to web page!
  627. $config['page_admin_access'] = array(
  628. 'admin',
  629. );
  630.  
  631. // Built-in FORUM
  632. // Enable forum, enable guildboards, level to create threads/post in them
  633. // How long do they have to wait to create thread or post?
  634. // How to design/display hidden/closed/sticky threads.
  635. $config['forum'] = array(
  636. 'enabled' => true,
  637. 'outfit_avatars' => true, // Show character outfit as forum avatar?
  638. 'player_position' => true, // Tutor, Community manager, God etc..?
  639. 'guildboard' => true,
  640. 'level' => 5,
  641. 'cooldownPost' => 1,//60,
  642. 'cooldownCreate' => 1,//180,
  643. 'newPostsBumpThreads' => true,
  644. 'hidden' => '<font color="orange">[H]</font>',
  645. 'closed' => '<font color="red">[C]</font>',
  646. 'sticky' => '<font color="green">[S]</font>',
  647. );
  648.  
  649. // Guilds and guild war pages will do lots of queries on bigger databases.
  650. // So its recommended to require login to view them, but you can disable this
  651. // If you don't have any problems with load.
  652. $config['require_login'] = array(
  653. 'guilds' => false,
  654. 'guildwars' => false,
  655. );
  656.  
  657. // IMPORTANT! Write a character name(that exist) that will represent website bans!
  658. // Or remember to create character "God Website" character exist.
  659. // If you don't do this, bann from admin panel won't work properly.
  660. $config['website_char'] = 'Luxitur';
  661.  
  662. //----------------\\
  663. // ADVANCED STUFF \\
  664. //----------------\\
  665. // Api config
  666. $config['api'] = array(
  667. 'debug' => false,
  668. );
  669.  
  670. // Email Server configurations (SMTP)
  671. /* Please consider using a released stable version of PHPMailer or you may run into issues, such as 6.0.1.
  672. Download PHPMailer: https://github.com/PHPMailer/PHPMailer/
  673. Extract to Znote AAC directory (where this config.php file is located)
  674. Rename the folder to "PHPMailer". Then configure this with your SMTP mail settings from your email provider.
  675. */
  676. $config['mailserver'] = array(
  677. 'register' => false, // Send activation mail
  678. 'accountRecovery' => false, // Recover username or password through mail
  679. 'host' => "smtp.gmail.com", // Outgoing mail server host.
  680. 'securityType' => 'ssl', // ssl or tls
  681. 'port' => 465, // SMTP port number - likely to be 465(ssl) or 587(tls)
  682. 'email' => '@',
  683. 'username' => '@', // Likely the same as email
  684. 'password' => 'password', // The password.
  685. 'debug' => false, // Enable debugging if you have problems and are looking for errors.
  686. 'fromName' => $config['site_title'],
  687. );
  688.  
  689. // Don't touch this unless you know what you are doing. (modifying this(key value) also requires modifications in OT files /XML/commands.xml).
  690. $config['ingame_positions'] = array(
  691. 1 => 'Player',
  692. 2 => 'Tutor',
  693. 3 => 'Senior Tutor',
  694. 4 => 'Gamemaster',
  695. 5 => 'Community Manager',
  696. 6 => 'God',
  697. 7 => 'Admin',
  698. );
  699.  
  700. // Enable OS advanced feautures? false = no, true = yes
  701. $config['os_enabled'] = false;
  702.  
  703. // What kind of computer are you hosting this website on?
  704. // Available options: LINUX or WINDOWS
  705. $config['os'] = ZNOTE_OS;
  706.  
  707. // Measure how much players are lagging in-game. (Not completed).
  708. $config['ping'] = false;
  709.  
  710. // BAN STUFF - Don't touch this unless you know what you are doing.
  711. // You can order the lines the way you want, from top to bot, in which order you
  712. // wish for them to be displayed in admin panel. Just make sure key[#] represent your description.
  713. $config['ban_type'] = array(
  714. 4 => 'NOTATION_ACCOUNT',
  715. 2 => 'NAMELOCK_PLAYER',
  716. 3 => 'BAN_ACCOUNT',
  717. 5 => 'DELETE_ACCOUNT',
  718. 1 => 'BAN_IPADDRESS',
  719. );
  720.  
  721. // BAN STUFF - Don't touch this unless you know what you are doing.
  722. // You can order the lines the way you want, from top to bot, in which order you
  723. // wish for them to be displayed in admin panel. Just make sure key[#] represent your description.
  724. $config['ban_action'] = array(
  725. 0 => 'Notation',
  726. 1 => 'Name Report',
  727. 2 => 'Banishment',
  728. 3 => 'Name Report + Banishment',
  729. 4 => 'Banishment + Final Warning',
  730. 5 => 'NR + Ban + FW',
  731. 6 => 'Statement Report',
  732. );
  733.  
  734. // Ban reasons, for changes beside default values to work with client,
  735. // you also need to edit sources (tools.cpp line 1096)
  736. $config['ban_reason'] = array(
  737. 0 => 'Offensive Name',
  738. 1 => 'Invalid Name Format',
  739. 2 => 'Unsuitable Name',
  740. 3 => 'Name Inciting Rule Violation',
  741. 4 => 'Offensive Statement',
  742. 5 => 'Spamming',
  743. 6 => 'Illegal Advertising',
  744. 7 => 'Off-Topic Public Statement',
  745. 8 => 'Non-English Public Statement',
  746. 9 => 'Inciting Rule Violation',
  747. 10 => 'Bug Abuse',
  748. 11 => 'Game Weakness Abuse',
  749. 12 => 'Using Unofficial Software to Play',
  750. 13 => 'Hacking',
  751. 14 => 'Multi-Clienting',
  752. 15 => 'Account Trading or Sharing',
  753. 16 => 'Threatening Gamemaster',
  754. 17 => 'Pretending to Have Influence on Rule Enforcement',
  755. 18 => 'False Report to Gamemaster',
  756. 19 => 'Destructive Behaviour',
  757. 20 => 'Excessive Unjustified Player Killing',
  758. 21 => 'Spoiling Auction',
  759. );
  760.  
  761. // BAN STUFF
  762. // Ban time duration selection in admin panel
  763. // seconds => description
  764. $config['ban_time'] = array(
  765. 3600 => '1 hour',
  766. 21600 => '6 hours',
  767. 43200 => '12 hours',
  768. 86400 => '1 day',
  769. 259200 => '3 days',
  770. 604800 => '1 week',
  771. 1209600 => '2 weeks',
  772. 2592000 => '1 month',
  773. );
  774.  
  775. // --------------- \\
  776. // SECURITY STUFF \\
  777. // --------------- \\
  778. $config['use_token'] = false;
  779. // Set up captcha keys on https://www.google.com/recaptcha/
  780. $config['use_captcha'] = false;
  781. $config['captcha_site_key'] = "Site key";
  782. $config['captcha_secret_key'] = "Secret key";
  783. $config['captcha_use_curl'] = false; // Set to false if you don't have cURL installed, otherwise set it to true
  784.  
  785. // Session prefix, if you are hosting multiple sites, make the session name different to avoid conflict.
  786. $config['session_prefix'] = 'znote_';
  787.  
  788. /* Store visitor data
  789. Store visitor data in the database, logging every IP visitng site,
  790. and how many times they have visited the site. And sometimes what
  791. they do on the site.
  792.  
  793. This helps to prevent POST SPAM (like register 1000 accounts in a few seconds)
  794. and other things which can stress and slow down the server.
  795.  
  796. The only downside is that database can get pretty fed up with much IP data
  797. if table never gets flushed once in a while. So I highly recommend you
  798. to configure flush_ip_logs if IPs are logged.
  799. */
  800. $config['log_ip'] = false;
  801.  
  802. // Flush IP logs each configured seconds, 60 * 15 = 15 minutes.
  803. // Set to false to entirely disable ip log flush.
  804. // It is important to flush for optimal performance.
  805. $config['flush_ip_logs'] = 59 * 27;
  806.  
  807. /* IP SECURTY REQUIRE: $config['log_ip'] = true;
  808. Configure how tight this security shall be.
  809. Etc: You can max click on anything/refresh page
  810. [max activity] 15 times, within time period 10
  811. seconds. During time_period, you can also only
  812. register 1 account and 1 character.
  813. */
  814. $config['ip_security'] = array(
  815. 'time_period' => 10, // In seconds
  816. 'max_activity' => 10, // page clicks/visits
  817. 'max_post' => 6, // register, create, highscore, character search such actions
  818. 'max_account' => 1, // register
  819. 'max_character' => 1, // create char
  820. 'max_forum_post' => 1, // Create threads and post in forum
  821. );
  822.  
  823. //////////////
  824. /// PAYPAL ///
  825. //////////////
  826.  
  827. // Write your paypal address here, and what currency you want to recieve money in.
  828. $config['paypal'] = array(
  829. 'enabled' => true,
  830. 'email' => '', // Example: paypal@mail.com
  831. 'currency' => '',
  832. 'points_per_currency' => 2, // 1 currency = ? points? [ONLY used to calculate bonuses]
  833. 'success' => "http://".$_SERVER['HTTP_HOST']."/success.php",
  834. 'failed' => "http://".$_SERVER['HTTP_HOST']."/failed.php",
  835. 'ipn' => "http://".$_SERVER['HTTP_HOST']."/ipn.php",
  836. 'showBonus' => true,
  837. );
  838.  
  839. // Configure the "buy now" buttons prices, first write price, then how many points you get.
  840. // Giving some bonus points for higher donations will tempt users to donate more.
  841. $config['paypal_prices'] = array(
  842. // price => points,
  843. 5 => 10, // 0% bonus
  844. 10 => 22, // +10% bonus
  845. 20 => 50, // +25% bonus
  846. 30 => 78, // +30% bonus
  847. 50 => 140, // +40% bonus
  848. );
  849.  
  850. /////////////////
  851. /// PAGSEGURO ///
  852. /////////////////
  853. // Write your pagseguro address here, and what currency you want to recieve money in.
  854. $config['pagseguro'] = array(
  855. 'enabled' => false,
  856. 'sandbox' => false,
  857. 'email' => '', // Example: pagseguro@mail.com
  858. 'token' => '',
  859. 'currency' => 'BRL',
  860. 'product_name' => '',
  861. 'price' => 100, // 1 real
  862. 'ipn' => "http://".$_SERVER['HTTP_HOST']."/pagseguro_ipn.php",
  863. 'urls' => array(
  864. 'www' => 'pagseguro.uol.com.br',
  865. 'ws' => 'ws.pagseguro.uol.com.br',
  866. 'stc' => 'stc.pagseguro.uol.com.br'
  867. )
  868. );
  869.  
  870. if ($config['pagseguro']['sandbox']) {
  871. $config['pagseguro']['urls'] = array_map(function ($item) {
  872. return str_replace('pagseguro', 'sandbox.pagseguro', $item);
  873. }, $config['pagseguro']['urls']);
  874. }
  875.  
  876. //////////////////
  877. /// PAYGOL SMS ///
  878. //////////////////
  879. // !!! Paygol takes 60%~ of the money, and send aprox 40% to your paypal.
  880. // You can configure paygol to send each month, then they will send money
  881. // to you 1 month after recieving 50+ eur.
  882. $config['paygol'] = array(
  883. 'enabled' => false,
  884. 'serviceID' => 86648, // Service ID from paygol.com
  885. 'secretKey' => 'xxxx-xxxx-xxxx-xxxx', // Secret key from paygol.com. Never share your secret key
  886. 'currency' => 'SEK',
  887. 'price' => 20,
  888. 'points' => 20,
  889. 'name' => '20 points',
  890. 'returnURL' => "http://".$_SERVER['HTTP_HOST']."/success.php",
  891. 'cancelURL' => "http://".$_SERVER['HTTP_HOST']."/failed.php"
  892. );
  893.  
  894. ////////////
  895. /// SHOP ///
  896. ////////////
  897. // If useDB is set to true, player can shop in-game as well using Znote LUA shop system plugin.
  898. $config['shop'] = array(
  899. 'enabled' => true,
  900. 'loginToView' => false, // Do user need to login to see the shop offers?
  901. 'enableShopConfirmation' => true, // Verify that user wants to buy with popup
  902. 'useDB' => false, // Fetch offers from database, or the below config array
  903. 'showImage' => true,
  904. 'imageServer' => 'aphelot.pl/items',
  905. 'imageType' => 'gif',
  906. );
  907.  
  908. //////////
  909. /// Let players sell characters.
  910. /////////
  911. $config['shop_auction'] = array(
  912. 'characterAuction' => false, // Enable/disable this system
  913. 'requiredLevel' => 8, // Minimum level of sold character
  914. 'leastValue' => 10, // Lowest donation points a char can be sold for.
  915. 'leastTime' => 24, // In hours. False to disable.
  916. // leastTime = Lowest duration of time an auctioned player has to be
  917. // sellable before auctioneer can claim character back.
  918. );
  919.  
  920. /*
  921. type 1 = items
  922. type 2 = Premium days
  923. type 3 = Change character gender
  924. type 4 = Change character name
  925. type 5 = Buy outfit (put outfit id as itemid),
  926. (put addon id as count [0 = nothing, 1 = first addon, 2 = second addon, 3 = both addons])
  927. type 6 = Buy mount (put mount id as itemid)
  928. type 7+ = custom coded stuff
  929. */
  930. $config['shop_offers'] = array(
  931. 1 => array(
  932. 'type' => 1,
  933. 'itemid' => 2501, // item to get in-game
  934. 'count' => "test", // Stack number (5x itemid)
  935. 'description' => "test", // Description shown on website
  936. 'points' => 17, // How many points this offer costs
  937. )
  938. );
  939.  
  940. //////////////////////////
  941. /// OTServers.eu voting
  942. //
  943. // Start by creating an account at OTServers.eu and add your server.
  944. // You can find your secret token by logging in on OTServers.eu and go to 'MY SERVER' then 'Encourage players to vote'.
  945. $config['otservers_eu_voting'] = [
  946. 'enabled' => false,
  947. 'voteUrl' => 'https://api.otservers.eu/vote_link.php',
  948. 'voteCheckUrl' => 'https://api.otservers.eu/vote_check.php',
  949. 'secretToken' => '', //Enter your secret token. Do not share with anyone!
  950. 'landingPage' => '/voting.php?action=reward', //The user will be redirected to this page after voting
  951. 'points' => '1' //Amount of points to give as reward
  952. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement