From 8098cd28ddb776157f5dfe8986f330e0468ae303 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 18 May 2019 20:01:19 -0300 Subject: Fix bugs --- npc/001-1/eventmaster.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'npc/001-1') 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: -- cgit v1.2.3-60-g2f50