MeNi
*^#%$%
- Joined
- Jul 23, 2008
- Messages
- 183
- Reaction score
- 12
Hi, i have problem with my script:
When monster die, he says:
But on this pos is a stone ID 1304 whats wrong
Code:
function kamien(item,pos)
doCreateItem(item.itemid, 1, pos)
end
function onDeath(cid, corpse, killer)
local creaturename = getCreatureName(cid)
-- 12k LVL QUEST BOSS
local pos = {x=989, y=2903, z=8, stackpos=255}
local itemx = getThingfromPos(pos)
doCreatureSay(cid,"POS X: "..pos.x.." / ITEM ID: "..itemx.itemid..".")
if (isMonster(cid) and creaturename == 'Morty the Boss' and itemx.itemid == 1304) then
doRemoveItem(itemx.uid,1)
doSendMagicEffect(pos,2)
addEvent(kamien,1*60,itemx,pos)
return true
else
return false
end
return false
-- KONIEC 12k LVL QUEST BOSS
end
When monster die, he says:
Code:
14:36 Morty The Boss: POS X: 989 / ITEM ID: 0.
But on this pos is a stone ID 1304 whats wrong