From ca0304d87cb0b03f0e053791bd9851d980808734 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 31 Aug 2018 21:10:43 -0300 Subject: Ched's reward. Minor tweak to Jhedia. --- npc/functions/seasons.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'npc/functions/seasons.txt') diff --git a/npc/functions/seasons.txt b/npc/functions/seasons.txt index e29c64146..f4eee082b 100644 --- a/npc/functions/seasons.txt +++ b/npc/functions/seasons.txt @@ -65,6 +65,10 @@ function script SeasonReload { if (season() == AUTUMN && $@SEASON == SUMMER) { donpcevent("#SeasonCore::OnSummerEnd"); } + // Autumn extra drops + if (season() == AUTUMN && $@SEASON != AUTUMN) { + donpcevent("#SeasonCore::OnAutumnStart"); + } $@SEASON=season(); return; @@ -134,6 +138,14 @@ OnSummerEnd: delmonsterdrop(RedButterfly, Sunglasses); end; +OnAutumnStart: + // Ched's Quest Winner + .@nb = query_sql("SELECT c.name FROM `quest` AS i, `char` AS c WHERE i.quest_id=305 AND i.char_id=c.char_id ORDER BY i.count2 DESC LIMIT 1", .@name$); + $@AUTUMN_VICTOR=.@name$[0]; + + + end; + OnInit: OnHour00: if ($@SEASON != season()) { -- cgit v1.2.3-60-g2f50