summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-03-12 11:20:58 -0300
committerJesusaves <cpntb1@ymail.com>2019-03-12 11:20:58 -0300
commit96798d71698a168dc2eb4d8d6ec7637957fb9230 (patch)
treedb4f490d443d35e975dd83debfacf90194127b45 /npc/commands
parent5963941a6950d0941ca7d6ba8c0ed81155652d79 (diff)
downloadserverdata-96798d71698a168dc2eb4d8d6ec7637957fb9230.tar.gz
serverdata-96798d71698a168dc2eb4d8d6ec7637957fb9230.tar.bz2
serverdata-96798d71698a168dc2eb4d8d6ec7637957fb9230.tar.xz
serverdata-96798d71698a168dc2eb4d8d6ec7637957fb9230.zip
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.
Diffstat (limited to 'npc/commands')
-rw-r--r--npc/commands/event.txt105
1 files changed, 55 insertions, 50 deletions
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;
+ }
+
+