From fa768d6b1301c8ed5806b36ea2671d8c672a572f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 20 Mar 2018 08:56:38 -0300 Subject: Stop using getgmlevel() and use is_gm() is_admin() and is_staff(). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- npc/003-13/arnea.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'npc/003-13') diff --git a/npc/003-13/arnea.txt b/npc/003-13/arnea.txt index 151a88bd3..92fda2805 100644 --- a/npc/003-13/arnea.txt +++ b/npc/003-13/arnea.txt @@ -7,8 +7,10 @@ 003-13,29,29,0 script Arnea#003-13 NPC_ELF_F,{ // FIXIT - hello; - end; + if (!is_staff()) { + hello; + end; + } mes "npc name: " + .name$; mes "npc ext name: " + .extname$; @@ -34,7 +36,7 @@ L_Manage: mesn; switch (select( "warp back", - rif(getcharid(3) == $@ARENA_INSTANCES[replacestr(instance_mapname("003-13"), "003-13@a", "")] || getgmlevel(),"delete"), + rif(getcharid(3) == $@ARENA_INSTANCES[replacestr(instance_mapname("003-13"), "003-13@a", "")] || is_gm(),"delete"), "cancel")) { case 1: -- cgit v1.2.3-60-g2f50