diff options
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/scoreboards.txt | 3 | ||||
-rw-r--r-- | npc/functions/seasons.txt | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/npc/functions/scoreboards.txt b/npc/functions/scoreboards.txt index 47df65760..7524a5a64 100644 --- a/npc/functions/scoreboards.txt +++ b/npc/functions/scoreboards.txt @@ -40,6 +40,9 @@ OnInit: .@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='UDTRANK' AND i.char_id=c.char_id ORDER BY i.value DESC LIMIT 10", $@udt_name$, $@udt_value); + if (season() == SUMMER || season() == AUTUMN) { + .@nb = query_sql("SELECT c.name, i.count2 FROM `quest` AS i, `char` AS c WHERE i.quest_id=305 AND i.char_id=c.char_id AND i.count1="+(gettime(GETTIME_YEAR)-2000)+" ORDER BY i.count2 DESC LIMIT 10", $@ched_name$, $@ched_value); + } debugmes "Scoreboards reloaded"; end; } diff --git a/npc/functions/seasons.txt b/npc/functions/seasons.txt index 2d82b5c79..50aa99c24 100644 --- a/npc/functions/seasons.txt +++ b/npc/functions/seasons.txt @@ -271,10 +271,6 @@ OnSummerEnd: end; OnAutumnStart: - // Ched's Quest Winner - .@nb = query_sql("SELECT c.name FROM `quest` AS i, `char` AS c WHERE i.quest_id="+SQuest_Ched+" AND i.char_id=c.char_id AND i.count1="+(gettime(GETTIME_YEAR)-2000)+" ORDER BY i.count2 DESC LIMIT 1", .@name$); - $@AUTUMN_VICTOR$=.@name$[0]; - // Fancy trees addmapmask "012-1", MASK_AUTUMN; |