summaryrefslogtreecommitdiff
path: root/npc/functions/scoreboards.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-01-22 22:38:33 -0300
committerJesusaves <cpntb1@ymail.com>2020-01-22 22:38:33 -0300
commitb08bb7ee9099feaf6081c46ec9cc628b3b4df0ca (patch)
treeab2c73758c6d611450d93e70ae4db9d2797211a5 /npc/functions/scoreboards.txt
parent491e8ddcdbb811d3cace0244c3f548ebd7f7c0b7 (diff)
downloadserverdata-b08bb7ee9099feaf6081c46ec9cc628b3b4df0ca.tar.gz
serverdata-b08bb7ee9099feaf6081c46ec9cc628b3b4df0ca.tar.bz2
serverdata-b08bb7ee9099feaf6081c46ec9cc628b3b4df0ca.tar.xz
serverdata-b08bb7ee9099feaf6081c46ec9cc628b3b4df0ca.zip
Hall Of Honor
Diffstat (limited to 'npc/functions/scoreboards.txt')
-rw-r--r--npc/functions/scoreboards.txt19
1 files changed, 19 insertions, 0 deletions
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();