Advertisement
Guest User

Untitled

a guest
Feb 12th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.89 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. // Available options: TFS_02, TFS_03
  8. // TFS 0.2 = TFS_02
  9. // TFS 0.3 = TFS_03 (If ur using 0.3.6, set $config['salt'] to false)!
  10. // TFS 0.4 = TFS_03
  11. // TFS 1.0 = TFS_10 (Under developement)
  12. $config['TFSVersion'] = 'TFS_03';
  13. // As far as I know, OTX is based on TFS_03, so make sure TFS version is configured TFS_03
  14. $config['CustomVersion'] = false;
  15.  
  16. $config['site_title'] = 'LulaOts';
  17. $config['site_title_context'] = 'Because open communities are good communities. :3';
  18. $config['site_url'] = "lulaots.hopto.org";
  19.  
  20. // Path to server folder without / Example: C:\Users\Alvaro\Documents\GitHub\forgottenserver
  21. $config['server_path'] = 'C:\Users\Luka\Desktop\LulaOts\lulaots';
  22.  
  23. // ------------------------ \\
  24. // MYSQL CONNECTION DETAILS \\
  25. // ------------------------ \\
  26.  
  27. // phpmyadmin username for OT server: (DONT USE "root" if ur hosting to public.).
  28. $config['sqlUser'] = 'test';
  29.  
  30. // phpmyadmin password for OT server:
  31. $config['sqlPassword'] = '****';
  32.  
  33. // The database name to connect to. (This is usually same as username).
  34. $config['sqlDatabase'] = 'test';
  35.  
  36. // Hostname is usually localhost or 127.0.0.1.
  37. $config['sqlHost'] = '127.0.0.1';
  38.  
  39. // QR code authenticator Only works with TFS 1.2+
  40. $config['twoFactorAuthenticator'] = true;
  41. // You can use the mobile phone app "authy" with this.
  42.  
  43. /* CLOCK FUNCTION
  44. - getClock() = returns current time in numbers.
  45. - getClock(time(), true) = returns current time in formatted date
  46. - getClock(false, true) = same as above
  47. - getClock(false, true, false) = get current time, don't adjust timezone
  48. - echo getClock($profile_data['lastlogin'], true); = from characterprofile,
  49. explains when user was last logged in. */
  50. function getClock($time = false, $format = false, $adjust = true) {
  51. if ($time === false) $time = time();
  52. // Date string representation
  53. $date = "d F Y (H:i)"; // 15 July 2013 (13:50)
  54. if ($adjust) $adjust = (1 * 3600); // Adjust to fit your timezone.
  55. else $adjust = 0;
  56. if ($format) return date($date, $time+$adjust);
  57. else return $time+$adjust;
  58. }
  59.  
  60. // ------------------- \\
  61. // CUSTOM SERVER STUFF \\
  62. // ------------------- \\
  63. // Enable / disable Questlog function (true / false)
  64. $config['EnableQuests'] = false;
  65.  
  66. // array for filling questlog (Questid, max value, name, end of the quest fill 1 for the last part 0 for all others)
  67. $config['quests'] = array(
  68. array(1501,100,"Killing in the Name of",0),
  69. array(1502,150,"Killing in the Name of",0),
  70. array(65001,100,"Killing in the Name of",0),
  71. array(65002,150,"Killing in the Name of",0),
  72. array(65003,300,"Killing in the Name of",0),
  73. array(65004,3,"Killing in the Name of",0),
  74. array(65005,300,"Killing in the Name of",0),
  75. array(65006,150,"Killing in the Name of",0),
  76. array(65007,200,"Killing in the Name of",0),
  77. array(65008,300,"Killing in the Name of",0),
  78. array(65009,300,"Killing in the Name of",0),
  79. array(65010,300,"Killing in the Name of",0),
  80. array(65011,300,"Killing in the Name of",0),
  81. array(65012,300,"Killing in the Name of",0),
  82. array(65013,300,"Killing in the Name of",0),
  83. array(65014,300,"Killing in the Name of",1),
  84. array(12110,2,"The Inquisition",0),
  85. array(12111,7,"The Inquisition",0),
  86. array(12112,3,"The Inquisition",0),
  87. array(12113,6,"The Inquisition",0),
  88. array(12114,3,"The Inquisition",0),
  89. array(12115,3,"The Inquisition",0),
  90. array(12116,3,"The Inquisition",0),
  91. array(12117,5,"The Inquisition",1),
  92. array(330,3,"Sam's Old Backpack",1),
  93. array(12121,3,"The Ape City",0),
  94. array(12122,5,"The Ape City",0),
  95. array(12123,3,"The Ape City",0),
  96. array(12124,3,"The Ape City",0),
  97. array(12125,3,"The Ape City",0),
  98. array(12126,3,"The Ape City",0),
  99. array(12127,4,"The Ape City",0),
  100. array(12128,3,"The Ape City",0),
  101. array(12129,3,"The Ape City",1),
  102. array(12101,1,"The Ancient Tombs",0),
  103. array(12102,1,"The Ancient Tombs",0),
  104. array(12103,1,"The Ancient Tombs",0),
  105. array(12104,1,"The Ancient Tombs",0),
  106. array(12105,1,"The Ancient Tombs",0),
  107. array(12106,1,"The Ancient Tombs",0),
  108. array(12107,1,"The Ancient Tombs",1),
  109. array(12022,3,"Barbarian Test Quest",0),
  110. array(12022,3,"Barbarian Test Quest",0),
  111. array(12022,3,"Barbarian Test Quest",1),
  112. array(12025,3,"The Ice Islands Quest",0),
  113. array(12026,5,"The Ice Islands Quest",0),
  114. array(12027,3,"The Ice Islands Quest",0),
  115. array(12028,2,"The Ice Islands Quest",0),
  116. array(12029,6,"The Ice Islands Quest",0),
  117. array(12030,8,"The Ice Islands Quest",0),
  118. array(12031,3,"The Ice Islands Quest",0),
  119. array(12032,4,"The Ice Islands Quest",0),
  120. array(12033,2,"The Ice Islands Quest",0),
  121. array(12034,2,"The Ice Islands Quest",0),
  122. array(12035,2,"The Ice Islands Quest",0),
  123. array(12036,6,"The Ice Islands Quest",1),
  124. );
  125.  
  126. //Achivements based on "https://github.com/PrinterLUA/FORGOTTENSERVER-ORTS/blob/master/data/lib/achievements_lib.lua" (TFS 1.0)
  127. $config['Ach'] = false;
  128. $config['achievements'] = array(
  129. 35000 => array(
  130. 'First Dragon', //name
  131. 'Rumours say that you will never forget your first Dragon', //comment
  132. 'points' => '1', //points
  133. 'img' => 'http://www.tibia-wiki.net/images/Dragon.gif', //img link or folder (example)> 'images/dragon.png'
  134. ),
  135. 35001 => array(
  136. 'Uniwheel',
  137. 'You\'re probably one of the very few people with this classic and unique ride, hope it doesn\'t break anytime soon.', //comment
  138. 'points' => '1', //points
  139. 'img' => 'http://img1.wikia.nocookie.net/__cb20140214234600/tibia/en/images/e/e5/Uniwheel.gif', //img link or folder (example)> 'images/dragon.png'
  140. 'secret' => true
  141. ),
  142. 30001 => array(
  143. 'Allow Cookies?',
  144. '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.',
  145. 'points' => '10', // 1-3 points (1star), 4-6 points(2 stars), 7-9 points(3 stars), 10 points => (4 stars)
  146. 'secret' => true // show "secret" image
  147. ),
  148. 30002 => array(
  149. 'Backpack Tourist',
  150. '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.',
  151. 'points' => '7'
  152. ),
  153. 30003 => array(
  154. 'Bearhugger',
  155. '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.',
  156. 'points' => '4'
  157. ),
  158. 30004 => array(
  159. 'Bone Brother',
  160. '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.',
  161. 'points' => '1'
  162. ),
  163. 30005 => array(
  164. 'Chorister',
  165. '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.',
  166. 'points' => '1'
  167. ),
  168. 30006 => array(
  169. 'Fountain of Life',
  170. '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.',
  171. 'points' => '1',
  172. 'secret' => true
  173. ),
  174. 30007 => array(
  175. 'Here, Fishy Fishy!',
  176. '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!',
  177. 'points' => '1'
  178. ),
  179. 30008 => array(
  180. 'Honorary Barbarian',
  181. '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.',
  182. 'points' => '1'
  183. ),
  184. 30009 => array(
  185. 'Huntsman',
  186. '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!',
  187. 'points' => '2'
  188. ),
  189. 300010 => array(
  190. 'Just in Time',
  191. '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.',
  192. 'points' => '1'
  193. ),
  194. 30011 => array(
  195. 'Matchmaker',
  196. '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!',
  197. 'points' => '1',
  198. 'secret' => true
  199. ),
  200. 30012 => array(
  201. 'Nightmare Knight',
  202. '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.',
  203. 'points' => '1',
  204. 'secret' => true
  205. ),
  206. 30013 => array(
  207. 'Party Animal',
  208. '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!',
  209. 'points' => '1',
  210. 'secret' => true
  211. ),
  212. 30014 => array(
  213. 'Secret Agent',
  214. '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.',
  215. 'points' => '1',
  216. 'secret' => true
  217. ),
  218. 30015 => array(
  219. 'Talented Dancer',
  220. '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!',
  221. 'points' => '1'
  222. ),
  223. 30016 => array(
  224. 'Territorial',
  225. '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.',
  226. 'points' => '1'
  227. ),
  228. 30017 => array(
  229. 'Worm Whacker',
  230. 'Weehee! Whack those worms! You sure know how to handle a big hammer.',
  231. 'points' => '1',
  232. 'secret' => true
  233. ),
  234. 30018 => array(
  235. 'Allowance Collector',
  236. 'You certainly have your ways when it comes to acquiring money. Many of them are pink and paved with broken fragments of porcelain.',
  237. 'points' => '1'
  238. ),
  239. 30019 => array(
  240. 'Amateur Actor',
  241. '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.',
  242. 'points' => '2'
  243. ),
  244. 30020 => array(
  245. 'Animal Activist',
  246. '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.',
  247. 'points' => '2',
  248. 'secret' => true
  249. ),
  250. );
  251.  
  252. // TFS 1.0 powergamers and top online
  253. //Before enabling powergamers, make sure that you have added LUA files and possible cloums to your server.
  254. //files can be found at Lua folder.
  255.  
  256. $config['powergamers'] = array(
  257. 'enabled' => true, // Enable or disable page
  258. 'limit' => 20, //Number of players that it will show.
  259. );
  260.  
  261. $config['toponline'] = array(
  262. 'enabled' => true, // Enable or disable page
  263. 'limit' => 20, //Number of players that it will show.
  264. );
  265.  
  266. // Vocation IDs, names and which vocation ID they got promoted from
  267. $config['vocations'] = array(
  268. 0 => array(
  269. 'name' => 'No vocation',
  270. 'fromVoc' => false
  271. ),
  272. 1 => array(
  273. 'name' => 'Sorcerer',
  274. 'fromVoc' => false
  275. ),
  276. 2 => array(
  277. 'name' => 'Druid',
  278. 'fromVoc' => false
  279. ),
  280. 3 => array(
  281. 'name' => 'Paladin',
  282. 'fromVoc' => false
  283. ),
  284. 4 => array(
  285. 'name' => 'Knight',
  286. 'fromVoc' => false
  287. ),
  288. 5 => array(
  289. 'name' => 'Master Sorcerer',
  290. 'fromVoc' => 1
  291. ),
  292. 6 => array(
  293. 'name' => 'Elder Druid',
  294. 'fromVoc' => 2
  295. ),
  296. 7 => array(
  297. 'name' => 'Royal Paladin',
  298. 'fromVoc' => 3
  299. ),
  300. 8 => array(
  301. 'name' => 'Elite Knight',
  302. 'fromVoc' => 4
  303. )
  304. );
  305.  
  306. /* Vocation stat gains per level
  307. - Ordered by vocation ID
  308. - Currently used for admin_skills page. */
  309. $config['vocations_gain'] = array(
  310. 0 => array(
  311. 'hp' => 5,
  312. 'mp' => 5,
  313. 'cap' => 10
  314. ),
  315. 1 => array(
  316. 'hp' => 5,
  317. 'mp' => 30,
  318. 'cap' => 10
  319. ),
  320. 2 => array(
  321. 'hp' => 5,
  322. 'mp' => 30,
  323. 'cap' => 10
  324. ),
  325. 3 => array(
  326. 'hp' => 10,
  327. 'mp' => 15,
  328. 'cap' => 20
  329. ),
  330. 4 => array(
  331. 'hp' => 15,
  332. 'mp' => 5,
  333. 'cap' => 25
  334. ),
  335. 5 => array(
  336. 'hp' => 5,
  337. 'mp' => 30,
  338. 'cap' => 10
  339. ),
  340. 6 => array(
  341. 'hp' => 5,
  342. 'mp' => 30,
  343. 'cap' => 10
  344. ),
  345. 7 => array(
  346. 'hp' => 10,
  347. 'mp' => 15,
  348. 'cap' => 20
  349. ),
  350. 8 => array(
  351. 'hp' => 15,
  352. 'mp' => 5,
  353. 'cap' => 25
  354. ),
  355. );
  356. // Town ids and names: (In RME map editor, open map, click CTRL + T to view towns, their names and their IDs.
  357. // townID => 'townName' etc: ['3'=>'Thais']
  358. $config['towns'] = array(
  359. 1 => 'Enigma',
  360. 2 => 'Ankrahmun',
  361. 3 => 'Kazordoon',
  362. 4 => 'Carlin',
  363. 5 => "Ab'Dendriel",
  364. 6 => 'Rookgaard',
  365. 7 => 'Liberty Bay',
  366. 8 => 'Port Hope',
  367. 9 => 'Ankrahmun',
  368. 10 => 'Darashia',
  369. 11 => 'Edron',
  370. 12 => 'Svargrond',
  371. 13 => 'Yalahar',
  372. 14 => 'Farmine',
  373. 28 => 'Gray Beach',
  374. 29 => 'Roshamuul',
  375. 30 => 'Rookgaard Tutorial Island',
  376. 31 => 'Isle of Solitude',
  377. 32 => 'Island Of Destiny',
  378. 33 => 'Rathleton'
  379. );
  380.  
  381. // - TFS 1.0 ONLY -- HOUSE AUCTION SYSTEM!
  382. $config['houseConfig'] = array(
  383. 'HouseListDefaultTown' => 1, // Default town id to display when visting house list page page.
  384. 'minimumBidSQM' => 200, // minimum bid cost on auction (per SQM)
  385. 'auctionPeriod' => 24 * 60 * 60, // 24 hours auction time.
  386. 'housesPerPlayer' => 1,
  387. 'requirePremium' => false,
  388. 'levelToBuyHouse' => 8,
  389. );
  390.  
  391. // Leave on black square in map and player should get teleported to their selected town.
  392. // If chars get buggy set this position to a beginner location to force players there.
  393. $config['default_pos'] = array(
  394. 'x' => 5,
  395. 'y' => 5,
  396. 'z' => 2,
  397. );
  398.  
  399. $config['war_status'] = array(
  400. 0 => 'Pending',
  401. 1 => 'Accepted',
  402. 2 => 'Rejected',
  403. 3 => 'Cancelled',
  404. 4 => 'Ended by kill limit',
  405. 5 => 'Ended',
  406. );
  407.  
  408. /* -- SUB PAGES --
  409. Some custom layouts/templates have custom pages, they can use
  410. this sub page functionality for that.
  411. */
  412. $config['allowSubPages'] = true;
  413.  
  414. // ---------------- \\
  415. // Create Character \\
  416. // ---------------- \\
  417.  
  418. // Max characters on each account:
  419. $config['max_characters'] = 7;
  420.  
  421. // Available character vocation users can create.
  422. $config['available_vocations'] = array(1, 2, 3, 4);
  423.  
  424. // Available towns (specify town ids, etc: (1, 2, 3); to display 3 town options (town id 1, 2 and 3).
  425. $config['available_towns'] = array(1, 2);
  426.  
  427. $config['player'] = array(
  428. 'base' => array(
  429. 'level' => 8,
  430. 'health' => 185,
  431. 'mana' => 40,
  432. 'cap' => 470,
  433. 'soul' => 100
  434. ),
  435. // health, mana cap etc are calculated with $config['vocations_gain'] and 'base' values of $config['player']
  436. 'create' => array(
  437. 'level' => 8,
  438. 'novocation' => array( // vocation id 0 (No vocation) special settings
  439. 'level' => 1, // Level
  440. 'forceTown' => true,
  441. 'townId' => 30
  442. ),
  443. 'skills' => array( // See $config['vocations'] for proper vocation names of these IDs
  444. // No vocation
  445. 0 => array(
  446. 'magic' => 0,
  447. 'fist' => 10,
  448. 'club' => 10,
  449. 'axe' => 10,
  450. 'sword' => 10,
  451. 'dist' => 10,
  452. 'shield' => 10,
  453. 'fishing' => 10,
  454. ),
  455. // Sorcerer
  456. 1 => array(
  457. 'magic' => 0,
  458. 'fist' => 10,
  459. 'club' => 10,
  460. 'axe' => 10,
  461. 'sword' => 10,
  462. 'dist' => 10,
  463. 'shield' => 10,
  464. 'fishing' => 10,
  465. ),
  466. // Druid
  467. 2 => array(
  468. 'magic' => 0,
  469. 'fist' => 10,
  470. 'club' => 10,
  471. 'axe' => 10,
  472. 'sword' => 10,
  473. 'dist' => 10,
  474. 'shield' => 10,
  475. 'fishing' => 10,
  476. ),
  477. // Paladin
  478. 3 => array(
  479. 'magic' => 0,
  480. 'fist' => 10,
  481. 'club' => 10,
  482. 'axe' => 10,
  483. 'sword' => 10,
  484. 'dist' => 10,
  485. 'shield' => 10,
  486. 'fishing' => 10,
  487. ),
  488. // Knight
  489. 4 => array(
  490. 'magic' => 0,
  491. 'fist' => 10,
  492. 'club' => 10,
  493. 'axe' => 10,
  494. 'sword' => 10,
  495. 'dist' => 10,
  496. 'shield' => 10,
  497. 'fishing' => 10,
  498. ),
  499. ),
  500. 'male_outfit' => array(
  501. 'id' => 128,
  502. 'head' => 78,
  503. 'body' => 68,
  504. 'legs' => 58,
  505. 'feet' => 76
  506. ),
  507. 'female_outfit' => array(
  508. 'id' => 136,
  509. 'head' => 78,
  510. 'body' => 68,
  511. 'legs' => 58,
  512. 'feet' => 76
  513. )
  514. )
  515. );
  516.  
  517. // Minimum allowed character name letters. Etc 4 letters: "Kåre".
  518. $config['minL'] = 4;
  519. // Maximum allowed character name letters. Etc 20 letters: "Bobkåreolesofiesberg"
  520. $config['maxL'] = 20;
  521.  
  522. // Maximum allowed character name words. Etc 2 words = "Bob Kåre", 3 words: "Bob Arne Kåre" as max char name words.
  523. $config['maxW'] = 2;
  524.  
  525. // -------------- \\
  526. // WEBSITE STUFF \\
  527. // -------------- \\
  528.  
  529. // News to be displayed per page
  530. $config['news_per_page'] = 4;
  531.  
  532. // Enable or disable changelog ticker in news page.
  533. $config['UseChangelogTicker'] = true;
  534.  
  535. // Highscore configuration
  536. $config['highscore'] = array(
  537. 'rows' => 100,
  538. 'rowsPerPage' => 20,
  539. 'ignoreGroupId' => 2, // Ignore this and higher group ids (staff)
  540. );
  541.  
  542. // ONLY FOR TFS 0.2 (TFS 0.3/4 users don't need to care about this, as its fully loaded from db)
  543. $config['house'] = array(
  544. 'house_file' => 'C:\test\Mystic Spirit_0.2.5\data\world\forgotten-house.xml',
  545. 'price_sqm' => '50', // price per house sqm
  546. );
  547.  
  548. $config['delete_character_interval'] = '3 DAY'; // Delay after user character delete request is executed eg. 1 DAY, 2 HOUR, 3 MONTH etc.
  549.  
  550. $config['validate_IP'] = true;
  551. $config['salt'] = false;
  552.  
  553. // Restricted names
  554. $config['invalidNameTags'] = array(
  555.  
  556. "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"
  557. );
  558.  
  559. // Use guild logo system
  560. $config['use_guild_logos'] = true;
  561.  
  562. // Use country flags
  563. $config['country_flags'] = array(
  564. 'enabled' => true,
  565. 'highscores' => true,
  566. 'onlinelist' => true,
  567. 'characterprofile' => true,
  568. 'server' => 'http://flag.znote.eu'
  569. );
  570.  
  571. // Show outfits
  572. $config['show_outfits'] = array(
  573. 'shop' => true,
  574. 'highscores' => true,
  575. 'characterprofile' => true,
  576. 'onlinelist' => true,
  577. // Image server may be unreliable and only for test,
  578. // host yourself: https://otland.net/threads/item-images-10-92.242492/
  579. 'imageServer' => 'http://outfit-images.ots.me/animatedOutfits1090/animoutfit.php'
  580. );
  581.  
  582. // Level requirement to create guild? (Just set it to 1 to allow all levels).
  583. $config['create_guild_level'] = 8;
  584.  
  585. // Change Gender can be purchased in shop, or perhaps you want to allow everyone to change gender for free?
  586. $config['free_sex_change'] = false;
  587.  
  588. // Do you need to have premium account to create a guild?
  589. $config['guild_require_premium'] = false;
  590.  
  591. $config['guildwar_enabled'] = false;
  592.  
  593. // Use htaccess rewrite? (basically this makes website.com/username work instead of website.com/characterprofile.php?name=username
  594. // 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.
  595. $config['htwrite'] = true;
  596.  
  597. // What client version and server port are you using on this OT?
  598. // Used for the Downloads page.
  599. $config['client'] = 1098; // 954 = client 9.54
  600.  
  601. // Download link to client.
  602. $config['client_download'] = 'http://clients.halfaway.net/windows.php?tibia='. $config['client'] .'';
  603. $config['client_download_linux'] = 'http://clients.halfaway.net/linux.php?tibia='. $config['client'] .'';
  604.  
  605. $config['port'] = 7171; // Port number to connect to your OT.
  606.  
  607. $config['status'] = array(
  608. 'status_check' => false, //enable or disable status checker
  609. 'status_ip' => '127.0.0.1',
  610. 'status_port' => "7171",
  611. );
  612.  
  613. // Gameserver info is used for client 11+ loginWebService
  614. $config['gameserver'] = array(
  615. 'ip' => $_SERVER["SERVER_ADDR"], // Can be an ip string like '123.123.123.123'
  616. 'port' => 7172,
  617. 'name' => 'OTserv'
  618. );
  619.  
  620. // How often do you want highscores to update?
  621. $config['cache_lifespan'] = 5;//60 * 15; // 15 minutes.
  622.  
  623. // WARNING! Account names written here will have admin access to web page!
  624. $config['page_admin_access'] = array(
  625. 'firstaccountName',
  626. 'secondaccountName',
  627. );
  628.  
  629. // Built-in FORUM
  630. // Enable forum, enable guildboards, level to create threads/post in them
  631. // How long do they have to wait to create thread or post?
  632. // How to design/display hidden/closed/sticky threads.
  633. $config['forum'] = array(
  634. 'enabled' => true,
  635. 'guildboard' => true,
  636. 'level' => 5,
  637. 'cooldownPost' => 1,//60,
  638. 'cooldownCreate' => 1,//180,
  639. 'newPostsBumpThreads' => true,
  640. 'hidden' => '<font color="orange">[H]</font>',
  641. 'closed' => '<font color="red">[C]</font>',
  642. 'sticky' => '<font color="green">[S]</font>',
  643. );
  644.  
  645. // Guilds and guild war pages will do lots of queries on bigger databases.
  646. // So its recommended to require login to view them, but you can disable this
  647. // If you don't have any problems with load.
  648. $config['require_login'] = array(
  649. 'guilds' => false,
  650. 'guildwars' => false,
  651. );
  652.  
  653. // IMPORTANT! Write a character name(that exist) that will represent website bans!
  654. // Or remember to create character "God Website" character exist.
  655. // If you don't do this, bann from admin panel won't work properly.
  656. $config['website_char'] = 'Luxitur';
  657.  
  658. //----------------\\
  659. // ADVANCED STUFF \\
  660. //----------------\\
  661. // Api config
  662. $config['api'] = array(
  663. 'debug' => false,
  664. );
  665.  
  666. // Email Server configurations (SMTP)
  667. /* Download PHPMailer: https://github.com/PHPMailer/PHPMailer/archive/master.zip
  668. Extract to Znote AAC directory (where this config.php file is located)
  669. Rename the folder to "PHPMailer". Then configure this with your SMTP mail settings from your email provider.
  670. */
  671. $config['mailserver'] = array(
  672. 'register' => false, // Send activation mail
  673. 'accountRecovery' => false, // Recover username or password through mail
  674. 'host' => "mailserver.znote.eu", // Outgoing mail server host.
  675. 'securityType' => 'ssl', // ssl or tls
  676. 'port' => 465, // SMTP port number - likely to be 465(ssl) or 587(tls)
  677. 'email' => 'noreply@znote.eu',
  678. 'username' => 'noreply@znote.eu', // Likely the same as email
  679. 'password' => 'emailpassword', // The password.
  680. 'debug' => false, // Enable debugging if you have problems and are looking for errors.
  681. 'fromName' => $config['site_title'],
  682. );
  683.  
  684. // Don't touch this unless you know what you are doing. (modifying this(key value) also requires modifications in OT files /XML/commands.xml).
  685. $config['ingame_positions'] = array(
  686. 1 => 'Player',
  687. 2 => 'Tutor',
  688. 3 => 'Senior Tutor',
  689. 4 => 'Gamemaster',
  690. 5 => 'Community Manager',
  691. 6 => 'God',
  692. );
  693.  
  694. // Enable OS advanced feautures? false = no, true = yes
  695. $config['os_enabled'] = false;
  696.  
  697. // What kind of computer are you hosting this website on?
  698. // Available options: LINUX or WINDOWS
  699. $config['os'] = ZNOTE_OS;
  700.  
  701. // Measure how much players are lagging in-game. (Not completed).
  702. $config['ping'] = false;
  703.  
  704. // BAN STUFF - Don't touch this unless you know what you are doing.
  705. // You can order the lines the way you want, from top to bot, in which order you
  706. // wish for them to be displayed in admin panel. Just make sure key[#] represent your description.
  707. $config['ban_type'] = array(
  708. 4 => 'NOTATION_ACCOUNT',
  709. 2 => 'NAMELOCK_PLAYER',
  710. 3 => 'BAN_ACCOUNT',
  711. 5 => 'DELETE_ACCOUNT',
  712. 1 => 'BAN_IPADDRESS',
  713. );
  714.  
  715. // BAN STUFF - Don't touch this unless you know what you are doing.
  716. // You can order the lines the way you want, from top to bot, in which order you
  717. // wish for them to be displayed in admin panel. Just make sure key[#] represent your description.
  718. $config['ban_action'] = array(
  719. 0 => 'Notation',
  720. 1 => 'Name Report',
  721. 2 => 'Banishment',
  722. 3 => 'Name Report + Banishment',
  723. 4 => 'Banishment + Final Warning',
  724. 5 => 'NR + Ban + FW',
  725. 6 => 'Statement Report',
  726. );
  727.  
  728. // Ban reasons, for changes beside default values to work with client,
  729. // you also need to edit sources (tools.cpp line 1096)
  730. $config['ban_reason'] = array(
  731. 0 => 'Offensive Name',
  732. 1 => 'Invalid Name Format',
  733. 2 => 'Unsuitable Name',
  734. 3 => 'Name Inciting Rule Violation',
  735. 4 => 'Offensive Statement',
  736. 5 => 'Spamming',
  737. 6 => 'Illegal Advertising',
  738. 7 => 'Off-Topic Public Statement',
  739. 8 => 'Non-English Public Statement',
  740. 9 => 'Inciting Rule Violation',
  741. 10 => 'Bug Abuse',
  742. 11 => 'Game Weakness Abuse',
  743. 12 => 'Using Unofficial Software to Play',
  744. 13 => 'Hacking',
  745. 14 => 'Multi-Clienting',
  746. 15 => 'Account Trading or Sharing',
  747. 16 => 'Threatening Gamemaster',
  748. 17 => 'Pretending to Have Influence on Rule Enforcement',
  749. 18 => 'False Report to Gamemaster',
  750. 19 => 'Destructive Behaviour',
  751. 20 => 'Excessive Unjustified Player Killing',
  752. 21 => 'Spoiling Auction',
  753. );
  754.  
  755. // BAN STUFF
  756. // Ban time duration selection in admin panel
  757. // seconds => description
  758. $config['ban_time'] = array(
  759. 3600 => '1 hour',
  760. 21600 => '6 hours',
  761. 43200 => '12 hours',
  762. 86400 => '1 day',
  763. 259200 => '3 days',
  764. 604800 => '1 week',
  765. 1209600 => '2 weeks',
  766. 2592000 => '1 month',
  767. );
  768.  
  769. // --------------- \\
  770. // SECURITY STUFF \\
  771. // --------------- \\
  772. $config['use_token'] = false;
  773. // Set up captcha keys on https://www.google.com/recaptcha/
  774. $config['use_captcha'] = false;
  775. $config['captcha_secret_key'] = "Secret key";
  776. $config['captcha_site_key'] = "Site key";
  777.  
  778. // Session prefix, if you are hosting multiple sites, make the session name different to avoid conflict.
  779. $config['session_prefix'] = 'znote_';
  780.  
  781. /* Store visitor data
  782. Store visitor data in the database, logging every IP visitng site,
  783. and how many times they have visited the site. And sometimes what
  784. they do on the site.
  785.  
  786. This helps to prevent POST SPAM (like register 1000 accounts in a few seconds)
  787. and other things which can stress and slow down the server.
  788.  
  789. The only downside is that database can get pretty fed up with much IP data
  790. if table never gets flushed once in a while. So I highly recommend you
  791. to configure flush_ip_logs if IPs are logged.
  792. */
  793. $config['log_ip'] = false;
  794.  
  795. // Flush IP logs each configured seconds, 60 * 15 = 15 minutes.
  796. // Set to false to entirely disable ip log flush.
  797. // It is important to flush for optimal performance.
  798. $config['flush_ip_logs'] = 59 * 27;
  799.  
  800. /* IP SECURTY REQUIRE: $config['log_ip'] = true;
  801. Configure how tight this security shall be.
  802. Etc: You can max click on anything/refresh page
  803. [max activity] 15 times, within time period 10
  804. seconds. During time_period, you can also only
  805. register 1 account and 1 character.
  806. */
  807. $config['ip_security'] = array(
  808. 'time_period' => 10, // In seconds
  809. 'max_activity' => 10, // page clicks/visits
  810. 'max_post' => 6, // register, create, highscore, character search such actions
  811. 'max_account' => 1, // register
  812. 'max_character' => 1, // create char
  813. 'max_forum_post' => 1, // Create threads and post in forum
  814. );
  815.  
  816. //////////////
  817. /// PAYPAL ///
  818. //////////////
  819.  
  820. // Write your paypal address here, and what currency you want to recieve money in.
  821. $config['paypal'] = array(
  822. 'enabled' => false,
  823. 'email' => 'edit@me.com', // Example: paypal@mail.com
  824. 'currency' => 'EUR',
  825. 'points_per_currency' => 10, // 1 currency = ? points? [ONLY used to calculate bonuses]
  826. 'success' => "http://".$_SERVER['HTTP_HOST']."/success.php",
  827. 'failed' => "http://".$_SERVER['HTTP_HOST']."/failed.php",
  828. 'ipn' => "http://".$_SERVER['HTTP_HOST']."/ipn.php",
  829. 'showBonus' => true,
  830. );
  831.  
  832. // Configure the "buy now" buttons prices, first write price, then how many points you get.
  833. // Giving some bonus points for higher donations will tempt users to donate more.
  834. $config['paypal_prices'] = array(
  835. // price => points,
  836. 1 => 45, // -10% bonus
  837. 10 => 100, // 0% bonus
  838. 15 => 165, // +10% bonus
  839. 20 => 240, // +20% bonus
  840. 25 => 325, // +30% bonus
  841. 30 => 420, // +40% bonus
  842. );
  843.  
  844. /////////////////
  845. /// PAGSEGURO ///
  846. /////////////////
  847. // Write your pagseguro address here, and what currency you want to recieve money in.
  848. $config['pagseguro'] = array(
  849. 'enabled' => false,
  850. 'sandbox' => false,
  851. 'email' => '', // Example: pagseguro@mail.com
  852. 'token' => '',
  853. 'currency' => 'BRL',
  854. 'product_name' => '',
  855. 'price' => 100, // 1 real
  856. 'ipn' => "http://".$_SERVER['HTTP_HOST']."/pagseguro_ipn.php",
  857. 'urls' => array(
  858. 'www' => 'pagseguro.uol.com.br',
  859. 'ws' => 'ws.pagseguro.uol.com.br',
  860. 'stc' => 'stc.pagseguro.uol.com.br'
  861. )
  862. );
  863.  
  864. if ($config['pagseguro']['sandbox']) {
  865. $config['pagseguro']['urls'] = array_map(function ($item) {
  866. return str_replace('pagseguro', 'sandbox.pagseguro', $item);
  867. }, $config['pagseguro']['urls']);
  868. }
  869.  
  870. //////////////////
  871. /// PAYGOL SMS ///
  872. //////////////////
  873. // !!! Paygol takes 60%~ of the money, and send aprox 40% to your paypal.
  874. // You can configure paygol to send each month, then they will send money
  875. // to you 1 month after recieving 50+ eur.
  876. $config['paygol'] = array(
  877. 'enabled' => false,
  878. 'serviceID' => 86648,// Service ID from paygol.com
  879. 'currency' => 'SEK',
  880. 'price' => 20,
  881. 'points' => 20, // Remember to write same details in paygol.com!
  882. 'name' => '20 points',
  883. 'returnURL' => "http://".$_SERVER['HTTP_HOST']."/success.php",
  884. 'cancelURL' => "http://".$_SERVER['HTTP_HOST']."/failed.php"
  885. );
  886.  
  887. ////////////
  888. /// SHOP ///
  889. ////////////
  890. // If useDB is set to true, player can shop in-game as well using Znote LUA shop system plugin.
  891. $config['shop'] = array(
  892. 'enabled' => false,
  893. 'loginToView' => false, // Do user need to login to see the shop offers?
  894. 'enableShopConfirmation' => true, // Verify that user wants to buy with popup
  895. 'useDB' => false, // Fetch offers from database, or the below config array
  896. 'showImage' => true,
  897. 'imageServer' => 'items.znote.eu',
  898. 'imageType' => 'gif',
  899. );
  900.  
  901. //////////
  902. /// Let players sell characters.
  903. /////////
  904. $config['shop_auction'] = array(
  905. 'characterAuction' => false, // Enable/disable this system
  906. 'requiredLevel' => 50, // Minimum level of sold character
  907. 'leastValue' => 10, // Lowest donation points a char can be sold for.
  908. 'leastTime' => 24, // In hours. False to disable.
  909. // leastTime = Lowest duration of time an auctioned player has to be
  910. // sellable before auctioneer can claim character back.
  911. );
  912.  
  913. /*
  914. type 1 = items
  915. type 2 = Premium days
  916. type 3 = Change character gender
  917. type 4 = Change character name
  918. type 5 = Buy outfit (put outfit id as itemid),
  919. (put addon id as count [0 = nothing, 1 = first addon, 2 = second addon, 3 = both addons])
  920. type 6 = Buy mount (put mount id as itemid)
  921. type 7+ = custom coded stuff
  922. */
  923. $config['shop_offers'] = array(
  924. 1 => array(
  925. 'type' => 1,
  926. 'itemid' => 2160, // item to get in-game
  927. 'count' => 5, // Stack number (5x itemid)
  928. 'description' => "Crystal coin", // Description shown on website
  929. 'points' => 100, // How many points this offer costs
  930. ),
  931. 2 => array(
  932. 'type' => 1,
  933. 'itemid' => 2392,
  934. 'count' => 1,
  935. 'description' => "Fire sword",
  936. 'points' => 10,
  937. ),
  938. 3 => array(
  939. 'type' => 2,
  940. 'itemid' => 12466, // Item to display on page
  941. 'count' => 7, // Days of premium account
  942. 'description' => "Premium membership",
  943. 'points' => 25,
  944. ),
  945. 4 => array(
  946. 'type' => 3,
  947. 'itemid' => 12666, // Item to display on page
  948. 'count' => 3,
  949. 'description' => "Change character gender",
  950. 'points' => 10,
  951. ),
  952. 5 => array(
  953. 'type' => 3,
  954. 'itemid' => 12666, // Item to display on page
  955. 'count' => 0, // 0 = unlimited
  956. 'description' => "Change character gender",
  957. 'points' => 20,
  958. ),
  959. 6 => array(
  960. 'type' => 4,
  961. 'itemid' => 12666, // Item to display on page
  962. 'count' => 1,
  963. 'description' => "Change character name",
  964. 'points' => 20,
  965. ),
  966. 7 => array(
  967. 'type' => 5,
  968. 'itemid' => 132, // Outfit ID
  969. 'count' => 3, // Addon 0 = none, 1 = first, 2 = second, 3 = both
  970. 'description' => "Nobleman with both addons",
  971. 'points' => 20,
  972. ),
  973. 8 => array(
  974. 'type' => 5,
  975. 'itemid' => 140,
  976. 'count' => 3,
  977. 'description' => "Noblewoman with both addons",
  978. 'points' => 20,
  979. ),
  980. 9 => array(
  981. 'type' => 6,
  982. 'itemid' => 32, // Mount ID
  983. 'count' => 1,
  984. 'description' => "Gnarlhound mount",
  985. 'points' => 20,
  986. ),
  987. 10 => array(
  988. 'type' => 6,
  989. 'itemid' => 17,
  990. 'count' => 1,
  991. 'description' => "War horse",
  992. 'points' => 20,
  993. ),
  994. );
  995. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement