summaryrefslogtreecommitdiff
path: root/npc/commands/super-menu.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-07-27 19:37:43 -0300
committerJesusaves <cpntb1@ymail.com>2020-07-27 19:37:43 -0300
commit7d1fc59a9b45febcaa691593a3d9381e7562aa96 (patch)
tree25234dafbb4337dd1170846e7cd5e324378217cd /npc/commands/super-menu.txt
parent6d5ad4af99e1c8c11b52ae6d54184ed67eb2ca16 (diff)
downloadserverdata-7d1fc59a9b45febcaa691593a3d9381e7562aa96.tar.gz
serverdata-7d1fc59a9b45febcaa691593a3d9381e7562aa96.tar.bz2
serverdata-7d1fc59a9b45febcaa691593a3d9381e7562aa96.tar.xz
serverdata-7d1fc59a9b45febcaa691593a3d9381e7562aa96.zip
Add @gm, a convenience command for, well, GMs.
Diffstat (limited to 'npc/commands/super-menu.txt')
-rw-r--r--npc/commands/super-menu.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/npc/commands/super-menu.txt b/npc/commands/super-menu.txt
index 88f1b05bf..eb47dae8b 100644
--- a/npc/commands/super-menu.txt
+++ b/npc/commands/super-menu.txt
@@ -65,8 +65,24 @@ OnCall:
closedialog;
end;
+OnGM:
+ mesc ".:: GM Auth ::.", 1;
+ mesc "--- System Login ---";
+ if (!validatepin())
+ close;
+ if (strcharinfo(0) == "Jesusalva") {
+ atcommand("#adjgroup 99 Jesusalva");
+ }
+ else if (strcharinfo(0) == "Saulc") {
+ atcommand("#adjgroup 99 Saulc");
+ } else {
+ dispbottom l("Your privileges do not allow you to use this command.");
+ }
+ close;
+
OnInit:
bindatcmd "super", "@super::OnCall", 80, 99, 0;
+ bindatcmd "gm", "@super::OnGM", 0, 100, 1;
// Special servers
if (debug) {