From 9ab19c5841d0d69c5a52cd7a10e6efddd9f8a6e6 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 11 Jan 2020 16:00:05 -0300 Subject: Upgrades at Aeros Event Master --- npc/001-1/eventmaster.txt | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'npc/001-1') diff --git a/npc/001-1/eventmaster.txt b/npc/001-1/eventmaster.txt index 8a07b92a6..1676d93ea 100644 --- a/npc/001-1/eventmaster.txt +++ b/npc/001-1/eventmaster.txt @@ -69,14 +69,14 @@ L_Menu: mes ""; mes "Please select operation."; menu - "Abort",L_Close, + "Abort", L_Close, "Start/End Event", L_EventHandler, - "Spawn",L_Spawn, - rif(countitem(StrangeCoin) >= 10, "Drop stuff! (10x Coins)"),L_Drop, - "Reconfigure spawn/warp points",L_Conf, + "Spawn", L_Spawn, + rif(countitem(StrangeCoin) >= 10, "Drop stuff! (10x Coins)"), L_Drop, + "Reconfigure spawn/warp points", L_Conf, rif(.WALL, "Open Extension"), L_DelWall, rif(!.WALL, "Close Extension"), L_AddWall, - "Adjust coins drop rate",L_Rate; + rif(is_admin(), "Adjust coins drop rate"), L_Rate; L_Unauthorized: //dispbottom l("I am too far away to talk. Weird floating thingy..."); @@ -556,6 +556,10 @@ L_Drop: goto L_Drop; L_Rate: + // Only Admins can change Strange Coin drop rate + if (!is_admin()) + goto L_Menu; + mes ""; mes "Current drop rate: " + str($coinsrate); mes "Insert drop rate (from 0 to 10000, capped at 5000 or 50%). Use -1 to disable."; @@ -641,7 +645,7 @@ OnInit: end; OnCall: - if (!is_admin()) + if (!is_gm()) end; if (getmapname() != "001-1") { dispbottom "This command can only be used at aeros."; -- cgit v1.2.3-60-g2f50