diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-05-18 20:01:19 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-05-18 20:01:19 -0300 |
commit | 8098cd28ddb776157f5dfe8986f330e0468ae303 (patch) | |
tree | b6ac894cbe995fd06b547e64e1505e39ccf8d404 /npc/001-1 | |
parent | 26d496641801aa0d39fcac356c9eaff1834ba0ed (diff) | |
download | serverdata-8098cd28ddb776157f5dfe8986f330e0468ae303.tar.gz serverdata-8098cd28ddb776157f5dfe8986f330e0468ae303.tar.bz2 serverdata-8098cd28ddb776157f5dfe8986f330e0468ae303.tar.xz serverdata-8098cd28ddb776157f5dfe8986f330e0468ae303.zip |
Fix bugs
Diffstat (limited to 'npc/001-1')
-rw-r--r-- | npc/001-1/eventmaster.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/npc/001-1/eventmaster.txt b/npc/001-1/eventmaster.txt index 1346883de..8a07b92a6 100644 --- a/npc/001-1/eventmaster.txt +++ b/npc/001-1/eventmaster.txt @@ -610,9 +610,12 @@ 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) - if (rand(10000) <= $coinsrate + (atoi(strmobinfo(3,killedrid))*4)) - getmapxy(.@m$, .@x, .@y, 0); - makeitem(StrangeCoin, 1, .@m$, .@x, .@y); + if (playerattached()) { + if (rand(10000) <= $coinsrate + (atoi(strmobinfo(3,killedrid))*4)) { + getmapxy(.@m$, .@x, .@y, 0); + makeitem(StrangeCoin, 1, .@m$, .@x, .@y); + } + } end; OnInit: |