Guest User

Untitled

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