Greetings Otland,
I would like to know if it's posible to make a movement .lua that allow player to throw a "specific item" at a specific position,
Else if is not the specified item, remove this item from the position, Like this:
It seems so easy but I can't seem to find a suitable function to recognize the specific item id![Confused :confused: :confused:](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Thanks in advance!
I would like to know if it's posible to make a movement .lua that allow player to throw a "specific item" at a specific position,
Else if is not the specified item, remove this item from the position, Like this:
Code:
function onAddItem(moveItem, tileItem, position, cid)
if [COLOR="#FF0000"]???[/COLOR] then
return true
else
doRemoveItem(moveItem.uid)
doSendMagicEffect(position, CONST_ME_EXPLOSIONHIT)
end
end
It seems so easy but I can't seem to find a suitable function to recognize the specific item id
Thanks in advance!