From d2d1a8691390f55532eb18843289224a302abc29 Mon Sep 17 00:00:00 2001 From: Atte Date: Tue, 2 Sep 2014 18:30:50 +0300 Subject: [PATCH 01/35] Create powergamers.lua Please tell me how to improve it or if there are any mistakes on it --- LUA/TFS_10/other.md/powergamers.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 LUA/TFS_10/other.md/powergamers.lua diff --git a/LUA/TFS_10/other.md/powergamers.lua b/LUA/TFS_10/other.md/powergamers.lua new file mode 100644 index 0000000..d340bcb --- /dev/null +++ b/LUA/TFS_10/other.md/powergamers.lua @@ -0,0 +1,11 @@ +function onThink(interval, lastExecution, thinkInterval) + if (tonumber(os.date("%d")) ~= getGlobalStorageValue(23856)) then + setGlobalStorageValue(23856, (tonumber(os.date("%d")))) + db.query("UPDATE `znote_players` `a` INNER JOIN `players` `b` ON `a`.`id`=`b`.`id` SET `a`.`exphist7`=`a`.`exphist6`, `a`.`exphist6`=`a`.`exphist5`, `a`.`exphist5`=`a`.`exphist4`, `a`.`exphist4`=`a`.`exphist3`, `a`.`exphist3`=`a`.`exphist2`, `a`.`exphist2`=`a`.`exphist1`, `a`.`exphist1`=`b`.`experience`-`a`.`exphist_lastexp`, `a`.`exphist_lastexp`=`b`.`experience`;") + end + return true +end + +TFS 1.0 (globalevents.xml) + + From ab1816bb8401dbafc9a63eb27cf811f89448d090 Mon Sep 17 00:00:00 2001 From: Atte Date: Tue, 2 Sep 2014 18:35:32 +0300 Subject: [PATCH 02/35] Update powergamers.lua --- LUA/TFS_10/other.md/powergamers.lua | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/LUA/TFS_10/other.md/powergamers.lua b/LUA/TFS_10/other.md/powergamers.lua index d340bcb..09bd19e 100644 --- a/LUA/TFS_10/other.md/powergamers.lua +++ b/LUA/TFS_10/other.md/powergamers.lua @@ -6,6 +6,19 @@ function onThink(interval, lastExecution, thinkInterval) return true end -TFS 1.0 (globalevents.xml) - - +-- TFS 1.0 (globalevents.xml) +-- +-- + +-- SQL (remember to remove all -- before executing)-- +--ALTER TABLE `players` ADD `exphist_lastexp` BIGINT( 255 ) NOT NULL DEFAULT '0', +--ADD `exphist1` BIGINT( 255 ) NOT NULL DEFAULT '0', +--ADD `exphist2` BIGINT( 255 ) NOT NULL DEFAULT '0', +--ADD `exphist3` BIGINT( 255 ) NOT NULL DEFAULT '0', +--ADD `exphist4` BIGINT( 255 ) NOT NULL DEFAULT '0', +--ADD `exphist5` BIGINT( 255 ) NOT NULL DEFAULT '0', +--ADD `exphist6` BIGINT( 255 ) NOT NULL DEFAULT '0', +--ADD `exphist7` BIGINT( 255 ) NOT NULL DEFAULT '0', + +-- after that execute -- +-- UPDATE `players` SET `exphist_lastexp`=`players`.`experience` From e62e35f5c3687dc57ba961a2bad660f3f9aefd32 Mon Sep 17 00:00:00 2001 From: Atte Date: Tue, 2 Sep 2014 18:39:50 +0300 Subject: [PATCH 03/35] Create powergamers.php Please tell me if there are any mistakes or how to improve it. I am quite beginner with SQL, not even 100% sure if it works as it should. So, if you see anything wrong with it please let me know :) --- powergamers.php | 70 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 powergamers.php diff --git a/powergamers.php b/powergamers.php new file mode 100644 index 0000000..bb2f092 --- /dev/null +++ b/powergamers.php @@ -0,0 +1,70 @@ + + + 3) + { + $value .= '.'.substr($value2, -3, 3); + $value2 = substr($value2, 0, strlen($value2)-3); + } + @$value = $value2.$value; + if($valuein > 0) + return '+'.$value.''; + elseif($valuein < 0) + return ''.$value.''; + else + return $value; +} + +if(empty($type)) + $znotePlayers = mysql_select_multi('SELECT * FROM `players` JOIN `znote_players` ON `players`.`id` = `znote_players`.`id` WHERE `group_id` < 2 ORDER BY `exphist_lastexp` DESC LIMIT ' . $limit); +elseif($type >= 1 && $type <= 3) + $znotePlayers = mysql_select_multi('SELECT * FROM `znote_players` JOIN `players` ON `znote_players`.`id` = `players`.`id` WHERE `group_id` < 2 ORDER BY `exphist' . (int) $type . '` DESC LIMIT '.$limit); +echo '

Ranking of powergamers

+
+ + + '; +echo ''; + +for($i = 3; $i >= 2; $i--) + echo ($type == $i) ? '' : ''; + echo ($type == 1) ? '' : ''; + echo (empty($type)) ? '' : ''; + echo ''; + +$number_of_rows = 1; +if($znotePlayers) + foreach($znotePlayers as $player) + { + echo ''; + echo ''; + echo ''; + $number_of_rows++; + } +echo '
#
Name
Total
'.$i.' Days Ago
'.$i.' Days Ago
1 Day Ago1 Day AgoTodayToday
'. $number_of_rows . '.
' .$player['name']. ''; + echo '
' .$player['level']. ' '.htmlspecialchars(vocation_id_to_name($player['vocation'])).' '; + echo '
'.coloured_value($player['exphist1'] + $player['exphist2'] + $player['exphist3']).'
'.coloured_value($player['exphist3']).'
'.coloured_value($player['exphist2']).'
'.coloured_value($player['exphist1']).'
'.coloured_value($player['exphist_lastexp']).'

