Hello guys, i have nice problem... i made script which should remove monster corpse after 30 seconds of dead, but "corpse" value in script don't returns into function doRemoveItem in addEvent, i test it in 1 sec and 30 sec and not work.
Can someone help me ?
btw. corpse.uid, corpse.itemid in function onDeath works correct, only in addEvent not working...
Thanks in advance.
Can someone help me ?
PHP:
function onDeath(cid, corpse, deathList)
if not(isMonster(cid)) then
return TRUE
end
if(corpse.itemid > 0)then
addEvent(doRemoveItem, 1000, corpse.uid, 1)
end
return true
end
btw. corpse.uid, corpse.itemid in function onDeath works correct, only in addEvent not working...
Thanks in advance.