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.txt13
1 files changed, 8 insertions, 5 deletions
diff --git a/npc/001-1/eventmaster.txt b/npc/001-1/eventmaster.txt
index 2f58168bb..54ca667a5 100644
--- a/npc/001-1/eventmaster.txt
+++ b/npc/001-1/eventmaster.txt
@@ -31,8 +31,8 @@ L_Unauthorized:
end;
L_Close:
- if (@log_spawns > 0) logmes "spawned "+str(@log_spawns)+" beigns.", LOGMES_ATCOMMAND;
- if (@log_ratio != .coins_rate) logmes "set aeros ratio from "+str(@log_ratio)+" to"+str(.coins_rate), LOGMES_ATCOMMAND;
+ if (@log_spawns > 0) logmes "spawned "+str(@log_spawns)+" beigns at Aeros.", LOGMES_ATCOMMAND;
+ if (@log_ratio != .coins_rate) logmes "set aeros ratio from "+str(@log_ratio)+" to "+str(.coins_rate), LOGMES_ATCOMMAND;
close;
L_Spawn:
@@ -167,7 +167,7 @@ L_Drop:
L_Rate:
mes "";
mes "Current drop rate: " + str(.coins_rate);
- mes "Insert drop rate (from 0 to 10000)";
+ mes "Insert drop rate (from 0 to 10000). Use -1 to disable.";
input .coins_rate;
mes "";
mes "Ratio adjusted.";
@@ -175,12 +175,15 @@ L_Rate:
goto L_Menu;
OnAerosMobDeath:
- if (rand(10000) <= .coins_rate)
+ if (.coinsrate < 0) end;
+ // A level 100 monster can have a 4% drop bonus against a level 0 monster.
+ // .coins_rate acts stablishing a basic drop value. Advised value: 600 (up to 10% for normal mobs)
+ if (rand(10000) <= .coins_rate + (atoi(strmobinfo(3,killedrid))*4))
getitem StrangeCoin, 1;
end;
OnInit:
- .coins_rate=0;
+ .coins_rate=600; // Default value is 6% + mob str bonus
end;
}