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-2/lua.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'npc/003-2/lua.txt') diff --git a/npc/003-2/lua.txt b/npc/003-2/lua.txt index e35c35734..f67bd9e2d 100644 --- a/npc/003-2/lua.txt +++ b/npc/003-2/lua.txt @@ -13,9 +13,9 @@ L_Menu: menu l("Ok, see you later."),L_Close, rif(.@n == 1, l("I was found near Candor Island, on a raft, and can't remember anything. Do you know who I am?")), L_Info, - rif(getgmlevel(), l("I need a GM set, please!")), L_GMItems, - rif(getgmlevel() && #GMEVENT_T <= gettimetick(2), l("I plan in doing an event! Give me the coins!")), L_GMEvent, - rif(getgmlevel(), l("Tell people the name of a new hero.")), L_NewHero, + rif(is_gm(), l("I need a GM set, please!")), L_GMItems, + rif(is_gm() && #GMEVENT_T <= gettimetick(2), l("I plan in doing an event! Give me the coins!")), L_GMEvent, + rif(is_staff(), l("Tell people the name of a new hero.")), L_NewHero, l("What alliance?"),-; mes ""; mesn; -- cgit v1.2.3-60-g2f50