• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

[onDeath]

MeNi

*^#%$%
Joined
Jul 23, 2008
Messages
183
Reaction score
12
Hi, i have problem with my script:

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
 
Back
Top