From daf65ed9945542415c04a4e344a11ba95ddfe5f5 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 16 Jul 2021 23:51:04 -0300 Subject: Remove underperformant scoreboards. One which did not exist in TMWA, and one is the Hall of Acorns. Boss Points scoreboard is underperformant as well. Was kept for being important but likely will need an optimization. --- npc/functions/scoreboards.txt | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/npc/functions/scoreboards.txt b/npc/functions/scoreboards.txt index 50a5823d..f7d5ddaf 100644 --- a/npc/functions/scoreboards.txt +++ b/npc/functions/scoreboards.txt @@ -79,6 +79,7 @@ function script HallOfJob { return; } +/* function script HallOfAcorns { mes ""; mes l("##BHall Of Acorns: TOP15##b"); @@ -122,6 +123,7 @@ function script HallOfLethality { mesf("15. %s (%d)", $@hol_name$[14], $@hol_value[14]); return; } +*/ function script HallOfAlmanach { mes ""; @@ -192,8 +194,6 @@ OnInit: .@nb = query_sql("select name, base_level from `char` ORDER BY base_level DESC LIMIT 15", $@hoblvl_name$, $@hoblvl_value); .@nb = query_sql("select name, job_level from `char` ORDER BY job_level DESC LIMIT 15", $@hojlvl_name$, $@hojlvl_value); .@nb = query_sql("select name, guild_lv from `guild` ORDER BY guild_lv DESC LIMIT 5", $@hoguild_name$, $@hoguild_value); - .@nb = query_sql("SELECT c.name, i.amount FROM `storage` AS i, `char` AS c WHERE i.nameid="+Acorn+" AND i.account_id=c.account_id AND c.char_num = 0 ORDER BY i.amount DESC LIMIT 15", $@hoa_name$, $@hoa_value); - .@nb = query_sql("SELECT c.name, i.value FROM `char_reg_num_db` AS i, `char` AS c WHERE i.key='MONSTERS_KILLED' AND i.char_id=c.char_id ORDER BY i.value DESC LIMIT 15", $@hol_name$, $@hol_value); .@nb = query_sql("SELECT c.name, i.value FROM `char_reg_num_db` AS i, `char` AS c WHERE i.key='BOSS_POINTS' AND i.char_id=c.char_id ORDER BY i.value DESC LIMIT 15", $@hob_name$, $@hob_value); consolemes(CONSOLEMES_DEBUG, "Scoreboards reloaded"); if (!$@SCOREBOARD_BIND) { @@ -214,9 +214,7 @@ OnCall: l("Hall Of Base Level"), l("Hall Of Job Level"), l("Hall Of Guilds"), - l("Hall Of Lethality"), l("Hall Of Almanach"), - l("Hall Of Acorns"), l("Game Statistics"), l("Personal Information"), l("Quit"); @@ -239,22 +237,14 @@ OnCall: next; break; case 5: - HallOfLethality(); - next; - break; - case 6: HallOfAlmanach(); next; break; - case 7: - HallOfAcorns(); - next; - break; - case 8: + case 6: HallOfGame(); next; break; - case 9: + case 7: ShowAbizit(true); mes ""; mesc l("Total deaths: %s", fnum(PC_DIE_COUNTER)); -- cgit v1.2.3-60-g2f50