diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-07-20 04:41:49 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-07-20 04:41:49 -0300 |
commit | e1d89172a09be0d6174051f295bb9267415e7c87 (patch) | |
tree | a165430beefa1b0743155bb8ab039b46dc5a3e08 | |
parent | b12e8c507851f727b9f19617baa4633ce24bee51 (diff) | |
download | serverdata-e1d89172a09be0d6174051f295bb9267415e7c87.tar.gz serverdata-e1d89172a09be0d6174051f295bb9267415e7c87.tar.bz2 serverdata-e1d89172a09be0d6174051f295bb9267415e7c87.tar.xz serverdata-e1d89172a09be0d6174051f295bb9267415e7c87.zip |
Scoreboards
-rw-r--r-- | npc/003-0-1/statues.txt | 6 | ||||
-rw-r--r-- | npc/functions/mobpoint.txt | 6 | ||||
-rw-r--r-- | npc/functions/scoreboards.txt | 51 |
3 files changed, 61 insertions, 2 deletions
diff --git a/npc/003-0-1/statues.txt b/npc/003-0-1/statues.txt index 1f6fec071..cd57b40cd 100644 --- a/npc/003-0-1/statues.txt +++ b/npc/003-0-1/statues.txt @@ -10,6 +10,8 @@ .rate_limit=gettimetick(2); HallOfFortune(); + next; + HallOfCraft(); close; OnInit: @@ -72,6 +74,10 @@ OnInit: 003-0-1,60,26,0 script Worker Statue NPC_STATUE_CONTRIBUTOR,{ HallOfSponsor(); + next; + HallOfMobpt(); + next; + HallOfPVP(); close; OnInit: diff --git a/npc/functions/mobpoint.txt b/npc/functions/mobpoint.txt index 8605f40ba..1035c62ca 100644 --- a/npc/functions/mobpoint.txt +++ b/npc/functions/mobpoint.txt @@ -11,13 +11,14 @@ function script fix_mobkill { } function script mobpoint { - if (!MPQUEST) - return; //if (killedrid < 1002) goto L_Return; // You get MobLv + 10% as MobPoints. // So a level 100 monster gives you 110 MobPt. .@addval=strmobinfo(3,killedrid)*11/10; + TS_MOBPT = TS_MOBPT + .@addval; + if (!MPQUEST) + return; Mobpt = Mobpt + .@addval; return; @@ -62,6 +63,7 @@ OnNPCKillEvent: // Frostia Imperial PVP Arena, Call Of Dusty, Arena Quirino Voraz. OnPCKillEvent: $PLAYERS_KILLED+=1; + TS_PVPCNT+=1; // killedrid .@m$=getmap(); .@bxp=readparam(BaseLevel, killedrid); diff --git a/npc/functions/scoreboards.txt b/npc/functions/scoreboards.txt index c3110c2dc..9ceac8265 100644 --- a/npc/functions/scoreboards.txt +++ b/npc/functions/scoreboards.txt @@ -39,6 +39,9 @@ OnInit: .@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='TS_MOBPT' AND i.char_id=c.char_id ORDER BY i.value DESC LIMIT 10", $@mobpt_name$, $@mobpt_value); + .@nb = query_sql("SELECT c.name, i.value FROM `char_reg_num_db` AS i, `char` AS c WHERE i.key='TS_PVPCNT' AND i.char_id=c.char_id ORDER BY i.value DESC LIMIT 10", $@pvp_name$, $@pvp_value); + .@nb = query_sql("SELECT c.name, i.value FROM `char_reg_num_db` AS i, `char` AS c WHERE i.key='CRAFTING_SCORE' AND i.char_id=c.char_id ORDER BY i.value DESC LIMIT 10", $@crafters_name$, $@crafters_value); debugmes "Scoreboards reloaded"; end; } @@ -196,6 +199,54 @@ function script HallOfCandor { return; } +function script HallOfMobpt { + mes ""; + mes l("##BHall Of Generated Mob Points: TOP 10##b"); + mes("1."+$@mobpt_name$[0]+" ("+$@mobpt_value[0]+")"); + mes("2."+$@mobpt_name$[1]+" ("+$@mobpt_value[1]+")"); + mes("3."+$@mobpt_name$[2]+" ("+$@mobpt_value[2]+")"); + mes("4."+$@mobpt_name$[3]+" ("+$@mobpt_value[3]+")"); + mes("5."+$@mobpt_name$[4]+" ("+$@mobpt_value[4]+")"); + mes("6."+$@mobpt_name$[5]+" ("+$@mobpt_value[5]+")"); + mes("7."+$@mobpt_name$[6]+" ("+$@mobpt_value[6]+")"); + mes("8."+$@mobpt_name$[7]+" ("+$@mobpt_value[7]+")"); + mes("9."+$@mobpt_name$[8]+" ("+$@mobpt_value[8]+")"); + mes("10."+$@mobpt_name$[9]+" ("+$@mobpt_value[9]+")"); + return; +} + +function script HallOfPVP { + mes ""; + mes l("##BHall Of PVP Kills: TOP 10##b"); + mes("1."+$@pvp_name$[0]+" ("+$@pvp_value[0]+")"); + mes("2."+$@pvp_name$[1]+" ("+$@pvp_value[1]+")"); + mes("3."+$@pvp_name$[2]+" ("+$@pvp_value[2]+")"); + mes("4."+$@pvp_name$[3]+" ("+$@pvp_value[3]+")"); + mes("5."+$@pvp_name$[4]+" ("+$@pvp_value[4]+")"); + mes("6."+$@pvp_name$[5]+" ("+$@pvp_value[5]+")"); + mes("7."+$@pvp_name$[6]+" ("+$@pvp_value[6]+")"); + mes("8."+$@pvp_name$[7]+" ("+$@pvp_value[7]+")"); + mes("9."+$@pvp_name$[8]+" ("+$@pvp_value[8]+")"); + mes("10."+$@pvp_name$[9]+" ("+$@pvp_value[9]+")"); + return; +} + +function script HallOfCraft { + mes ""; + mes l("##BHall Of Crafting: TOP 10##b"); + mes("1."+$@crafters_name$[0]+" ("+$@crafters_value[0]+")"); + mes("2."+$@crafters_name$[1]+" ("+$@crafters_value[1]+")"); + mes("3."+$@crafters_name$[2]+" ("+$@crafters_value[2]+")"); + mes("4."+$@crafters_name$[3]+" ("+$@crafters_value[3]+")"); + mes("5."+$@crafters_name$[4]+" ("+$@crafters_value[4]+")"); + mes("6."+$@crafters_name$[5]+" ("+$@crafters_value[5]+")"); + mes("7."+$@crafters_name$[6]+" ("+$@crafters_value[6]+")"); + mes("8."+$@crafters_name$[7]+" ("+$@crafters_value[7]+")"); + mes("9."+$@crafters_name$[8]+" ("+$@crafters_value[8]+")"); + mes("10."+$@crafters_name$[9]+" ("+$@crafters_value[9]+")"); + return; +} + |