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