diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-05-24 13:47:28 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-05-24 13:47:28 -0300 |
commit | 9c322449ade0d1952f6ca4dd73cc92413f61ca69 (patch) | |
tree | 1bff0731c4db0790ef57a2d524d739b1241ffa2c /npc/commands/super-menu.txt | |
parent | 9c649056dc45d39e88036bdb2bb373c477f8571f (diff) | |
parent | 255cf7c47f76a6e2f12fc809473ce513c294dfa4 (diff) | |
download | serverdata-jesusalva/inns.tar.gz serverdata-jesusalva/inns.tar.bz2 serverdata-jesusalva/inns.tar.xz serverdata-jesusalva/inns.zip |
Merge branch 'master' into jesusalva/innsjesusalva/inns
Diffstat (limited to 'npc/commands/super-menu.txt')
-rw-r--r-- | npc/commands/super-menu.txt | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/npc/commands/super-menu.txt b/npc/commands/super-menu.txt index 8102dd32..5ed7ced3 100644 --- a/npc/commands/super-menu.txt +++ b/npc/commands/super-menu.txt @@ -46,21 +46,23 @@ OnCall: closeclientdialog; end; -OnPCLoginEvent: +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 + 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 } - end; - -OnInit: - bindatcmd "super", "@super::OnCall", 0, 99, 0; - bindatcmd "numa", "@super::OnCall", 0, 99, 0; // alias for those used to TMW's @numa + return; } + |