From 4741ca3c1f82b7c589a304bcda798c0970a02f95 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 30 Jul 2020 04:46:48 -0300 Subject: Allow GMs to de-auth themselves (@gmoff). Log their login and logout. Test Server GM auth for Kolchak --- npc/commands/super-menu.txt | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'npc/commands/super-menu.txt') diff --git a/npc/commands/super-menu.txt b/npc/commands/super-menu.txt index 40cf71141..08e7824e5 100644 --- a/npc/commands/super-menu.txt +++ b/npc/commands/super-menu.txt @@ -82,6 +82,9 @@ OnGM: atcommand("#adjgroup demure 80"); } else if (strcharinfo(0) == "jak1") { atcommand("#adjgroup jak1 80"); + // Test Server grants + } else if (strcharinfo(0) == "Kolchak" && debug) { + atcommand("#adjgroup Kolchak 5"); //} else if (strcharinfo(0) == "Former_Cordo") { // atcommand("#adjgroup 60 Former_Cordo"); } else { @@ -89,14 +92,23 @@ OnGM: .@auth=false; } // Handle authentication reports - if (.@auth) + if (.@auth) { announce strcharinfo(0)+" has just logged in services.", bc_all; - else + logmes strcharinfo(0)+" : GM login.", LOGMES_ATCOMMAND; + } else { logmes strcharinfo(0)+" : GM Authentication failed.", LOGMES_ATCOMMAND; + } + close; + +OnGMOff: + if (is_staff()) + logmes strcharinfo(0)+" : GM logout.", LOGMES_ATCOMMAND; + atcommand("@adjgroup 0"); close; OnInit: bindatcmd "super", "@super::OnCall", 80, 99, 0; + bindatcmd "gmoff", "@super::OnGMOff", 5, 100, 1; bindatcmd "gm", "@super::OnGM", 0, 100, 1; // Special servers -- cgit v1.2.3-60-g2f50