summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-23 10:51:02 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-23 10:51:02 -0300
commit8cd2e8d5c6c88cd44b358cc0401a0991d4bc1146 (patch)
treea7dd76cda6221c32e34ae800550bdb385fbb45dd /npc/commands
parentd02088c8c417dc61745ca66cf6dec9a1771531e8 (diff)
downloadserverdata-8cd2e8d5c6c88cd44b358cc0401a0991d4bc1146.tar.gz
serverdata-8cd2e8d5c6c88cd44b358cc0401a0991d4bc1146.tar.bz2
serverdata-8cd2e8d5c6c88cd44b358cc0401a0991d4bc1146.tar.xz
serverdata-8cd2e8d5c6c88cd44b358cc0401a0991d4bc1146.zip
Refactor season code
Diffstat (limited to 'npc/commands')
-rw-r--r--npc/commands/super-menu.txt14
1 files changed, 6 insertions, 8 deletions
diff --git a/npc/commands/super-menu.txt b/npc/commands/super-menu.txt
index 9bb3b9365..cc82a6ad1 100644
--- a/npc/commands/super-menu.txt
+++ b/npc/commands/super-menu.txt
@@ -1,12 +1,6 @@
function script SuperMenu {
do
{
- if (debug && !is_gm())
- {
- GlobalDebugMenu;
- return;
- }
-
clear;
setnpcdialogtitle l("Super Menu");
mes l("This menu contains all options available to you, based on your access privileges.");
@@ -20,7 +14,9 @@ function script SuperMenu {
rif(is_admin() && !getcharid(2), l("Join teh Guild")),
rif(is_admin(), l("Referral Program Report")),
rif(is_admin(), "Broken checks"),
- "Debug";
+ rif(is_gm(), l("Seasonal Drop Control")),
+ "Debug",
+ "Quit";
switch (@menu)
{
@@ -37,7 +33,9 @@ function script SuperMenu {
mes("Either delitem is not working, or you had 1 aquada and 100 bread.");
next;
break;
- case 7: GlobalDebugMenu 1; break;
+ case 7: SeasonControl; break;
+ case 8: GlobalDebugMenu 1; break;
+ default: close; break;
}
} while (1);
}