summaryrefslogtreecommitdiff
path: root/npc/functions/aurora.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-15 18:10:20 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-15 18:10:20 -0300
commit1bffac5523399d7c4a14484b9ebc07dfd11313fc (patch)
treede218d5242296f6f68438c0dfcd83c0010b02621 /npc/functions/aurora.txt
parent8372f0dc00704ad326f1c8d40acbaec2c3e4250b (diff)
downloadserverdata-1bffac5523399d7c4a14484b9ebc07dfd11313fc.tar.gz
serverdata-1bffac5523399d7c4a14484b9ebc07dfd11313fc.tar.bz2
serverdata-1bffac5523399d7c4a14484b9ebc07dfd11313fc.tar.xz
serverdata-1bffac5523399d7c4a14484b9ebc07dfd11313fc.zip
Aurora Event Framework - Stop the previous event as well
Diffstat (limited to 'npc/functions/aurora.txt')
-rw-r--r--npc/functions/aurora.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/npc/functions/aurora.txt b/npc/functions/aurora.txt
index 20d777478..af6cc7a45 100644
--- a/npc/functions/aurora.txt
+++ b/npc/functions/aurora.txt
@@ -96,4 +96,13 @@ function script FYE_Regnum {
return;
}
+// Stops any Aurora Event
+function script FYStopEvent {
+ setarray .@av$, "Kamelot", "Regnum";
+ if (array_find(.@av$, $EVENT$) >= 0) {
+ sClear();
+ $EVENT$="";
+ }
+ return;
+}