summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-23 10:52:50 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-23 10:52:50 -0300
commitd988d86b194d762fb26931799a48e7afdf9b4aa9 (patch)
treeb9e5188966c795f924ba1ae7b1bdb3d725e3e129 /npc/functions
parent8cd2e8d5c6c88cd44b358cc0401a0991d4bc1146 (diff)
downloadserverdata-d988d86b194d762fb26931799a48e7afdf9b4aa9.tar.gz
serverdata-d988d86b194d762fb26931799a48e7afdf9b4aa9.tar.bz2
serverdata-d988d86b194d762fb26931799a48e7afdf9b4aa9.tar.xz
serverdata-d988d86b194d762fb26931799a48e7afdf9b4aa9.zip
Allow GM to override season drop
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/seasons.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/npc/functions/seasons.txt b/npc/functions/seasons.txt
index 08e93e481..be49e80f7 100644
--- a/npc/functions/seasons.txt
+++ b/npc/functions/seasons.txt
@@ -33,6 +33,23 @@ function script season {
return (.@current_month / 3 + .@is_after_season_day) % 4;
}
+
+function script SeasonControl {
+ do
+ {
+ select
+ "Summer Start",
+ "Summer End",
+ "Abort";
+
+ switch (@menu) {
+ case 1: donpcevent("#SeasonCore::OnSummerStart"); break;
+ case 2: donpcevent("#SeasonCore::OnSummerEnd"); break;
+ }
+ } while (@menu != 3);
+ return;
+}
+
000-0,0,0,0 script #SeasonCore NPC_HIDDEN,{
end;