diff options
Diffstat (limited to 'world/map/npc/commands')
-rw-r--r-- | world/map/npc/commands/gm.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/world/map/npc/commands/gm.txt b/world/map/npc/commands/gm.txt index 823019bf..b4d8c349 100644 --- a/world/map/npc/commands/gm.txt +++ b/world/map/npc/commands/gm.txt @@ -20,6 +20,13 @@ OnShow: message strcharinfo(0), "showlevel : Your GM level is now visible."; end; +OnPCLoginEvent: + if (GM == 1 && HIDDEN == 0) + set HIDDEN, 1; + elif (GM != 1 && GM < 10 && HIDDEN == 1) + set HIDDEN, 0; + end; + OnInit: registercmd chr(ATCMD_SYMBOL) + "showgroup", strnpcinfo(0) + "::OnShow"; registercmd chr(ATCMD_SYMBOL) + "showgm", strnpcinfo(0) + "::OnShow"; |