diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-07-23 10:52:50 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-07-23 10:52:50 -0300 |
commit | d988d86b194d762fb26931799a48e7afdf9b4aa9 (patch) | |
tree | b9e5188966c795f924ba1ae7b1bdb3d725e3e129 | |
parent | 8cd2e8d5c6c88cd44b358cc0401a0991d4bc1146 (diff) | |
download | serverdata-d988d86b194d762fb26931799a48e7afdf9b4aa9.tar.gz serverdata-d988d86b194d762fb26931799a48e7afdf9b4aa9.tar.bz2 serverdata-d988d86b194d762fb26931799a48e7afdf9b4aa9.tar.xz serverdata-d988d86b194d762fb26931799a48e7afdf9b4aa9.zip |
Allow GM to override season drop
-rw-r--r-- | npc/functions/seasons.txt | 17 |
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; |