diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-03-07 13:58:05 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-03-07 13:58:05 -0300 |
commit | 6aceff972c764590010e29770b41adcbe1c205da (patch) | |
tree | 73a0f71b0d836b60b84e750d3b67e6950454b501 /npc/commands | |
parent | eaf40a9fb7394e9992d8b372becf2e3303d73e60 (diff) | |
download | serverdata-6aceff972c764590010e29770b41adcbe1c205da.tar.gz serverdata-6aceff972c764590010e29770b41adcbe1c205da.tar.bz2 serverdata-6aceff972c764590010e29770b41adcbe1c205da.tar.xz serverdata-6aceff972c764590010e29770b41adcbe1c205da.zip |
Saulc's request
Diffstat (limited to 'npc/commands')
-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; |