diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-11-02 14:21:45 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-11-02 14:21:45 -0300 |
commit | 8722aa649ac56e5e3dbcc5c598b248bd3b6d0044 (patch) | |
tree | 2747c5da280edef5d40274827d03630bb51d5852 | |
parent | 9655494e5cdac9a54bfacec0943b88229172439c (diff) | |
download | serverdata-8722aa649ac56e5e3dbcc5c598b248bd3b6d0044.tar.gz serverdata-8722aa649ac56e5e3dbcc5c598b248bd3b6d0044.tar.bz2 serverdata-8722aa649ac56e5e3dbcc5c598b248bd3b6d0044.tar.xz serverdata-8722aa649ac56e5e3dbcc5c598b248bd3b6d0044.zip |
Update Aeros Eventmaster code to comply with [tmw2/hercules 1b3099042]
-rw-r--r-- | npc/001-1/eventmaster.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/001-1/eventmaster.txt b/npc/001-1/eventmaster.txt index f40018da0..dfa17978c 100644 --- a/npc/001-1/eventmaster.txt +++ b/npc/001-1/eventmaster.txt @@ -775,9 +775,9 @@ OnAerosMobDeath: if ($coinsrate < 0) end; // A level 100 monster can have a 4% drop bonus against a level 0 monster. // $coinsrate acts stablishing a basic drop value. Advised value: 600 (up to 10% for normal mobs) - // FIXME: That doesn't work (yet) - Mob ID is not set if (playerattached()) { - if (rand(10000) <= $coinsrate + (atoi(strmobinfo(3,killedrid))*4)) { + debugmes("Mob slain: %d", killedrid); + if (rand(10000) <= $coinsrate + (getmonsterinfo(killedrid, MOB_LV)*4)) { getmapxy(.@m$, .@x, .@y, 0); makeitem(StrangeCoin, 1, .@m$, .@x, .@y); } |