summaryrefslogtreecommitdiff
path: root/npc/001-1/eventmaster.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/001-1/eventmaster.txt')
-rw-r--r--npc/001-1/eventmaster.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/npc/001-1/eventmaster.txt b/npc/001-1/eventmaster.txt
index e82ccda99..b76a6cd97 100644
--- a/npc/001-1/eventmaster.txt
+++ b/npc/001-1/eventmaster.txt
@@ -9,7 +9,7 @@
areamonster("001-1", 171, 0, 339, 158, getarg(0), getarg(1), getarg(2), "Mana Being#001-1::OnAerosMobDeath");
}
- if (!getgmlevel()) goto L_Unauthorized;
+ if (!is_gm()) goto L_Unauthorized;
@log_spawns=0;
@log_ratio=.coins_rate;
@@ -168,8 +168,10 @@ L_Drop:
L_Rate:
mes "";
mes "Current drop rate: " + str(.coins_rate);
- mes "Insert drop rate (from 0 to 10000). Use -1 to disable.";
+ mes "Insert drop rate (from 0 to 10000, capped at 5000 or 50%). Use -1 to disable.";
input .coins_rate;
+ if (.coins_rate > 5000)
+ .coins_rate=5000;
mes "";
mes "Ratio adjusted.";
next;
@@ -203,7 +205,7 @@ OnInit:
end;
OnCall:
- if (!is_evtc())
+ if (!is_admin())
end;
if (getmapname() != "001-1") {
dispbottom "This command can only be used at aeros.";