'; +?> + From 4df1d0c0ccd0831a03e322e1a6bcbc7fe8cd1f5b Mon Sep 17 00:00:00 2001 From: Atte Date: Tue, 2 Sep 2014 18:42:36 +0300 Subject: [PATCH 04/35] Update config.php --- config.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config.php b/config.php index 2d6c843..6377365 100644 --- a/config.php +++ b/config.php @@ -113,6 +113,15 @@ array(12035,2,"The Ice Islands Quest",0), array(12036,6,"The Ice Islands Quest",1), ); + + // TFS 1.0 powergamers + //Before enabling powergamers, make sure that you have added LUA files and SQL querys to your server. + //can be found at "lua>TFS 1.0" folder. + $config['powergamers_enabled'] = true; //True = working, false = page disabled + $config['powergamers'] = array( + 'limit' => 20, //Number of players visible on the page + ); + // Vocation ids and names. $config['vocations'] = array( From d04f0845999ae779137161dd7570f35e29a1039b Mon Sep 17 00:00:00 2001 From: Atte Date: Tue, 2 Sep 2014 18:46:07 +0300 Subject: [PATCH 05/35] Update powergamers.lua ops --- LUA/TFS_10/other.md/powergamers.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LUA/TFS_10/other.md/powergamers.lua b/LUA/TFS_10/other.md/powergamers.lua index 09bd19e..3ce996c 100644 --- a/LUA/TFS_10/other.md/powergamers.lua +++ b/LUA/TFS_10/other.md/powergamers.lua @@ -11,7 +11,7 @@ end -- -- SQL (remember to remove all -- before executing)-- ---ALTER TABLE `players` ADD `exphist_lastexp` BIGINT( 255 ) NOT NULL DEFAULT '0', +--ALTER TABLE `znote_players` ADD `exphist_lastexp` BIGINT( 255 ) NOT NULL DEFAULT '0', --ADD `exphist1` BIGINT( 255 ) NOT NULL DEFAULT '0', --ADD `exphist2` BIGINT( 255 ) NOT NULL DEFAULT '0', --ADD `exphist3` BIGINT( 255 ) NOT NULL DEFAULT '0', @@ -21,4 +21,4 @@ end --ADD `exphist7` BIGINT( 255 ) NOT NULL DEFAULT '0', -- after that execute -- --- UPDATE `players` SET `exphist_lastexp`=`players`.`experience` +-- UPDATE `znote_players` SET `exphist_lastexp`=`players`.`experience` From 2812b1cd80616f101427e5fb1bc486870f834d8c Mon Sep 17 00:00:00 2001 From: Atte Date: Tue, 2 Sep 2014 18:50:38 +0300 Subject: [PATCH 06/35] Update powergamers.lua --- LUA/TFS_10/other.md/powergamers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LUA/TFS_10/other.md/powergamers.lua b/LUA/TFS_10/other.md/powergamers.lua index 3ce996c..d35acd9 100644 --- a/LUA/TFS_10/other.md/powergamers.lua +++ b/LUA/TFS_10/other.md/powergamers.lua @@ -21,4 +21,4 @@ end --ADD `exphist7` BIGINT( 255 ) NOT NULL DEFAULT '0', -- after that execute -- --- UPDATE `znote_players` SET `exphist_lastexp`=`players`.`experience` +-- UPDATE `znote_players` `a` INNER JOIN `players` `b` SET `a`.`exphist_lastexp`=`b`.`experience` From a73bf344a5ceaf30410bc18e8f5b25a2c44f5001 Mon Sep 17 00:00:00 2001 From: Atte Date: Fri, 5 Sep 2014 01:05:50 +0300 Subject: [PATCH 07/35] Create achievements.php --- achievements.php | 57 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 achievements.php diff --git a/achievements.php b/achievements.php new file mode 100644 index 0000000..1896923 --- /dev/null +++ b/achievements.php @@ -0,0 +1,57 @@ + +

Achievements on

+
+ + + + + + + + + + + $achName) { +$secret = false; +if (($achName['points'] >= 1) and ($achName['points'] <= 3) and (!$achName['img'])) { +echo ''; +} +elseif (($achName['points'] >= 4) and ($achName['points'] <= 6) and (!$achName['img'])) +{ +echo ''; +} +elseif (($achName['points'] >= 7) and ($achName['points'] <= 9) and (!$achName['img'])) +{ +echo ''; +} +elseif (($achName['points'] >= 10) and (!$achName['img'])) +{ +echo ''; +} +else { +echo ''; +} +echo ''; +echo ''; +if ($achName['secret'] == true){ +echo ''; +echo ''; +} else { +echo ''; +} +echo ''; +}?> +
GradeNameDescriptionSecretPoints


