Code:
function onCastSpell(cid, var)
local pos = getCreaturePosition(cid)
if getTileItemById(pos,2725) == 1 then
doCreatureSay(cid, "ok", TALKTYPE_ORANGE_1)
else
---doCreatureAddHealth(cid,-100)
doCreatureSay(cid, "no ok", TALKTYPE_ORANGE_1)
end
end
I'm trying to spell a monster
if you have the item id is next to the monster say 'ok' if not 'no ok'