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