diff options
author | Jesusaves <cpntb1@ymail.com> | 2023-11-06 22:22:16 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2023-11-06 22:22:16 -0300 |
commit | a2fc9a4dbe2f71a1d69c0c0b438c69d89c6caa69 (patch) | |
tree | a63641eb71d0eef3d22c005d4ecbe2490bfbcb2a /npc | |
parent | d33b3d4a2fe33eb7b8f6623f6666fd1abb07ff86 (diff) | |
download | serverdata-a2fc9a4dbe2f71a1d69c0c0b438c69d89c6caa69.tar.gz serverdata-a2fc9a4dbe2f71a1d69c0c0b438c69d89c6caa69.tar.bz2 serverdata-a2fc9a4dbe2f71a1d69c0c0b438c69d89c6caa69.tar.xz serverdata-a2fc9a4dbe2f71a1d69c0c0b438c69d89c6caa69.zip |
Disable HallOfReferral (performance / unused and deprecated code)
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/scoreboards.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/npc/functions/scoreboards.txt b/npc/functions/scoreboards.txt index decc25ffd..0a4caa263 100644 --- a/npc/functions/scoreboards.txt +++ b/npc/functions/scoreboards.txt @@ -18,7 +18,7 @@ function script ScoreboardsReload { .@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); .@nb = query_sql("SELECT c.name, i.value FROM `char_reg_num_db` AS i, `char` AS c WHERE i.key='ACADEMIC_RANK' AND i.char_id=c.char_id ORDER BY i.value DESC LIMIT 30", $@hoa_name$, $@hoa_value); - .@nb = query_sql("SELECT c.name, i.value FROM `mapreg` AS i, `char` AS c WHERE i.varname='$REFERRAL_IDS' AND i.index=c.account_id ORDER BY i.value DESC LIMIT 20", $@hor_name$, $@hor_value); + //.@nb = query_sql("SELECT c.name, i.value FROM `mapreg` AS i, `char` AS c WHERE i.varname='$REFERRAL_IDS' AND i.index=c.account_id ORDER BY i.value DESC LIMIT 20", $@hor_name$, $@hor_value); .@nb = query_sql("SELECT c.name, i.value FROM `char_reg_num_db` AS i, `char` AS c WHERE i.key='PC_DIE_COUNTER' AND i.char_id=c.char_id AND c.last_login >= "+(gettimetick(2)-86400)+" ORDER BY i.value ASC LIMIT 10", $@hod_name$, $@hod_value); // Seasonal Scoreboards @@ -316,6 +316,7 @@ function script HallOfHonor { function script HallOfReferral { mes ""; mes "Referral Program Report - pg. 1"; + /* mes("1."+$@hor_name$[0]+" ("+$@hor_value[0]+")"); mes("2."+$@hor_name$[1]+" ("+$@hor_value[1]+")"); mes("3."+$@hor_name$[2]+" ("+$@hor_value[2]+")"); @@ -338,6 +339,8 @@ function script HallOfReferral { mes("18."+$@hor_name$[17]+" ("+$@hor_value[17]+")"); mes("19."+$@hor_name$[18]+" ("+$@hor_value[18]+")"); mes("20."+$@hor_name$[19]+" ("+$@hor_value[19]+")"); + */ + mesc "-- Temporarily disabled", 1; next; return; } |