From b08bb7ee9099feaf6081c46ec9cc628b3b4df0ca Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 22 Jan 2020 22:38:33 -0300 Subject: Hall Of Honor --- npc/functions/scoreboards.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'npc') diff --git a/npc/functions/scoreboards.txt b/npc/functions/scoreboards.txt index 2de129507..86bccdd86 100644 --- a/npc/functions/scoreboards.txt +++ b/npc/functions/scoreboards.txt @@ -41,6 +41,7 @@ OnInit: .@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='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); // Seasonal Scoreboards if (season() == SUMMER || season() == AUTUMN) { @@ -223,6 +224,22 @@ function script HallOfUDT { return; } +function script HallOfHonor { + mes ""; + mes l("##BHall Of Honor: TOP 10##b"); + mes("1."+$@hof_name$[0]+" ("+$@hof_value[0]+")"); + mes("2."+$@hof_name$[1]+" ("+$@hof_value[1]+")"); + mes("3."+$@hof_name$[2]+" ("+$@hof_value[2]+")"); + mes("4."+$@hof_name$[3]+" ("+$@hof_value[3]+")"); + mes("5."+$@hof_name$[4]+" ("+$@hof_value[4]+")"); + mes("6."+$@hof_name$[5]+" ("+$@hof_value[5]+")"); + mes("7."+$@hof_name$[6]+" ("+$@hof_value[6]+")"); + mes("8."+$@hof_name$[7]+" ("+$@hof_value[7]+")"); + mes("9."+$@hof_name$[8]+" ("+$@hof_value[8]+")"); + mes("10."+$@hof_name$[9]+" ("+$@hof_value[9]+")"); + return; +} + @@ -581,6 +598,8 @@ OnCall: case 12: mes l("Hero: ")+$MOST_HEROIC$; next; + HallOfHonor(); + next; break; case 13: HallOf2018(); -- cgit v1.2.3-70-g09d2