summaryrefslogtreecommitdiff
path: root/npc/001-1/portal.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-03-20 08:56:38 -0300
committerJesusaves <cpntb1@ymail.com>2018-03-20 08:56:38 -0300
commitfa768d6b1301c8ed5806b36ea2671d8c672a572f (patch)
tree71489fd6cb8a7bc0ae8cd0f652231e103d70bb2f /npc/001-1/portal.txt
parent45d0d0bcc1104d56304d6df15a0904d93e60bcb6 (diff)
downloadserverdata-fa768d6b1301c8ed5806b36ea2671d8c672a572f.tar.gz
serverdata-fa768d6b1301c8ed5806b36ea2671d8c672a572f.tar.bz2
serverdata-fa768d6b1301c8ed5806b36ea2671d8c672a572f.tar.xz
serverdata-fa768d6b1301c8ed5806b36ea2671d8c672a572f.zip
Stop using getgmlevel() and use is_gm() is_admin() and is_staff().
Our four power levels: getgmlevel() → Sponsors, etc. is_staff() → GM 5, Developers, test server, etc. is_gm() → GM 80, Game Master, controls the world is_admin() → GM 99, Administrator, controls the uniserver (pun intended)
Diffstat (limited to 'npc/001-1/portal.txt')
-rw-r--r--npc/001-1/portal.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/npc/001-1/portal.txt b/npc/001-1/portal.txt
index 4708930e8..40f3e3d9c 100644
--- a/npc/001-1/portal.txt
+++ b/npc/001-1/portal.txt
@@ -12,10 +12,10 @@ OnTouch:
mes l("Would you like to leave this place?");
menu
l("No."), L_Close,
- rif(getgmlevel() && !$@GM_EVENT, l("Enable Event")), L_Enable,
- rif(getgmlevel() && $@GM_EVENT, l("Disable Event")), L_Disable,
- rif(getgmlevel() && .WALL, l("Open Extension")), L_DelWall,
- rif(getgmlevel() && !.WALL, l("Close Extension")), L_AddWall,
+ rif(is_admin() && !$@GM_EVENT, l("Enable Event")), L_Enable,
+ rif(is_admin() && $@GM_EVENT, l("Disable Event")), L_Disable,
+ rif(is_gm() && .WALL, l("Open Extension")), L_DelWall,
+ rif(is_gm() && !.WALL, l("Close Extension")), L_AddWall,
l("Yes."), L_Leave;
L_Leave: