diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-01-28 01:31:00 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-01-28 01:31:00 -0300 |
commit | dfd42d4b4160cb2dc3e03ee81198448a7c09c3bf (patch) | |
tree | 69a7db50152d356dfa9a0dc030224c08f6a1cfe8 /npc/001-11 | |
parent | a2c3cf5509553edbd6dc4d7e0f40ac2297556365 (diff) | |
download | serverdata-dfd42d4b4160cb2dc3e03ee81198448a7c09c3bf.tar.gz serverdata-dfd42d4b4160cb2dc3e03ee81198448a7c09c3bf.tar.bz2 serverdata-dfd42d4b4160cb2dc3e03ee81198448a7c09c3bf.tar.xz serverdata-dfd42d4b4160cb2dc3e03ee81198448a7c09c3bf.zip |
Demure scoreboard now functions like Lilica's scoreboards.
Diffstat (limited to 'npc/001-11')
-rw-r--r-- | npc/001-11/Demure.txt | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/npc/001-11/Demure.txt b/npc/001-11/Demure.txt index f8cf422a4..e060332b6 100644 --- a/npc/001-11/Demure.txt +++ b/npc/001-11/Demure.txt @@ -9,19 +9,19 @@ // Functions function ScoreValentine { - .@nb = query_sql("SELECT c.name, i.value FROM `acc_reg_num_db` AS i, `char` AS c WHERE i.key='#VALENTINE_POINTS' AND i.account_id=c.account_id AND c.char_num='0' ORDER BY i.value DESC LIMIT 10", .@name$, .@value); mes "##B"+l("Top 10 - Valentine Day")+"##b"; - mes("1." +.@name$[0]+" ("+.@value[0]+")"); - mes("2." +.@name$[1]+" ("+.@value[1]+")"); - mes("3." +.@name$[2]+" ("+.@value[2]+")"); - mes("4." +.@name$[3]+" ("+.@value[3]+")"); - mes("5." +.@name$[4]+" ("+.@value[4]+")"); - mes("6." +.@name$[5]+" ("+.@value[5]+")"); - mes("7." +.@name$[6]+" ("+.@value[6]+")"); - mes("8." +.@name$[7]+" ("+.@value[7]+")"); - mes("9." +.@name$[8]+" ("+.@value[8]+")"); - mes("10."+.@name$[9]+" ("+.@value[9]+")"); + mesc l("Leaderboard is refresh daily at 23:59!"); + mes("1." +$@valentine_name$[0]+" ("+$@valentine_value[0]+")"); + mes("2." +$@valentine_name$[1]+" ("+$@valentine_value[1]+")"); + mes("3." +$@valentine_name$[2]+" ("+$@valentine_value[2]+")"); + mes("4." +$@valentine_name$[3]+" ("+$@valentine_value[3]+")"); + mes("5." +$@valentine_name$[4]+" ("+$@valentine_value[4]+")"); + mes("6." +$@valentine_name$[5]+" ("+$@valentine_value[5]+")"); + mes("7." +$@valentine_name$[6]+" ("+$@valentine_value[6]+")"); + mes("8." +$@valentine_name$[7]+" ("+$@valentine_value[7]+")"); + mes("9." +$@valentine_name$[8]+" ("+$@valentine_value[8]+")"); + mes("10."+$@valentine_name$[9]+" ("+$@valentine_value[9]+")"); next; } // $@VALENTINE_GIFTSTACKS @@ -210,5 +210,8 @@ OnInit: .distance = 5; end; +OnClock2359: + .@nb = query_sql("SELECT c.name, i.value FROM `acc_reg_num_db` AS i, `char` AS c WHERE i.key='#VALENTINE_POINTS' AND i.account_id=c.account_id AND c.char_num='0' ORDER BY i.value DESC LIMIT 10", $@valentine_name$, $@valentine_value); + end; } |