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

Remove item if dropped on a tile

Erevius

It Was A Good Day
Joined
Feb 12, 2010
Messages
157
Reaction score
7
Location
Poland/Olsztyn
Welcome. I want a script that removes any item if dropped on a specific tile with action id 1000.
What function should I use in movements? Is it even possible to do so?
 
Last edited:
And what do I put in movements.xml? Keep in mind I want an item with any itemid to remove if you drop it on a tile with actionid

finally
movements.xml:
Code:
<movevent event="additem" tileitem="1" actionid="xxxx" script="xxx.lua"/>

xxx.lua
Code:
function onAddItem(moveitem, tileitem, pos)
		doRemoveItem(moveitem.uid)
	return true
end
 
Last edited:
Back
Top