summaryrefslogtreecommitdiff
path: root/npc/functions/seasons.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-08-31 21:10:43 -0300
committerJesusaves <cpntb1@ymail.com>2018-08-31 21:10:43 -0300
commitca0304d87cb0b03f0e053791bd9851d980808734 (patch)
treece98001661c87d3a0ac4ada1fda9fbaf25705de4 /npc/functions/seasons.txt
parent612e88f45df6c9e095fcb1c6fd88dc09bdd7558f (diff)
downloadserverdata-ca0304d87cb0b03f0e053791bd9851d980808734.tar.gz
serverdata-ca0304d87cb0b03f0e053791bd9851d980808734.tar.bz2
serverdata-ca0304d87cb0b03f0e053791bd9851d980808734.tar.xz
serverdata-ca0304d87cb0b03f0e053791bd9851d980808734.zip
Ched's reward. Minor tweak to Jhedia.
Diffstat (limited to 'npc/functions/seasons.txt')
-rw-r--r--npc/functions/seasons.txt12
1 files changed, 12 insertions, 0 deletions
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()) {