From 6aceff972c764590010e29770b41adcbe1c205da Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 7 Mar 2021 13:58:05 -0300 Subject: Saulc's request --- npc/commands/debug.txt | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'npc/commands') 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; -- cgit v1.2.3-60-g2f50