• 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!

Solved Help! Allow only itemid "xxxx" to be thrown in xPos

dejame

New Member
Joined
Jan 21, 2013
Messages
12
Reaction score
0
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:

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 :confused:

Thanks in advance!
 
Back
Top