diff options
-rw-r--r-- | npc/commands/debug.txt | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/npc/commands/debug.txt b/npc/commands/debug.txt index 7e7b8318c..77ffe8727 100644 --- a/npc/commands/debug.txt +++ b/npc/commands/debug.txt @@ -27,11 +27,28 @@ function script GlobalDebugMenu { l("Abort"), l("Reset stats, skills, level"), l("Reset EVERYTHING"), + rif(is_admin() && debug && !@allperms, l("Set All Perms")), l("Return to Debug menu"); switch (@menu) { case 2: - case 3: doReset @menu; + case 3: doReset @menu; return; + case 4: + if (!debug) atcommand("@ban 1h "+strcharinfo(0)); + if (!is_admin()) atcommand("@ban 2h "+strcharinfo(0)); + atcommand("@addperm all_skill"); + atcommand("@addperm all_equipment"); + atcommand("@addperm skill_unconditional"); + atcommand("@addperm join_chat"); + atcommand("@addperm hide_session"); + atcommand("@addperm any_warp"); + atcommand("@addperm view_hpmeter"); + atcommand("@addperm view_equipment"); + atcommand("@addperm receive_requests"); + atcommand("@addperm can_trade_bound"); + atcommand("@addperm bypass_nostorage"); + @allperms=true; + break; } return; |