· 5 years ago · Nov 15, 2019, 08:26 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_03';
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'] = 'Eternia';
22 $config['site_title_context'] = 'The new tibia experience.';
23 $config['site_url'] = "eternia.sytes.net";
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'] = 'admin';
34
35 // phpmyadmin password for OT server:
36 $config['sqlPassword'] = 'e4SGacv14Gj2SqAjStG72018A1';
37
38 // The database name to connect to. (This is usually same as username).
39 $config['sqlDatabase'] = 'ot';
40
41 // Hostname is usually localhost or 127.0.0.1.
42 $config['sqlHost'] = 'database-test.c1wrpaan2hy1.us-west-2.rds.amazonaws.com';
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 // Instant buy with shop points
395 'shopPoints' => array(
396 'enabled' => true,
397 // SQM => points cost
398 'cost' => array(
399 1 => 10,
400 25 => 15,
401 60 => 25,
402 100 => 30,
403 200 => 40,
404 300 => 50,
405 ),
406 ),
407 );
408
409 // Leave on black square in map and player should get teleported to their selected town.
410 // If chars get buggy set this position to a beginner location to force players there.
411 $config['default_pos'] = array(
412 'x' => 5,
413 'y' => 5,
414 'z' => 2,
415 );
416
417 $config['war_status'] = array(
418 0 => 'Pending',
419 1 => 'Accepted',
420 2 => 'Rejected',
421 3 => 'Cancelled',
422 4 => 'Ended by kill limit',
423 5 => 'Ended',
424 );
425
426 /* -- SUB PAGES --
427 Some custom layouts/templates have custom pages, they can use
428 this sub page functionality for that.
429 */
430 $config['allowSubPages'] = true;
431
432 // ---------------- \\
433 // Create Character \\
434 // ---------------- \\
435
436 // Max characters on each account:
437 $config['max_characters'] = 7;
438
439 // Available character vocation users can create.
440 $config['available_vocations'] = array(1, 2, 3, 4);
441
442 // Available towns (specify town ids, etc: (1, 2, 3); to display 3 town options (town id 1, 2 and 3).
443 $config['available_towns'] = array(1, 2, 4, 5);
444
445 $config['player'] = array(
446 'base' => array(
447 'level' => 8,
448 'health' => 185,
449 'mana' => 40,
450 'cap' => 470,
451 'soul' => 100
452 ),
453 // health, mana cap etc are calculated with $config['vocations_gain'] and 'base' values of $config['player']
454 'create' => array(
455 'level' => 8,
456 'novocation' => array( // vocation id 0 (No vocation) special settings
457 'level' => 1, // Level
458 'forceTown' => true,
459 'townId' => 30
460 ),
461 'skills' => array( // See $config['vocations'] for proper vocation names of these IDs
462 // No vocation
463 0 => array(
464 'magic' => 0,
465 'fist' => 10,
466 'club' => 10,
467 'axe' => 10,
468 'sword' => 10,
469 'dist' => 10,
470 'shield' => 10,
471 'fishing' => 10,
472 ),
473 // Sorcerer
474 1 => array(
475 'magic' => 0,
476 'fist' => 10,
477 'club' => 10,
478 'axe' => 10,
479 'sword' => 10,
480 'dist' => 10,
481 'shield' => 10,
482 'fishing' => 10,
483 ),
484 // Druid
485 2 => array(
486 'magic' => 0,
487 'fist' => 10,
488 'club' => 10,
489 'axe' => 10,
490 'sword' => 10,
491 'dist' => 10,
492 'shield' => 10,
493 'fishing' => 10,
494 ),
495 // Paladin
496 3 => array(
497 'magic' => 0,
498 'fist' => 10,
499 'club' => 10,
500 'axe' => 10,
501 'sword' => 10,
502 'dist' => 10,
503 'shield' => 10,
504 'fishing' => 10,
505 ),
506 // Knight
507 4 => array(
508 'magic' => 0,
509 'fist' => 10,
510 'club' => 10,
511 'axe' => 10,
512 'sword' => 10,
513 'dist' => 10,
514 'shield' => 10,
515 'fishing' => 10,
516 ),
517 ),
518 'male_outfit' => array(
519 'id' => 128,
520 'head' => 78,
521 'body' => 68,
522 'legs' => 58,
523 'feet' => 76
524 ),
525 'female_outfit' => array(
526 'id' => 136,
527 'head' => 78,
528 'body' => 68,
529 'legs' => 58,
530 'feet' => 76
531 )
532 )
533 );
534
535 // Minimum allowed character name letters. Etc 4 letters: "Kåre".
536 $config['minL'] = 3;
537 // Maximum allowed character name letters. Etc 20 letters: "Bobkåreolesofiesberg"
538 $config['maxL'] = 20;
539
540 // Maximum allowed character name words. Etc 2 words = "Bob Kåre", 3 words: "Bob Arne Kåre" as max char name words.
541 $config['maxW'] = 3;
542
543 // -------------- \\
544 // WEBSITE STUFF \\
545 // -------------- \\
546
547 // News to be displayed per page
548 $config['news_per_page'] = 5;
549
550 // Enable or disable changelog ticker in news page.
551 $config['UseChangelogTicker'] = true;
552
553 // Highscore configuration
554 $config['highscore'] = array(
555 'rows' => 100,
556 'rowsPerPage' => 20,
557 'ignoreGroupId' => 2, // Ignore this and higher group ids (staff)
558 );
559
560 // ONLY FOR TFS 0.2 (TFS 0.3/4 users don't need to care about this, as its fully loaded from db)
561 $config['house'] = array(
562 'house_file' => 'C:\test\Mystic Spirit_0.2.5\data\world\forgotten-house.xml',
563 'price_sqm' => '50', // price per house sqm
564 );
565
566 $config['delete_character_interval'] = '3 DAY'; // Delay after user character delete request is executed eg. 1 DAY, 2 HOUR, 3 MONTH etc.
567
568 $config['validate_IP'] = false;
569 $config['salt'] = false;
570
571 // Restricted names
572 $config['invalidNameTags'] = array(
573 "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"
574 );
575
576 // Use guild logo system
577 $config['use_guild_logos'] = true;
578
579 // Use country flags
580 $config['country_flags'] = array(
581 'enabled' => true,
582 'highscores' => true,
583 'onlinelist' => true,
584 'characterprofile' => true,
585 'server' => 'http://flag.znote.eu'
586 );
587
588 // Show outfits
589 $config['show_outfits'] = array(
590 'shop' => true,
591 'highscores' => true,
592 'characterprofile' => true,
593 'onlinelist' => true,
594 // Image server may be unreliable and only for test,
595 // host yourself: https://otland.net/threads/item-images-10-92.242492/
596 'imageServer' => 'http://outfit-images.ots.me/animatedOutfits1099/animoutfit.php'
597 );
598
599 // Show advanced inventory data in character profile
600 $config['EQ_shower'] = array(
601 'enabled' => true,
602 'equipment' => true,
603 'skills' => true,
604 'outfits' => true,
605 // Player storage (storage_value + outfitId)
606 // used to see if player has outfit.
607 // see LUA scripts folder for otserv code
608 'storage_value' => 10000
609 );
610
611 // Level requirement to create guild? (Just set it to 1 to allow all levels).
612 $config['create_guild_level'] = 8;
613
614 // Change Gender can be purchased in shop, or perhaps you want to allow everyone to change gender for free?
615 $config['free_sex_change'] = false;
616
617 // Do you need to have premium account to create a guild?
618 $config['guild_require_premium'] = true;
619
620 $config['guildwar_enabled'] = false;
621
622 // Use htaccess rewrite? (basically this makes website.com/username work instead of website.com/characterprofile.php?name=username
623 // 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.
624 $config['htwrite'] = true;
625
626 // What client version and server port are you using on this OT?
627 // Used for the Downloads page.
628 $config['client'] = 1098; // 954 = client 9.54
629
630 // Download link to client.
631 $config['client_download'] = 'http://clients.halfaway.net/windows.php?tibia='. $config['client'] .'';
632 $config['client_download_linux'] = 'http://clients.halfaway.net/linux.php?tibia='. $config['client'] .'';
633
634 $config['port'] = 7171; // Port number to connect to your OT.
635
636 $config['status'] = array(
637 'status_check' => false, //enable or disable status checker
638 'status_ip' => '127.0.0.1',
639 'status_port' => "7171",
640 );
641
642 // Gameserver info is used for client 11+ loginWebService
643 $config['gameserver'] = array(
644 'ip' => '127.0.0.1',
645 'port' => 7172,
646 'name' => 'OTXServer-Global' // Must be identical to config.lua (OT config file) server name.
647 );
648
649 // How often do you want highscores to update?
650 $config['cache_lifespan'] = 5;//60 * 15; // 15 minutes.
651
652 // WARNING! Account names written here will have admin access to web page!
653 $config['page_admin_access'] = array(
654 'irwins',
655 'irwins1',
656 );
657
658 // Built-in FORUM
659 // Enable forum, enable guildboards, level to create threads/post in them
660 // How long do they have to wait to create thread or post?
661 // How to design/display hidden/closed/sticky threads.
662 $config['forum'] = array(
663 'enabled' => true,
664 'outfit_avatars' => true, // Show character outfit as forum avatar?
665 'player_position' => true, // Tutor, Community manager, God etc..?
666 'guildboard' => true,
667 'level' => 5,
668 'cooldownPost' => 1,//60,
669 'cooldownCreate' => 1,//180,
670 'newPostsBumpThreads' => true,
671 'hidden' => '<font color="orange">[H]</font>',
672 'closed' => '<font color="red">[C]</font>',
673 'sticky' => '<font color="green">[S]</font>',
674 );
675
676 // Guilds and guild war pages will do lots of queries on bigger databases.
677 // So its recommended to require login to view them, but you can disable this
678 // If you don't have any problems with load.
679 $config['require_login'] = array(
680 'guilds' => false,
681 'guildwars' => false,
682 );
683
684 // IMPORTANT! Write a character name(that exist) that will represent website bans!
685 // Or remember to create character "God Website" character exist.
686 // If you don't do this, bann from admin panel won't work properly.
687 $config['website_char'] = 'Penta';
688
689 //----------------\\
690 // ADVANCED STUFF \\
691 //----------------\\
692 // Api config
693 $config['api'] = array(
694 'debug' => false,
695 );
696
697 // Email Server configurations (SMTP)
698 /* Please consider using a released stable version of PHPMailer or you may run into issues.
699 Download PHPMailer: https://github.com/PHPMailer/PHPMailer/releases
700 Extract to Znote AAC directory (where this config.php file is located)
701 Rename the folder to "PHPMailer". Then configure this with your SMTP mail settings from your email provider.
702 */
703 $config['mailserver'] = array(
704 'register' => false, // Send activation mail
705 'accountRecovery' => false, // Recover username or password through mail
706 'myaccount_verify_email' => false, // Allow user to verify their email in myaccount page
707 'verify_email_points' => 0, // 0 = disabled. Give users points reward for verifying their email
708 'host' => "mailserver.znote.eu", // Outgoing mail server host.
709 'securityType' => 'ssl', // ssl or tls
710 'port' => 465, // SMTP port number - likely to be 465(ssl) or 587(tls)
711 'email' => 'noreply@znote.eu',
712 'username' => 'noreply@znote.eu', // Likely the same as email
713 'password' => 'emailpassword', // The password.
714 'debug' => false, // Enable debugging if you have problems and are looking for errors.
715 'fromName' => $config['site_title'],
716 );
717
718 // Don't touch this unless you know what you are doing. (modifying this(key value) also requires modifications in OT files /XML/commands.xml).
719 $config['ingame_positions'] = array(
720 1 => 'Player',
721 2 => 'Tutor',
722 3 => 'Senior Tutor',
723 4 => 'Gamemaster',
724 5 => 'Community Manager',
725 6 => 'God',
726 );
727
728 // Enable OS advanced feautures? false = no, true = yes
729 $config['os_enabled'] = false;
730
731 // What kind of computer are you hosting this website on?
732 // Available options: LINUX or WINDOWS
733 $config['os'] = ZNOTE_OS;
734
735 // Measure how much players are lagging in-game. (Not completed).
736 $config['ping'] = false;
737
738 // BAN STUFF - Don't touch this unless you know what you are doing.
739 // You can order the lines the way you want, from top to bot, in which order you
740 // wish for them to be displayed in admin panel. Just make sure key[#] represent your description.
741 $config['ban_type'] = array(
742 4 => 'NOTATION_ACCOUNT',
743 2 => 'NAMELOCK_PLAYER',
744 3 => 'BAN_ACCOUNT',
745 5 => 'DELETE_ACCOUNT',
746 1 => 'BAN_IPADDRESS',
747 );
748
749 // BAN STUFF - Don't touch this unless you know what you are doing.
750 // You can order the lines the way you want, from top to bot, in which order you
751 // wish for them to be displayed in admin panel. Just make sure key[#] represent your description.
752 $config['ban_action'] = array(
753 0 => 'Notation',
754 1 => 'Name Report',
755 2 => 'Banishment',
756 3 => 'Name Report + Banishment',
757 4 => 'Banishment + Final Warning',
758 5 => 'NR + Ban + FW',
759 6 => 'Statement Report',
760 );
761
762 // Ban reasons, for changes beside default values to work with client,
763 // you also need to edit sources (tools.cpp line 1096)
764 $config['ban_reason'] = array(
765 0 => 'Offensive Name',
766 1 => 'Invalid Name Format',
767 2 => 'Unsuitable Name',
768 3 => 'Name Inciting Rule Violation',
769 4 => 'Offensive Statement',
770 5 => 'Spamming',
771 6 => 'Illegal Advertising',
772 7 => 'Off-Topic Public Statement',
773 8 => 'Non-English Public Statement',
774 9 => 'Inciting Rule Violation',
775 10 => 'Bug Abuse',
776 11 => 'Game Weakness Abuse',
777 12 => 'Using Unofficial Software to Play',
778 13 => 'Hacking',
779 14 => 'Multi-Clienting',
780 15 => 'Account Trading or Sharing',
781 16 => 'Threatening Gamemaster',
782 17 => 'Pretending to Have Influence on Rule Enforcement',
783 18 => 'False Report to Gamemaster',
784 19 => 'Destructive Behaviour',
785 20 => 'Excessive Unjustified Player Killing',
786 21 => 'Spoiling Auction',
787 );
788
789 // BAN STUFF
790 // Ban time duration selection in admin panel
791 // seconds => description
792 $config['ban_time'] = array(
793 3600 => '1 hour',
794 21600 => '6 hours',
795 43200 => '12 hours',
796 86400 => '1 day',
797 259200 => '3 days',
798 604800 => '1 week',
799 1209600 => '2 weeks',
800 2592000 => '1 month',
801 );
802
803 // --------------- \\
804 // SECURITY STUFF \\
805 // --------------- \\
806 $config['use_token'] = false;
807 // Set up captcha keys on https://www.google.com/recaptcha/
808 $config['use_captcha'] = false;
809 $config['captcha_site_key'] = "Site key";
810 $config['captcha_secret_key'] = "Secret key";
811 $config['captcha_use_curl'] = false; // Set to false if you don't have cURL installed, otherwise set it to true
812
813 // Session prefix, if you are hosting multiple sites, make the session name different to avoid conflict.
814 $config['session_prefix'] = 'znote_';
815
816 /* Store visitor data
817 Store visitor data in the database, logging every IP visitng site,
818 and how many times they have visited the site. And sometimes what
819 they do on the site.
820
821 This helps to prevent POST SPAM (like register 1000 accounts in a few seconds)
822 and other things which can stress and slow down the server.
823
824 The only downside is that database can get pretty fed up with much IP data
825 if table never gets flushed once in a while. So I highly recommend you
826 to configure flush_ip_logs if IPs are logged.
827 */
828 $config['log_ip'] = false;
829
830 // Flush IP logs each configured seconds, 60 * 15 = 15 minutes.
831 // Set to false to entirely disable ip log flush.
832 // It is important to flush for optimal performance.
833 $config['flush_ip_logs'] = 59 * 27;
834
835 /* IP SECURTY REQUIRE: $config['log_ip'] = true;
836 Configure how tight this security shall be.
837 Etc: You can max click on anything/refresh page
838 [max activity] 15 times, within time period 10
839 seconds. During time_period, you can also only
840 register 1 account and 1 character.
841 */
842 $config['ip_security'] = array(
843 'time_period' => 10, // In seconds
844 'max_activity' => 10, // page clicks/visits
845 'max_post' => 6, // register, create, highscore, character search such actions
846 'max_account' => 1, // register
847 'max_character' => 1, // create char
848 'max_forum_post' => 1, // Create threads and post in forum
849 );
850
851 //////////////
852 /// PAYPAL ///
853 //////////////
854
855 // Write your paypal address here, and what currency you want to recieve money in.
856 $config['paypal'] = array(
857 'enabled' => false,
858 'email' => 'edit@me.com', // Example: paypal@mail.com
859 'currency' => 'EUR',
860 'points_per_currency' => 10, // 1 currency = ? points? [ONLY used to calculate bonuses]
861 'success' => "http://".$_SERVER['HTTP_HOST']."/success.php",
862 'failed' => "http://".$_SERVER['HTTP_HOST']."/failed.php",
863 'ipn' => "http://".$_SERVER['HTTP_HOST']."/ipn.php",
864 'showBonus' => true,
865 );
866
867 // Configure the "buy now" buttons prices, first write price, then how many points you get.
868 // Giving some bonus points for higher donations will tempt users to donate more.
869 $config['paypal_prices'] = array(
870 // price => points,
871 1 => 45, // -10% bonus
872 10 => 100, // 0% bonus
873 15 => 165, // +10% bonus
874 20 => 240, // +20% bonus
875 25 => 325, // +30% bonus
876 30 => 420, // +40% bonus
877 );
878
879 /////////////////
880 /// PAGSEGURO ///
881 /////////////////
882 // Write your pagseguro address here, and what currency you want to recieve money in.
883 $config['pagseguro'] = array(
884 'enabled' => false,
885 'sandbox' => false,
886 'email' => '', // Example: pagseguro@mail.com
887 'token' => '',
888 'currency' => 'BRL',
889 'product_name' => '',
890 'price' => 100, // 1 real
891 'ipn' => "http://".$_SERVER['HTTP_HOST']."/pagseguro_ipn.php",
892 'urls' => array(
893 'www' => 'pagseguro.uol.com.br',
894 'ws' => 'ws.pagseguro.uol.com.br',
895 'stc' => 'stc.pagseguro.uol.com.br'
896 )
897 );
898
899 if ($config['pagseguro']['sandbox']) {
900 $config['pagseguro']['urls'] = array_map(function ($item) {
901 return str_replace('pagseguro', 'sandbox.pagseguro', $item);
902 }, $config['pagseguro']['urls']);
903 }
904
905 //////////////////
906 /// PAYGOL SMS ///
907 //////////////////
908 // !!! Paygol takes 60%~ of the money, and send aprox 40% to your paypal.
909 // You can configure paygol to send each month, then they will send money
910 // to you 1 month after recieving 50+ eur.
911 $config['paygol'] = array(
912 'enabled' => false,
913 'serviceID' => 86648, // Service ID from paygol.com
914 'secretKey' => 'xxxx-xxxx-xxxx-xxxx', // Secret key from paygol.com. Never share your secret key
915 'currency' => 'SEK',
916 'price' => 20,
917 'points' => 20,
918 'name' => '20 points',
919 'returnURL' => "http://".$_SERVER['HTTP_HOST']."/success.php",
920 'cancelURL' => "http://".$_SERVER['HTTP_HOST']."/failed.php"
921 );
922
923 ////////////
924 /// SHOP ///
925 ////////////
926 // If useDB is set to true, player can shop in-game as well using Znote LUA shop system plugin.
927 $config['shop'] = array(
928 'enabled' => true,
929 'loginToView' => false, // Do user need to login to see the shop offers?
930 'enableShopConfirmation' => true, // Verify that user wants to buy with popup
931 'useDB' => false, // Fetch offers from database, or the below config array
932 'showImage' => true,
933 'imageServer' => 'items.znote.eu',
934 'imageType' => 'gif',
935 );
936
937 //////////
938 /// Let players sell, buy and bid on characters.
939 /// Creates a deeper shop economy, encourages players to spend more money in shop for points.
940 /// Pay to win/progress mechanic, but also lets people who can barely afford points to gain it
941 /// by leveling characters to sell. It can also discourages illegal/risky third-party account
942 /// services. Since players can buy officially & support the server, dodgy competitors have to sell for cheaper.
943 /// Without admin interference this is organic to each individual community economy inflation.
944 /////////
945 $config['shop_auction'] = array(
946 'characterAuction' => false, // Enable/disable this system
947 // Account ID of the account that stores players in the auction.
948 // Make sure storage account has a very secure password!
949 'storage_account_id' => 500000, // Separate secure account ID, not your GM.
950 'step' => 5, // Minimum amount someone can raise a bid by
951 'step_duration' => 1 * 60 * 60, // When bidding over someone else, extend bid period by 1 hour.
952 'lowestLevel' => 20, // Minimum level of sold character
953 'lowestPrice' => 10, // Lowest donation points a char can be sold for.
954 'biddingDuration' => 1 * 24 * 60 * 60, // = 1 day, 0 to disable bidding
955 'deposit' => 10 // Seller has to add 10=10% deposit to auction which he gets back later.
956 );
957
958 /*
959 type 1 = items
960 type 2 = Premium days
961 type 3 = Change character gender
962 type 4 = Change character name
963 type 5 = Buy outfit (put outfit id as itemid),
964 (put addon id as count [0 = nothing, 1 = first addon, 2 = second addon, 3 = both addons])
965 type 6 = Buy mount (put mount id as itemid)
966 type 7 = buy house (hardcoded in the house system, type used for data log)
967 type 8+ = custom coded stuff
968 */
969 $config['shop_offers'] = array(
970 1 => array(
971 'type' => 1,
972 'itemid' => 2160, // item to get in-game
973 'count' => 5, // Stack number (5x itemid)
974 'description' => "Crystal coin", // Description shown on website
975 'points' => 100, // How many points this offer costs
976 ),
977 2 => array(
978 'type' => 1,
979 'itemid' => 2392,
980 'count' => 1,
981 'description' => "Fire sword",
982 'points' => 10,
983 ),
984 3 => array(
985 'type' => 2,
986 'itemid' => 12466, // Item to display on page
987 'count' => 7, // Days of premium account
988 'description' => "Premium membership",
989 'points' => 25,
990 ),
991 4 => array(
992 'type' => 3,
993 'itemid' => 12666, // Item to display on page
994 'count' => 3,
995 'description' => "Change character gender",
996 'points' => 10,
997 ),
998 5 => array(
999 'type' => 3,
1000 'itemid' => 12666, // Item to display on page
1001 'count' => 0, // 0 = unlimited
1002 'description' => "Change character gender",
1003 'points' => 20,
1004 ),
1005 6 => array(
1006 'type' => 4,
1007 'itemid' => 12666, // Item to display on page
1008 'count' => 1,
1009 'description' => "Change character name",
1010 'points' => 20,
1011 ),
1012 7 => array(
1013 'type' => 5,
1014 'itemid' => [132, 140], // Outfit ID
1015 'count' => 3, // Addon 0 = none, 1 = first, 2 = second, 3 = both
1016 'description' => "Noble outfit with both addons",
1017 'points' => 20,
1018 ),
1019 8 => array(
1020 'type' => 6,
1021 'itemid' => 32, // Mount ID
1022 'count' => 1,
1023 'description' => "Gnarlhound mount",
1024 'points' => 20,
1025 ),
1026 9 => array(
1027 'type' => 6,
1028 'itemid' => 17,
1029 'count' => 1,
1030 'description' => "War horse",
1031 'points' => 20,
1032 ),
1033 );
1034
1035 //////////////////////////
1036 /// OTServers.eu voting
1037 //
1038 // Start by creating an account at OTServers.eu and add your server.
1039 // You can find your secret token by logging in on OTServers.eu and go to 'MY SERVER' then 'Encourage players to vote'.
1040 $config['otservers_eu_voting'] = [
1041 'enabled' => false,
1042 'simpleVoteUrl' => '', //This url is used if the player isn't logged in.
1043 'voteUrl' => 'https://api.otservers.eu/vote_link.php',
1044 'voteCheckUrl' => 'https://api.otservers.eu/vote_check.php',
1045 'secretToken' => '', //Enter your secret token. Do not share with anyone!
1046 'landingPage' => '/voting.php?action=reward', //The user will be redirected to this page after voting
1047 'points' => '1' //Amount of points to give as reward
1048 ];