diff options
-rw-r--r-- | npc/001-1/eventmaster.txt | 16 |
1 files changed, 10 insertions, 6 deletions
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."; |