summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2018-03-11 22:28:09 -0400
committergumi <git@gumi.ca>2018-03-11 22:28:09 -0400
commit62ac99a7bec3eb5903999c8d7bb05c42d23b0ec4 (patch)
tree840722d6c4f8262ae9f1a46474080c95954e97c8
parent81fc5b84a962855fafccb6baef68c1f8d40d4410 (diff)
downloadserverdata-62ac99a7bec3eb5903999c8d7bb05c42d23b0ec4.tar.gz
serverdata-62ac99a7bec3eb5903999c8d7bb05c42d23b0ec4.tar.bz2
serverdata-62ac99a7bec3eb5903999c8d7bb05c42d23b0ec4.tar.xz
serverdata-62ac99a7bec3eb5903999c8d7bb05c42d23b0ec4.zip
make bots auto-@hide on login
-rw-r--r--world/map/npc/commands/gm.txt7
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";