diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-04-09 13:33:57 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-04-09 13:33:57 -0300 |
commit | cf18ce071c79ae37e14ea38943e0b1d88da70a7b (patch) | |
tree | f9159c9b60b3018300dd22ffba0d797bc5e828e5 /npc/commands/super-menu.txt | |
parent | 8a4bf716002a017de77fe7df301ef8e4aaf00a2e (diff) | |
download | serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.gz serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.bz2 serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.xz serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.zip |
Override
Diffstat (limited to 'npc/commands/super-menu.txt')
-rw-r--r-- | npc/commands/super-menu.txt | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/npc/commands/super-menu.txt b/npc/commands/super-menu.txt deleted file mode 100644 index 5ed7ced3..00000000 --- a/npc/commands/super-menu.txt +++ /dev/null @@ -1,68 +0,0 @@ -function script SuperMenu { - do - { - if (debug && !is_dev()) - { - GlobalDebugMenu; - return; - } - - clear; - setnpcdialogtitle l("Super Menu"); - mes l("This menu contains all options available to you, based on your access privileges."); - mes ""; - mes l("What do you want to access?"); - next; - select - l("Scheduled broadcasts"), - l("MOTD"), - rif(is_evtc(), l("Event management")), - l("Debug"); - - switch (@menu) - { - case 1: StoneBoard 1; break; - case 2: MOTDConfig 1; break; - case 3: GlobalEventMenu 1; break; - case 4: GlobalDebugMenu 1; break; - } - } while (1); -} - - - -- script @super 32767,{ - end; - -OnCall: - - if (!debug && !is_dev()) - { - dispbottom l("You do not have the required access privileges to use the Super Menu."); - end; - } - - SuperMenu; - closeclientdialog; - end; - -OnInit: - bindatcmd "super", "@super::OnCall", 0, 99, 0; - bindatcmd "numa", "@super::OnCall", 0, 99, 0; // alias for those used to TMW's @numa -} - -function script GrantSuperSkill { - .@debug_skill = getskilllv(EVOL_SUPER_MENU); - - if (.@debug_skill > 0 && !debug) - { - skill EVOL_SUPER_MENU, 0, 0; // remove debug skill. Not needed (skill tree) - } - - else if (.@debug_skill < 1 && debug) - { - skill EVOL_SUPER_MENU, 1, 0; // give debug skill - } - return; -} - |