summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-11-03 11:18:48 -0300
committerJesusaves <cpntb1@ymail.com>2020-11-03 11:18:48 -0300
commit80398e0fb1fa50e52c99b34b284e0a4d88c33d72 (patch)
tree8f1e5efc92fabac2719802f4e87b5fd49d4bf1d5 /npc/functions
parent901a59eecedbba7d9982217f820478cbb9c9921f (diff)
downloadserverdata-80398e0fb1fa50e52c99b34b284e0a4d88c33d72.tar.gz
serverdata-80398e0fb1fa50e52c99b34b284e0a4d88c33d72.tar.bz2
serverdata-80398e0fb1fa50e52c99b34b284e0a4d88c33d72.tar.xz
serverdata-80398e0fb1fa50e52c99b34b284e0a4d88c33d72.zip
Ensure Aurora Event will be cleaned up properly before switching annual event
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/event.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/npc/functions/event.txt b/npc/functions/event.txt
index 1de8d7ef0..7abc2eb35 100644
--- a/npc/functions/event.txt
+++ b/npc/functions/event.txt
@@ -403,6 +403,8 @@ OnClock0000:
// Begin the event
if (.@d == .valentine_stday) {
kamibroadcast("Valentine Day begun!");
+ if ($EVENT$ != "")
+ FYStopEvent();
$EVENT$="Valentine";
$@VALENTINE_LOVELETTER = htnew();
$@VALENTINE_GIFTSTACKS = htnew();
@@ -459,6 +461,8 @@ OnClock0000:
// Begin the event
else if (.@d == .patrick_stday) {
kamibroadcast("St. Patrick Day begun!");
+ if ($EVENT$ != "")
+ FYStopEvent();
$EVENT$="Patrick";
$@PATRICK_DAYMAX=.patrick_endday;
enablenpc "sPatrick";
@@ -489,6 +493,8 @@ OnClock0000:
// Begin the event
else if (.@d == .easter_stday && .@m == .easter_stmon) {
kamibroadcast("Easter begun!");
+ if ($EVENT$ != "")
+ FYStopEvent();
$EVENT$="Easter";
}
// End the event the day after
@@ -513,6 +519,8 @@ OnClock0000:
// Begin the event
else if (.@d == .worker_stday && .@m == .worker_stmon) {
kamibroadcast("Worker Day begun!");
+ if ($EVENT$ != "")
+ FYStopEvent();
$EVENT$="Worker";
}
// End the event the day after
@@ -537,6 +545,8 @@ OnClock0000:
// Begin the event
else if (.@d == .thanks_stday && .@m == .thanks_stmon) {
kamibroadcast("Thanksgiving begun!");
+ if ($EVENT$ != "")
+ FYStopEvent();
$EVENT$="Thanksgiving";
}
// End the event the day after
@@ -561,6 +571,8 @@ OnClock0000:
// Begin the event
else if (.@d == .xmas_stday && .@m == .xmas_stmon) {
kamibroadcast("Christmas begun!");
+ if ($EVENT$ != "")
+ FYStopEvent();
$EVENT$="Christmas";
query_sql("DELETE FROM `quest` WHERE `quest_id` = '"+SQuest_Christmas+"'");
sChristmas();