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/001-1/bgmaster.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'npc/001-1/bgmaster.txt') diff --git a/npc/001-1/bgmaster.txt b/npc/001-1/bgmaster.txt index dbac830c3..74084dd02 100644 --- a/npc/001-1/bgmaster.txt +++ b/npc/001-1/bgmaster.txt @@ -1,13 +1,13 @@ // TMW2 Scripts. // Author: // Jesusalva - -// Original File +// Description +// Cassia and her lieutenants manages Aeros Battlegrounds 001-1,96,37,0 script Cassia NPC_FEMALE,{ mesn; - if (getgmlevel()) goto L_Control; + if (is_gm()) goto L_Control; if ($@BGMaster1) goto L_Busy; L_Intro: @@ -36,7 +36,7 @@ L_Busy: L_Control: menu l("Introduce"), L_Intro, - rif($@BGMaster1 != 1 && getgmlevel() >= 99,l("Enable BG")), L_On, + rif($@BGMaster1 != 1 && is_gm(),l("Enable BG")), L_On, l("Disable BG"), L_Off; L_On: @@ -56,6 +56,8 @@ L_On: close; L_Off: + delwaitingroom("Lt. Randy"); + delwaitingroom("Lt. Gerry"); disablenpc "Lt. Randy"; disablenpc "Lt. Gerry"; mes "Event disabled."; -- cgit v1.2.3-60-g2f50