From 96798d71698a168dc2eb4d8d6ec7637957fb9230 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 12 Mar 2019 11:20:58 -0300 Subject: In theory, this implements St. Patrick Day. And sets all Events to start on their own so GMs can miss the date. This script takes precedence over @event. --- npc/commands/event.txt | 105 ++++++++++++++++++++++++++----------------------- 1 file changed, 55 insertions(+), 50 deletions(-) (limited to 'npc/commands/event.txt') diff --git a/npc/commands/event.txt b/npc/commands/event.txt index ace0c1ba3..48dd5bef5 100644 --- a/npc/commands/event.txt +++ b/npc/commands/event.txt @@ -6,56 +6,8 @@ // Description: // Handles all major events on TMW2 (Christmas, Easter, Worker Day, etc.) -function script GlobalEventMenu { - - function resetCandor { - $@FEFE_CAVE_LEVEL=0; - $@FEFE_DELAY=0; - $@FEFE_DIFFICULTY=0; - $@FEFE_CAVE_HERO$=""; - mesc "Candor Fight Reset!"; - return; - } - - function rateManagement { - clear; - mes l("To get the current rate:"); - mes col(" @exprate", 7); - next; - mes l("To set the exp rate:"); - mes col(" @exprate ##Brate##b hours", 7); - next; - mes l("To reset back to normal:"); - mes col(" @exprate default", 7); // note to translators: any non-numerical value will reset so "default" is safe to translate - next; - return; - } - - function dropManagement { - clear; - mes l("To get the current rate:"); - mes col(" @rates", 7); - next; - mes l("To set the drop rate:"); - mes col(" @droprate ##Brate##b hours", 7); - next; - mes l("To reset back to normal:"); - mes col(" @droprate default", 7); // note to translators: any non-numerical value will reset so "default" is safe to translate - next; - return; - } - - // Easter is map-only, so it can be handled here instead of seasons.txt - function sEaster { - - // Enable event - set $EVENT$, "Easter"; - logmes "Enabled EASTER event.", LOGMES_ATCOMMAND; - return; - } - - // WARNING, possibly dangerous. - function sClear { +// WARNING, possibly dangerous. +function script sClear { // Delete all Easter Stuff if ($EVENT$ != "Easter") { DelItemFromEveryPlayer(GoldenEasteregg); @@ -102,11 +54,64 @@ function script GlobalEventMenu { enablenpc "Demure#ValentineFinal"; } + // Simpler events + $PATRICK_DAYCTRL=0; + $PATRICK_DAYMAX=0; + // We must remove any event drop charcommand("@reloadmobdb"); SeasonReload(1); } +function script GlobalEventMenu { + + function resetCandor { + $@FEFE_CAVE_LEVEL=0; + $@FEFE_DELAY=0; + $@FEFE_DIFFICULTY=0; + $@FEFE_CAVE_HERO$=""; + mesc "Candor Fight Reset!"; + return; + } + + function rateManagement { + clear; + mes l("To get the current rate:"); + mes col(" @exprate", 7); + next; + mes l("To set the exp rate:"); + mes col(" @exprate ##Brate##b hours", 7); + next; + mes l("To reset back to normal:"); + mes col(" @exprate default", 7); // note to translators: any non-numerical value will reset so "default" is safe to translate + next; + return; + } + + function dropManagement { + clear; + mes l("To get the current rate:"); + mes col(" @rates", 7); + next; + mes l("To set the drop rate:"); + mes col(" @droprate ##Brate##b hours", 7); + next; + mes l("To reset back to normal:"); + mes col(" @droprate default", 7); // note to translators: any non-numerical value will reset so "default" is safe to translate + next; + return; + } + + // Easter is map-only, so it can be handled here instead of seasons.txt + function sEaster { + + // Enable event + set $EVENT$, "Easter"; + logmes "Enabled EASTER event.", LOGMES_ATCOMMAND; + return; + } + + -- cgit v1.2.3-70-g09d2