' .$achName[0]. '' .$achName[1]. ''. $achName['points'] .''. $achName['points'] .'
+
+ + From b2dcf010c2ef753d7036ec437b96750815e78464 Mon Sep 17 00:00:00 2001 From: Atte Date: Fri, 5 Sep 2014 01:08:13 +0300 Subject: [PATCH 08/35] Update config.php --- config.php | 127 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 127 insertions(+) diff --git a/config.php b/config.php index 6377365..69d7cb9 100644 --- a/config.php +++ b/config.php @@ -114,6 +114,133 @@ array(12036,6,"The Ice Islands Quest",1), ); + //Achivements based on "https://github.com/PrinterLUA/FORGOTTENSERVER-ORTS/blob/master/data/lib/achievements_lib.lua" (TFS 1.0) + $config['Ach'] = false; + $config['achievements'] = array( + 35000 => array( + 'First Dragon', //name + 'Rumours say that you will never forget your first Dragon', //comment + 'points' => '1', //points + 'img' => 'http://www.tibia-wiki.net/images/Dragon.gif', //img link or folder (example)> 'images/dragon.png' + ), + + 35001 => array( + 'Uniwheel', + 'You\'re probably one of the very few people with this classic and unique ride, hope it doesn\'t break anytime soon.', //comment + 'points' => '1', //points + 'img' => 'http://img1.wikia.nocookie.net/__cb20140214234600/tibia/en/images/e/e5/Uniwheel.gif', //img link or folder (example)> 'images/dragon.png' + 'secret' => true + ), + + 30001 => array( + 'Allow Cookies?', + '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.', + 'points' => '10', // 1-3 points (1star), 4-6 points(2 stars), 7-9 points(3 stars), 10 points => (4 stars) + 'secret' => true // show "secret" image + ), + 30002 => array( + 'Backpack Tourist', + '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.', + 'points' => '7' + ), + 30003 => array( + 'Bearhugger', + '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.', + 'points' => '4' + ), + 30004 => array( + 'Bone Brother', + '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.', + 'points' => '1' + ), + 30005 => array( + 'Chorister', + '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.', + 'points' => '1' + ), + 30006 => array( + 'Fountain of Life', + '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.', + 'points' => '1', + 'secret' => true + ), + 30007 => array( + 'Here, Fishy Fishy!', + '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!', + 'points' => '1' + ), + 30008 => array( + 'Honorary Barbarian', + '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.', + 'points' => '1' + ), + 30009 => array( + 'Huntsman', + '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!', + 'points' => '2' + ), + 300010 => array( + 'Just in Time', + '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.', + 'points' => '1' + ), + 30011 => array( + 'Matchmaker', + '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!', + 'points' => '1', + 'secret' => true + ), + 30012 => array( + 'Nightmare Knight', + '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.', + 'points' => '1', + 'secret' => true + ), + 30013 => array( + 'Party Animal', + '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!', + 'points' => '1', + 'secret' => true + ), + 30014 => array( + 'Secret Agent', + '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.', + 'points' => '1', + 'secret' => true + ), + 30015 => array( + 'Talented Dancer', + '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!', + 'points' => '1' + ), + 30016 => array( + 'Territorial', + '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.', + 'points' => '1' + ), + 30017 => array( + 'Worm Whacker', + 'Weehee! Whack those worms! You sure know how to handle a big hammer.', + 'points' => '1', + 'secret' => true + ), + 30018 => array( + 'Allowance Collector', + 'You certainly have your ways when it comes to acquiring money. Many of them are pink and paved with broken fragments of porcelain.', + 'points' => '1' + ), + 30019 => array( + 'Amateur Actor', + '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.', + 'points' => '2' + ), + 30020 => array( + 'Animal Activist', + '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.', + 'points' => '2', + 'secret' => true), + ); + // TFS 1.0 powergamers //Before enabling powergamers, make sure that you have added LUA files and SQL querys to your server. //can be found at "lua>TFS 1.0" folder. From d890bba7a4fa1366df2a902bcb394bb39dd84b23 Mon Sep 17 00:00:00 2001 From: Atte Date: Fri, 5 Sep 2014 01:13:56 +0300 Subject: [PATCH 09/35] Update characterprofile.php Fetch houses taken from layout from otland made by @peonso --- characterprofile.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/characterprofile.php b/characterprofile.php index 51022fb..e905767 100644 --- a/characterprofile.php +++ b/characterprofile.php @@ -48,6 +48,28 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false) { } ?> + Achievement Points + 0) + $playerlist[] = $h['owner']; + + if ($profile_data['id'] = $h['owner']) { ?> + House: + , $value) { + if ($key == $h['town_id']) { + echo $value; + } + } ?>
  • Status: Date: Fri, 5 Sep 2014 01:18:05 +0300 Subject: [PATCH 10/35] Update characterprofile.php --- characterprofile.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/characterprofile.php b/characterprofile.php index e905767..29fad71 100644 --- a/characterprofile.php +++ b/characterprofile.php @@ -48,12 +48,13 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false) { } ?>
  • - Achievement PointsAchievement Points: + } + ?> - House: - , House: , $value) { if ($key == $h['town_id']) { echo $value; } - } ?> -
  • Status:
  • +
  • Status: ONLINE'; From b0bf5641cf8dbd23b1087b44bb4c20cd3238bf28 Mon Sep 17 00:00:00 2001 From: Atte Date: Fri, 5 Sep 2014 01:22:01 +0300 Subject: [PATCH 11/35] Update characterprofile.php --- characterprofile.php | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/characterprofile.php b/characterprofile.php index 29fad71..cc1b6a1 100644 --- a/characterprofile.php +++ b/characterprofile.php @@ -87,7 +87,43 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false) { ?>
  • Created:
  • Comment:
  • - + +

    Achievements

    +
    +

    Show/hide player achievements

    +
    + + + + $achiv) { + $uery = mysql_select_single("SELECT `player_id`, `value`, `key` FROM `player_storage` WHERE `player_id`='$user_id' AND `key`='$key' LIMIT 1;"); + foreach ($uery as $luery) + if (($luery) == $key) + { + if (!array_key_exists(($achiv), $config['achievements'])) { + echo ''; + if ($achiv['secret'] == true) { + echo ''; + echo ''; + } else { + echo ''; + } + echo ''; + } + } + } + ?> + +
    ' .$achiv[0]. '' .$achiv[1]. ''. $achiv['points'] .''. $achiv['points'] .'
    +
    +
    + +
  • Death List:
    Date: Fri, 5 Sep 2014 01:28:40 +0300 Subject: [PATCH 12/35] Update achievements.php --- achievements.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/achievements.php b/achievements.php index 1896923..7c3a1a0 100644 --- a/achievements.php +++ b/achievements.php @@ -1,5 +1,5 @@

    Achievements on

    @@ -54,4 +54,8 @@ echo '';
    From 910d7460faa077abf8999cc7aa6525e4e949434e Mon Sep 17 00:00:00 2001 From: Atte Date: Fri, 5 Sep 2014 01:32:10 +0300 Subject: [PATCH 13/35] Update characterprofile.php --- characterprofile.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/characterprofile.php b/characterprofile.php index cc1b6a1..e3fad1d 100644 --- a/characterprofile.php +++ b/characterprofile.php @@ -48,13 +48,14 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false) { } ?>
  • +
  • Achievement Points: '; } - ?>
  • + }?>
  • Created:
  • Comment:
  • - + +

    Achievements

    Show/hide player achievements

    @@ -122,6 +124,7 @@ margin-left:0px;

    +
  • From 379064e7bddb23794b66d63b539eb04e5e3d0400 Mon Sep 17 00:00:00 2001 From: Atte Date: Fri, 5 Sep 2014 01:43:00 +0300 Subject: [PATCH 14/35] Update achievements.php --- achievements.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/achievements.php b/achievements.php index 7c3a1a0..ac7d68b 100644 --- a/achievements.php +++ b/achievements.php @@ -3,7 +3,7 @@ if ($config['Ach'] == true) { ?>

    Achievements on

    - +
    From 050fb6edde8baada523a500be8d3da02eff8be54 Mon Sep 17 00:00:00 2001 From: Atte Date: Wed, 10 Sep 2014 01:09:06 +0300 Subject: [PATCH 15/35] Update powergamers.php --- powergamers.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/powergamers.php b/powergamers.php index bb2f092..bf1f451 100644 --- a/powergamers.php +++ b/powergamers.php @@ -36,7 +36,7 @@ function coloured_value($valuein) } if(empty($type)) - $znotePlayers = mysql_select_multi('SELECT * FROM `players` JOIN `znote_players` ON `players`.`id` = `znote_players`.`id` WHERE `group_id` < 2 ORDER BY `exphist_lastexp` DESC LIMIT ' . $limit); + $znotePlayers = mysql_select_multi('SELECT `a`.`id`, `b`.`player_id`, `a`.`name`, `a`.`vocation`, `a`.`level`, `a`.`group_id`, `a`.`experience`, `b`.`exphist_lastexp`, `b`.`exphist1`, `b`.`exphist2`, `b`.`exphist3`, `b`.`exphist4`, `b`.`exphist5`, `b`.`exphist6`, `b`.`exphist7`, (`a`.`experience` - `b`.`exphist_lastexp`) AS `expdiff` FROM `players` `a` JOIN `znote_players` `b` ON `a`.`id` = `b`.`player_id` WHERE `a`.`group_id` < 2 ORDER BY `expdiff` DESC LIMIT '.$limit); elseif($type >= 1 && $type <= 3) $znotePlayers = mysql_select_multi('SELECT * FROM `znote_players` JOIN `players` ON `znote_players`.`id` = `players`.`id` WHERE `group_id` < 2 ORDER BY `exphist' . (int) $type . '` DESC LIMIT '.$limit); echo '

    Ranking of powergamers

    @@ -60,8 +60,7 @@ if($znotePlayers) echo '
    '; - echo ''; - $number_of_rows++; + echo ''; $number_of_rows++; } echo '
    Grade Name' .$player['name']. ''; echo '
    ' .$player['level']. ' '.htmlspecialchars(vocation_id_to_name($player['vocation'])).' '; echo '
    '.coloured_value($player['exphist1'] + $player['exphist2'] + $player['exphist3']).'
    '.coloured_value($player['exphist3']).'
    '.coloured_value($player['exphist2']).'
    '.coloured_value($player['exphist1']).'
    '.coloured_value($player['exphist_lastexp']).'
    '.coloured_value($player['exphist3']).'
    '.coloured_value($player['exphist2']).'
    '.coloured_value($player['exphist1']).'
    '.coloured_value($player['experience']-$player['exphist_lastexp']).'

    '; ?> From 38c0c00da6080a7de371896a23cee86988a30281 Mon Sep 17 00:00:00 2001 From: Atte Date: Wed, 10 Sep 2014 01:13:04 +0300 Subject: [PATCH 16/35] Update powergamers.lua --- LUA/TFS_10/other.md/powergamers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LUA/TFS_10/other.md/powergamers.lua b/LUA/TFS_10/other.md/powergamers.lua index d35acd9..d9f9eaa 100644 --- a/LUA/TFS_10/other.md/powergamers.lua +++ b/LUA/TFS_10/other.md/powergamers.lua @@ -1,7 +1,7 @@ function onThink(interval, lastExecution, thinkInterval) if (tonumber(os.date("%d")) ~= getGlobalStorageValue(23856)) then setGlobalStorageValue(23856, (tonumber(os.date("%d")))) - db.query("UPDATE `znote_players` `a` INNER JOIN `players` `b` ON `a`.`id`=`b`.`id` SET `a`.`exphist7`=`a`.`exphist6`, `a`.`exphist6`=`a`.`exphist5`, `a`.`exphist5`=`a`.`exphist4`, `a`.`exphist4`=`a`.`exphist3`, `a`.`exphist3`=`a`.`exphist2`, `a`.`exphist2`=`a`.`exphist1`, `a`.`exphist1`=`b`.`experience`-`a`.`exphist_lastexp`, `a`.`exphist_lastexp`=`b`.`experience`;") + db.query("UPDATE `znote_players` `a` INNER JOIN `players` `b` ON `a`.`id`=`b`.`player_id` SET `a`.`exphist7`=`a`.`exphist6`, `a`.`exphist6`=`a`.`exphist5`, `a`.`exphist5`=`a`.`exphist4`, `a`.`exphist4`=`a`.`exphist3`, `a`.`exphist3`=`a`.`exphist2`, `a`.`exphist2`=`a`.`exphist1`, `a`.`exphist1`=`b`.`experience`-`a`.`exphist_lastexp`, `a`.`exphist_lastexp`=`b`.`experience`;") end return true end From 91b973b0a90a3b4a26a540fc1b1e7ef960c58c44 Mon Sep 17 00:00:00 2001 From: Atte Date: Wed, 10 Sep 2014 01:15:37 +0300 Subject: [PATCH 17/35] Update powergamers.php --- powergamers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powergamers.php b/powergamers.php index bf1f451..83e44ce 100644 --- a/powergamers.php +++ b/powergamers.php @@ -59,7 +59,7 @@ if($znotePlayers) echo '
    '. $number_of_rows . '.
    '; echo '' .$player['name']. ''; echo '
    ' .$player['level']. ' '.htmlspecialchars(vocation_id_to_name($player['vocation'])).' '; - echo '
    '.coloured_value($player['exphist1'] + $player['exphist2'] + $player['exphist3']).'
    '; + echo '
    '.coloured_value($player['exphist1'] + $player['exphist2'] + $player['exphist3'] + $player['experience'] - $player['exphist_lastexp']).'
    '; echo '
    '.coloured_value($player['exphist3']).'
    '.coloured_value($player['exphist2']).'
    '.coloured_value($player['exphist1']).'
    '.coloured_value($player['experience']-$player['exphist_lastexp']).'
    '; $number_of_rows++; } echo '
    '; From 0c3541fcae22eef3ace3a2f49580e5df33fb485e Mon Sep 17 00:00:00 2001 From: Atte Date: Wed, 10 Sep 2014 02:02:25 +0300 Subject: [PATCH 18/35] Update powergamers.lua Might as well add toponline? --- LUA/TFS_10/other.md/powergamers.lua | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/LUA/TFS_10/other.md/powergamers.lua b/LUA/TFS_10/other.md/powergamers.lua index d9f9eaa..2feeec0 100644 --- a/LUA/TFS_10/other.md/powergamers.lua +++ b/LUA/TFS_10/other.md/powergamers.lua @@ -1,8 +1,10 @@ function onThink(interval, lastExecution, thinkInterval) if (tonumber(os.date("%d")) ~= getGlobalStorageValue(23856)) then setGlobalStorageValue(23856, (tonumber(os.date("%d")))) + db.query("UPDATE `znote_players` SET `onlinetime7`=`onlinetime6`, `onlinetime6`=`onlinetime5`, `onlinetime5`=`onlinetime4`, `onlinetime4`=`onlinetime3`, `onlinetime3`=`onlinetime2`, `onlinetime2`=`onlinetime1`, `onlinetime1`=`onlinetimetoday`, `onlinetimetoday`=0;") db.query("UPDATE `znote_players` `a` INNER JOIN `players` `b` ON `a`.`id`=`b`.`player_id` SET `a`.`exphist7`=`a`.`exphist6`, `a`.`exphist6`=`a`.`exphist5`, `a`.`exphist5`=`a`.`exphist4`, `a`.`exphist4`=`a`.`exphist3`, `a`.`exphist3`=`a`.`exphist2`, `a`.`exphist2`=`a`.`exphist1`, `a`.`exphist1`=`b`.`experience`-`a`.`exphist_lastexp`, `a`.`exphist_lastexp`=`b`.`experience`;") end + db.query("UPDATE `players` SET `onlinetimetoday` = `onlinetimetoday` + 60, `onlinetimeall` = `onlinetimeall` + 60 WHERE `id` IN (SELECT `player_id` FROM `players_online` WHERE `players_online`.`player_id` = `players`.`id`)") return true end @@ -10,7 +12,7 @@ end -- -- --- SQL (remember to remove all -- before executing)-- +-- SQL (remember to remove all (--) before executing)-- --ALTER TABLE `znote_players` ADD `exphist_lastexp` BIGINT( 255 ) NOT NULL DEFAULT '0', --ADD `exphist1` BIGINT( 255 ) NOT NULL DEFAULT '0', --ADD `exphist2` BIGINT( 255 ) NOT NULL DEFAULT '0', @@ -19,6 +21,17 @@ end --ADD `exphist5` BIGINT( 255 ) NOT NULL DEFAULT '0', --ADD `exphist6` BIGINT( 255 ) NOT NULL DEFAULT '0', --ADD `exphist7` BIGINT( 255 ) NOT NULL DEFAULT '0', +--ADD `onlinetimetoday` BIGINT( 20 ) NOT NULL DEFAULT '0', +--ADD `onlinetime1` BIGINT( 20 ) NOT NULL DEFAULT '0', +--ADD `onlinetime2` BIGINT( 20 ) NOT NULL DEFAULT '0', +--ADD `onlinetime3` BIGINT( 20 ) NOT NULL DEFAULT '0', +--ADD `onlinetime4` BIGINT( 20 ) NOT NULL DEFAULT '0', +--ADD `onlinetime5` BIGINT( 20 ) NOT NULL DEFAULT '0', +--ADD `onlinetime6` BIGINT( 20 ) NOT NULL DEFAULT '0', +--ADD `onlinetime7` BIGINT( 20 ) NOT NULL DEFAULT '0', +--ADD `onlinetimeall` BIGINT( 20 ) NOT NULL DEFAULT '0'; +--------------- + -- after that execute -- --- UPDATE `znote_players` `a` INNER JOIN `players` `b` SET `a`.`exphist_lastexp`=`b`.`experience` + --UPDATE `znote_players` AS `z` INNER JOIN `players` AS `p` ON `p`.`id`=`z`.`player_id` SET `z`.`exphist_lastexp`=`p`.`experience` From 8d72d7765952e80c589928b646cd8ab9ee6cbb69 Mon Sep 17 00:00:00 2001 From: Atte Date: Wed, 10 Sep 2014 02:50:00 +0300 Subject: [PATCH 19/35] Create toponline.php --- toponline.php | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 toponline.php diff --git a/toponline.php b/toponline.php new file mode 100644 index 0000000..9e325cf --- /dev/null +++ b/toponline.php @@ -0,0 +1,84 @@ + + + '.$hours.'h '.$minutes.'m'; + else + if($hours >= 12) + return ''.$hours.'h '.$minutes.'m'; + elseif($hours >= 6) + return ''.$hours.'h '.$minutes.'m'; + else + return ''.$hours.'h '.$minutes.'m'; +} + +if(empty($type)) + $znotePlayers = mysql_select_multi('SELECT * FROM `znote_players` AS `z` JOIN `players` AS `p` WHERE `p`.`id`=`z`.`player_id` and `p`.`group_id` < 3 ORDER BY `onlinetimetoday` DESC LIMIT '.$limit); +elseif($type == "sum") + $znotePlayers = mysql_select_multi('SELECT * FROM `znote_players` AS `z` JOIN `players` AS `p` WHERE `p`.`id`=`z`.`player_id` and `p`.`group_id` < 3 ORDER BY `onlinetime1`+`onlinetime2`+`onlinetime3`+`onlinetime4`+`onlinetime5`+`onlinetime6`+`onlinetime7`+`onlinetimetoday` DESC LIMIT ' . $limit); +elseif($type >= 1 && $type <= 7) + $znotePlayers = mysql_select_multi('SELECT * FROM `znote_players` AS `z` JOIN `players` AS `p` WHERE `p`.`id`=`z`.`player_id` and `p`.`group_id` < 3 ORDER BY `onlinetime' . (int) $type . '` DESC LIMIT '.$limit); + +echo '

    Ranking of powergamers

    +
    + + + '; + +if($type == "sum") + echo ''; +else + echo ''; +for($i = 3; $i >= 2; $i--) +{ + if($type == $i) + echo ''; + else + echo ''; +} +if($type == 1) + echo ''; +else + echo ''; +if(empty($type)) + echo ''; +else + echo ''; + +$number_of_rows = 1; +if($znotePlayers) +foreach($znotePlayers as $player) +{ + echo ''; + echo ''; + echo ''; +} +echo '
    #
    Name
    Total
    Total
    '.$i.' Days Ago
    '.$i.' Days Ago
    1 Day Ago
    1 Day Ago
    Today
    Today
    '. $number_of_rows . '.
    ' .$player['name']. ''; + echo '
    ' .$player['level']. ' '.htmlspecialchars(vocation_id_to_name($player['vocation'])).' '; + echo '
    '.hours_and_minutes($player['onlinetime1'] + $player['onlinetime2'] + $player['onlinetime3'] + $player['onlinetimetoday'], 0).''.hours_and_minutes($player['onlinetime3']).''.hours_and_minutes($player['onlinetime2']).''.hours_and_minutes($player['onlinetime1']).''.hours_and_minutes($player['onlinetimetoday']).'
    '; +?> + From 88a4aec49737f095555af65d0d3ec5fca74d75ad Mon Sep 17 00:00:00 2001 From: Atte Date: Wed, 10 Sep 2014 09:39:50 +0300 Subject: [PATCH 20/35] Update powergamers.lua --- LUA/TFS_10/other.md/powergamers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LUA/TFS_10/other.md/powergamers.lua b/LUA/TFS_10/other.md/powergamers.lua index 2feeec0..ea6f757 100644 --- a/LUA/TFS_10/other.md/powergamers.lua +++ b/LUA/TFS_10/other.md/powergamers.lua @@ -10,7 +10,7 @@ end -- TFS 1.0 (globalevents.xml) -- --- +-- -- SQL (remember to remove all (--) before executing)-- --ALTER TABLE `znote_players` ADD `exphist_lastexp` BIGINT( 255 ) NOT NULL DEFAULT '0', From 99bcc074f65d26b61b47cf4b7da0f018c2d15304 Mon Sep 17 00:00:00 2001 From: Atte Date: Wed, 10 Sep 2014 09:45:44 +0300 Subject: [PATCH 21/35] Update powergamers.lua --- LUA/TFS_10/other.md/powergamers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LUA/TFS_10/other.md/powergamers.lua b/LUA/TFS_10/other.md/powergamers.lua index ea6f757..6c1258c 100644 --- a/LUA/TFS_10/other.md/powergamers.lua +++ b/LUA/TFS_10/other.md/powergamers.lua @@ -4,7 +4,7 @@ function onThink(interval, lastExecution, thinkInterval) db.query("UPDATE `znote_players` SET `onlinetime7`=`onlinetime6`, `onlinetime6`=`onlinetime5`, `onlinetime5`=`onlinetime4`, `onlinetime4`=`onlinetime3`, `onlinetime3`=`onlinetime2`, `onlinetime2`=`onlinetime1`, `onlinetime1`=`onlinetimetoday`, `onlinetimetoday`=0;") db.query("UPDATE `znote_players` `a` INNER JOIN `players` `b` ON `a`.`id`=`b`.`player_id` SET `a`.`exphist7`=`a`.`exphist6`, `a`.`exphist6`=`a`.`exphist5`, `a`.`exphist5`=`a`.`exphist4`, `a`.`exphist4`=`a`.`exphist3`, `a`.`exphist3`=`a`.`exphist2`, `a`.`exphist2`=`a`.`exphist1`, `a`.`exphist1`=`b`.`experience`-`a`.`exphist_lastexp`, `a`.`exphist_lastexp`=`b`.`experience`;") end - db.query("UPDATE `players` SET `onlinetimetoday` = `onlinetimetoday` + 60, `onlinetimeall` = `onlinetimeall` + 60 WHERE `id` IN (SELECT `player_id` FROM `players_online` WHERE `players_online`.`player_id` = `players`.`id`)") + db.query("UPDATE `znote_players` SET `onlinetimetoday` = `onlinetimetoday` + 60, `onlinetimeall` = `onlinetimeall` + 60 WHERE `id` IN (SELECT `player_id` FROM `players_online` WHERE `players_online`.`player_id` = `players`.`id`)") return true end From cb5316d95839b3da79d91183e0d1dcfac0bdf302 Mon Sep 17 00:00:00 2001 From: Atte Date: Wed, 10 Sep 2014 10:05:45 +0300 Subject: [PATCH 22/35] Update powergamers.lua top online should work properly now too --- LUA/TFS_10/other.md/powergamers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LUA/TFS_10/other.md/powergamers.lua b/LUA/TFS_10/other.md/powergamers.lua index 6c1258c..c9584d2 100644 --- a/LUA/TFS_10/other.md/powergamers.lua +++ b/LUA/TFS_10/other.md/powergamers.lua @@ -4,7 +4,7 @@ function onThink(interval, lastExecution, thinkInterval) db.query("UPDATE `znote_players` SET `onlinetime7`=`onlinetime6`, `onlinetime6`=`onlinetime5`, `onlinetime5`=`onlinetime4`, `onlinetime4`=`onlinetime3`, `onlinetime3`=`onlinetime2`, `onlinetime2`=`onlinetime1`, `onlinetime1`=`onlinetimetoday`, `onlinetimetoday`=0;") db.query("UPDATE `znote_players` `a` INNER JOIN `players` `b` ON `a`.`id`=`b`.`player_id` SET `a`.`exphist7`=`a`.`exphist6`, `a`.`exphist6`=`a`.`exphist5`, `a`.`exphist5`=`a`.`exphist4`, `a`.`exphist4`=`a`.`exphist3`, `a`.`exphist3`=`a`.`exphist2`, `a`.`exphist2`=`a`.`exphist1`, `a`.`exphist1`=`b`.`experience`-`a`.`exphist_lastexp`, `a`.`exphist_lastexp`=`b`.`experience`;") end - db.query("UPDATE `znote_players` SET `onlinetimetoday` = `onlinetimetoday` + 60, `onlinetimeall` = `onlinetimeall` + 60 WHERE `id` IN (SELECT `player_id` FROM `players_online` WHERE `players_online`.`player_id` = `players`.`id`)") + db.query("UPDATE `znote_players` SET `onlinetimetoday` = `onlinetimetoday` + 60, `onlinetimeall` = `onlinetimeall` + 60 WHERE `player_id` IN (SELECT `player_id` FROM `players_online` WHERE `players_online`.`player_id` = `znote_players`.`player_id`)") return true end From 4b97c12edb7f7fff1b15cf3758440f1fdf5497c8 Mon Sep 17 00:00:00 2001 From: Atte Date: Wed, 10 Sep 2014 10:57:44 +0300 Subject: [PATCH 23/35] Update toponline.php --- toponline.php | 55 ++++++++++++++++++++++++++++----------------------- 1 file changed, 30 insertions(+), 25 deletions(-) diff --git a/toponline.php b/toponline.php index 9e325cf..854d1d4 100644 --- a/toponline.php +++ b/toponline.php @@ -1,23 +1,25 @@ - - '.$hours.'h '.$minutes.'m'; +} + function hours_and_minutes($value, $color = 1) { $hours = floor($value / 3600); @@ -37,45 +39,48 @@ function hours_and_minutes($value, $color = 1) if(empty($type)) $znotePlayers = mysql_select_multi('SELECT * FROM `znote_players` AS `z` JOIN `players` AS `p` WHERE `p`.`id`=`z`.`player_id` and `p`.`group_id` < 3 ORDER BY `onlinetimetoday` DESC LIMIT '.$limit); elseif($type == "sum") - $znotePlayers = mysql_select_multi('SELECT * FROM `znote_players` AS `z` JOIN `players` AS `p` WHERE `p`.`id`=`z`.`player_id` and `p`.`group_id` < 3 ORDER BY `onlinetime1`+`onlinetime2`+`onlinetime3`+`onlinetime4`+`onlinetime5`+`onlinetime6`+`onlinetime7`+`onlinetimetoday` DESC LIMIT ' . $limit); -elseif($type >= 1 && $type <= 7) + $znotePlayers = mysql_select_multi('SELECT * FROM `znote_players` AS `z` JOIN `players` AS `p` WHERE `p`.`id`=`z`.`player_id` and `p`.`group_id` < 3 ORDER BY `z`.`onlinetimeall` DESC LIMIT '. $limit); +elseif($type >= 1 && $type <= 4) $znotePlayers = mysql_select_multi('SELECT * FROM `znote_players` AS `z` JOIN `players` AS `p` WHERE `p`.`id`=`z`.`player_id` and `p`.`group_id` < 3 ORDER BY `onlinetime' . (int) $type . '` DESC LIMIT '.$limit); -echo '

    Ranking of powergamers

    +echo '

    Most online on server name


    '; if($type == "sum") - echo ''; + echo ''; else - echo ''; + echo ''; for($i = 3; $i >= 2; $i--) { if($type == $i) - echo ''; + echo ''; else - echo ''; + echo ''; } if($type == 1) - echo ''; + echo ''; else - echo ''; + echo ''; if(empty($type)) - echo ''; + echo ''; else - echo ''; + echo ''; +echo ''; + $number_of_rows = 1; if($znotePlayers) foreach($znotePlayers as $player) { echo ''; - echo ''; - echo ''; + echo ''; + $number_of_rows++; + echo ''; } echo '
    #
    Name
    Total
    Total
    Total
    Total
    '.$i.' Days Ago
    '.$i.' Days Ago
    '.$i.' Days Ago
    '.$i.' Days Ago
    1 Day Ago
    1 Day Ago
    1 Day Ago
    1 Day Ago
    Today
    Today
    Today
    Today
    '. $number_of_rows . '.
    ' .$player['name']. ''; + echo '' .$player['name']. ''; echo '
    ' .$player['level']. ' '.htmlspecialchars(vocation_id_to_name($player['vocation'])).' '; - echo '
    '.hours_and_minutes($player['onlinetime1'] + $player['onlinetime2'] + $player['onlinetime3'] + $player['onlinetimetoday'], 0).''.hours_and_minutes($player['onlinetime3']).''.hours_and_minutes($player['onlinetime2']).''.hours_and_minutes($player['onlinetime1']).''.hours_and_minutes($player['onlinetimetoday']).'
    ' .onlineTimeTotal($player['onlinetimeall']).'
    '.hours_and_minutes($player['onlinetime3']).'
    '.hours_and_minutes($player['onlinetime2']).'
    '.hours_and_minutes($player['onlinetime1']).'
    '.hours_and_minutes($player['onlinetimetoday']).'
    '; ?> From e9d5fc4227e4a05ecede1b692921e41c17124356 Mon Sep 17 00:00:00 2001 From: Atte Date: Wed, 10 Sep 2014 10:58:45 +0300 Subject: [PATCH 24/35] Update config.php --- config.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config.php b/config.php index 69d7cb9..5e46725 100644 --- a/config.php +++ b/config.php @@ -241,13 +241,18 @@ 'secret' => true), ); - // TFS 1.0 powergamers + // TFS 1.0 powergamers and toponline //Before enabling powergamers, make sure that you have added LUA files and SQL querys to your server. //can be found at "lua>TFS 1.0" folder. $config['powergamers_enabled'] = true; //True = working, false = page disabled $config['powergamers'] = array( 'limit' => 20, //Number of players visible on the page ); + + $config['toponline_enabled'] = true; //True = working, false = page disabled + $config['toponline'] = array( + 'limit' => 20, //Number of players that it will show. + ); // Vocation ids and names. From 65ecac19a9172289250f421fa4d3bef32adee5cc Mon Sep 17 00:00:00 2001 From: Atte Date: Wed, 10 Sep 2014 11:05:36 +0300 Subject: [PATCH 25/35] Update config.php --- config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.php b/config.php index 5e46725..f0cd53d 100644 --- a/config.php +++ b/config.php @@ -437,8 +437,8 @@ $config['salt'] = false; // Some noob 0.3.6 servers don't support salt. // Restricted names - $config['invalidNameTags'] = array("god", "gm", "cm", "gamemaster", "hoster", "admin", "admim", "adm", "owner", "staff"); - + $config['invalidNameTags'] = array("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"); + // Use guild logo system $config['use_guild_logos'] = true; From 8b90fe0ea2c7c38a3fb66988824095c69cbb3e4e Mon Sep 17 00:00:00 2001 From: Atte Date: Wed, 10 Sep 2014 15:35:24 +0300 Subject: [PATCH 26/35] Update toponline.php --- toponline.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/toponline.php b/toponline.php index 854d1d4..cb1b5c5 100644 --- a/toponline.php +++ b/toponline.php @@ -1,17 +1,15 @@ = 1 && $type <= 4) $znotePlayers = mysql_select_multi('SELECT * FROM `znote_players` AS `z` JOIN `players` AS `p` WHERE `p`.`id`=`z`.`player_id` and `p`.`group_id` < 3 ORDER BY `onlinetime' . (int) $type . '` DESC LIMIT '.$limit); -echo '

    Most online on server name

    +echo '

    Most online on Dalerium


    From 34ab5bf06a42389f8fa5c3f8f77dc67db9ff4f54 Mon Sep 17 00:00:00 2001 From: Atte Date: Wed, 10 Sep 2014 15:35:37 +0300 Subject: [PATCH 27/35] Update powergamers.php --- powergamers.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/powergamers.php b/powergamers.php index 83e44ce..3d83882 100644 --- a/powergamers.php +++ b/powergamers.php @@ -1,14 +1,14 @@
    #