From 8cd2e8d5c6c88cd44b358cc0401a0991d4bc1146 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 23 Jul 2018 10:51:02 -0300 Subject: Refactor season code --- npc/commands/super-menu.txt | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'npc/commands') 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); } -- cgit v1.2.3-60-g2f50