From f3e41a1895a966154b664282b4a416bef18e77fd Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 26 Dec 2021 00:55:04 -0300 Subject: Some bugfixing --- npc/functions/scoreboards.txt | 44 ++++++++++++++++++++++++++++++++----------- 1 file changed, 33 insertions(+), 11 deletions(-) (limited to 'npc/functions/scoreboards.txt') diff --git a/npc/functions/scoreboards.txt b/npc/functions/scoreboards.txt index f280dc6a4..5d10c6697 100644 --- a/npc/functions/scoreboards.txt +++ b/npc/functions/scoreboards.txt @@ -13,6 +13,7 @@ function script ScoreboardsReload { .@nb = query_sql("select char_name, command from `atcommandlog` ORDER BY atcommand_id DESC LIMIT 15", $@hogm_name$, $@hogm_value$); .@nb = query_sql("select name, guild_lv from `guild` WHERE `guild_id`!=1 ORDER BY guild_lv DESC LIMIT 5", $@hoguild_name$, $@hoguild_value); .@nb = query_sql("SELECT c.name, i.value FROM `char_reg_num_db` AS i, `char` AS c WHERE i.key='CRAZYPOINTS' AND i.char_id=c.char_id ORDER BY i.value DESC LIMIT 10", $@cfefe_name$, $@cfefe_value); + .@nb = query_sql("SELECT c.name, i.value FROM `char_reg_num_db` AS i, `char` AS c WHERE i.key='SCANDORPTS' AND i.char_id=c.char_id ORDER BY i.value DESC LIMIT 10", $@blood_name$, $@blood_value); .@nb = query_sql("SELECT c.name, i.value FROM `char_reg_num_db` AS i, `char` AS c WHERE i.key='UDTRANK' AND i.char_id=c.char_id ORDER BY i.value DESC LIMIT 10", $@udt_name$, $@udt_value); .@nb = query_sql("SELECT c.name, i.value FROM `char_reg_num_db` AS i, `char` AS c WHERE i.key='AFKING' AND i.char_id=c.char_id ORDER BY i.value DESC LIMIT 10", $@afk_name$, $@afk_value); .@nb = query_sql("SELECT c.name, i.value FROM `char_reg_num_db` AS i, `char` AS c WHERE i.key='HONOR' AND i.char_id=c.char_id ORDER BY i.value DESC LIMIT 10", $@hof_name$, $@hof_value); @@ -235,6 +236,22 @@ function script HallOfCandor { return; } +function script HallOfBloodbath { + mes ""; + mes l("##BHall Of Candor's Bloodbath: TOP 10##b"); + mes("1."+$@blood_name$[0]+" ("+FuzzyTime(gettimetick(2)-$@blood_value[0])+")"); + mes("2."+$@blood_name$[1]+" ("+FuzzyTime(gettimetick(2)-$@blood_value[1])+")"); + mes("3."+$@blood_name$[2]+" ("+FuzzyTime(gettimetick(2)-$@blood_value[2])+")"); + mes("4."+$@blood_name$[3]+" ("+FuzzyTime(gettimetick(2)-$@blood_value[3])+")"); + mes("5."+$@blood_name$[4]+" ("+FuzzyTime(gettimetick(2)-$@blood_value[4])+")"); + mes("6."+$@blood_name$[5]+" ("+FuzzyTime(gettimetick(2)-$@blood_value[5])+")"); + mes("7."+$@blood_name$[6]+" ("+FuzzyTime(gettimetick(2)-$@blood_value[6])+")"); + mes("8."+$@blood_name$[7]+" ("+FuzzyTime(gettimetick(2)-$@blood_value[7])+")"); + mes("9."+$@blood_name$[8]+" ("+FuzzyTime(gettimetick(2)-$@blood_value[8])+")"); + mes("10."+$@blood_name$[9]+" ("+FuzzyTime(gettimetick(2)-$@blood_value[9])+")"); + return; +} + function script HallOfUDT { mes ""; mes l("##BHall Of UDT Challenge: TOP 10##b"); @@ -795,6 +812,7 @@ OnCall: l("Hall Of GM Commands"), l("Hall Of Guilds"), l("Hall Of Crazyfefe Battle"), + l("Hall Of Candor Bloodbath"), l("Hall Of Doppelganger Arena"), l("Hall Of AF King"), l("Hall Of Deaths"), @@ -843,18 +861,22 @@ OnCall: next; break; case 9: - HallOfUDT(); + HallOfBloodbath(); next; break; case 10: - HallOfAFK(); + HallOfUDT(); next; break; case 11: - HallOfDeath(); + HallOfAFK(); next; break; case 12: + HallOfDeath(); + next; + break; + case 13: mes b(l("Top 10 - Summer Ched's Event")); mes("1."+$@ched_name$[0]+" ("+$@ched_value[0]+")"); mes("2."+$@ched_name$[1]+" ("+$@ched_value[1]+")"); @@ -868,37 +890,37 @@ OnCall: mes("10."+$@ched_name$[9]+" ("+$@ched_value[9]+")"); next; break; - case 13: + case 14: mes l("Hero: ")+$MOST_HEROIC$; mes ""; HallOfHonor(); next; break; - case 14: + case 15: HallOfAcademic(); next; break; - case 15: + case 16: HallOf2018(); next; break; - case 16: + case 17: HallOf2019(); next; break; - case 17: + case 18: HallOf2020(); next; break; - case 18: + case 19: HallOf2021(); next; break; - case 19: + case 20: HallOf2022(); next; break; - case 20: + case 21: HallOfGame(); next; break; -- cgit v1.2.3-60-g2f50