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