summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-03-20 08:08:35 -0300
committerJesusaves <cpntb1@ymail.com>2018-03-20 08:08:35 -0300
commitd58ac334e4792f4d7b3095753d8446c15b2fd0ac (patch)
tree25219e63d9d7c0313920f039bb7330aec0e4691e
parent5d7dddbabf6b78e68d6270ab967b454c10e7f398 (diff)
downloadserverdata-d58ac334e4792f4d7b3095753d8446c15b2fd0ac.tar.gz
serverdata-d58ac334e4792f4d7b3095753d8446c15b2fd0ac.tar.bz2
serverdata-d58ac334e4792f4d7b3095753d8446c15b2fd0ac.tar.xz
serverdata-d58ac334e4792f4d7b3095753d8446c15b2fd0ac.zip
Increase Aeros mobs Strange Coin drop by 0.04% per Monster Level.
So it's assumed a 0.8% bonus for most mobs.
-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;
}