diff options
author | Jesusaves <cpntb1@ymail.com> | 2025-01-11 21:20:53 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2025-01-11 21:20:53 -0300 |
commit | b4ffdde187b2815ebfb5b49e7b20ce8a9db3da9e (patch) | |
tree | 1f6bd60fbc906d5286df0e1dc5efbe29a83634a5 | |
parent | dbc3e0fb8122993d05e7a0320c9e4fcbc4ad7489 (diff) | |
download | serverdata-b4ffdde187b2815ebfb5b49e7b20ce8a9db3da9e.tar.gz serverdata-b4ffdde187b2815ebfb5b49e7b20ce8a9db3da9e.tar.bz2 serverdata-b4ffdde187b2815ebfb5b49e7b20ce8a9db3da9e.tar.xz serverdata-b4ffdde187b2815ebfb5b49e7b20ce8a9db3da9e.zip |
Update Realm of Drops to address Bifs and Slimes.
Addresses #88
-rw-r--r-- | npc/magic/drops.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/npc/magic/drops.txt b/npc/magic/drops.txt index 0d2803a18..8ce992998 100644 --- a/npc/magic/drops.txt +++ b/npc/magic/drops.txt @@ -19,6 +19,12 @@ function script SK_drops { .@lv=getmonsterinfo(.@mobId, MOB_LV); .@min=10-getskilllv(TMW2_DROPS)+(.@lv/10); + // Bifs trigger Realm of Drops twice as often, while slimes half as often + if (getmonsterinfo(.@mobId, MOB_RACE) == RC_Mineral) + .@min = (.@min+1)/2; + if (compare("slime", strtolower(strmobinfo(1, .@mobId)))) + .@min *= 2; + // Maybe we are in condition for the bonus drop if (@skdrop[.@mobId] % .@min == 0) { // This creates .@item and .@rate with same index |