summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-03-09 17:58:44 -0300
committerJesusaves <cpntb1@ymail.com>2021-03-09 17:58:44 -0300
commit7d6ce8de7accad073621fb24414f8b994748adcc (patch)
treec8ef447307c653dd1cb187c2f34ae8de8038d43a /npc/functions
parent75b2b7dc4e9184b2252bd3bd727020bda58b1340 (diff)
downloadserverdata-7d6ce8de7accad073621fb24414f8b994748adcc.tar.gz
serverdata-7d6ce8de7accad073621fb24414f8b994748adcc.tar.bz2
serverdata-7d6ce8de7accad073621fb24414f8b994748adcc.tar.xz
serverdata-7d6ce8de7accad073621fb24414f8b994748adcc.zip
Dark Eggshell Hat can no longer be obtained outside Easter.
(WARNING: Does not survives server restarts)
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/event.txt2
-rw-r--r--npc/functions/seasons.txt14
2 files changed, 13 insertions, 3 deletions
diff --git a/npc/functions/event.txt b/npc/functions/event.txt
index 733658c91..c594bc562 100644
--- a/npc/functions/event.txt
+++ b/npc/functions/event.txt
@@ -533,7 +533,7 @@ OnClock0000:
kamibroadcast("Easter begun!");
if ($EVENT$ != "")
FYStopEvent();
- $EVENT$="Easter";
+ sEaster();
}
// End the event the day after
else if (.@d == .easter_endday+1 && .@m == .easter_endmon) {
diff --git a/npc/functions/seasons.txt b/npc/functions/seasons.txt
index fa3b5c5bd..f79b9e3d2 100644
--- a/npc/functions/seasons.txt
+++ b/npc/functions/seasons.txt
@@ -119,6 +119,14 @@ function script sValentine {
return;
}
+function script sEaster {
+ // Enable event
+ set $EVENT$, "Easter";
+ addmonsterdrop(Forain, DarkEggshellHat, 2);
+ logmes "Enabled EASTER event.", LOGMES_ATCOMMAND;
+ return;
+}
+
// This allows GMs to change seasons if needed
function script SeasonControl {
do
@@ -134,6 +142,7 @@ function script SeasonControl {
"Spring End",
"SPECIAL - Christmas",
"SPECIAL - Valentine",
+ "SPECIAL - Easter",
"FORCED DAYLIGHT",
"FORCED NIGHTTIME",
"Abort";
@@ -149,8 +158,9 @@ function script SeasonControl {
case 8: donpcevent("#SeasonCore::OnSpringEnd"); break;
case 9: sChristmas(); break;
case 10: sValentine(); break;
- case 11: $@WEATHER_NIGHT=false; doevent("#WeatherCore::OnMinute45"); break;
- case 12: $@WEATHER_NIGHT=true; doevent("#WeatherCore::OnMinute45"); break;
+ case 11: sEaster(); break;
+ case 12: $@WEATHER_NIGHT=false; doevent("#WeatherCore::OnMinute45"); break;
+ case 13: $@WEATHER_NIGHT=true; doevent("#WeatherCore::OnMinute45"); break;
}
} while (@menu != 13);
return;