diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-01-11 16:00:05 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-01-11 16:00:05 -0300 |
commit | 9ab19c5841d0d69c5a52cd7a10e6efddd9f8a6e6 (patch) | |
tree | 8e283fdf7e0a4b5117068d4d710d73392804f243 /npc | |
parent | 96e8a88b4751d201f93dc46b71fc5e018c59732f (diff) | |
download | serverdata-9ab19c5841d0d69c5a52cd7a10e6efddd9f8a6e6.tar.gz serverdata-9ab19c5841d0d69c5a52cd7a10e6efddd9f8a6e6.tar.bz2 serverdata-9ab19c5841d0d69c5a52cd7a10e6efddd9f8a6e6.tar.xz serverdata-9ab19c5841d0d69c5a52cd7a10e6efddd9f8a6e6.zip |
Upgrades at Aeros Event Master
Diffstat (limited to 'npc')
-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."; |