Then you want to use a actionid on the tile you want this to work on, this will work for any item you remove from the tile. Unless you make a check for a special itemid in the if statement.
moveitemexample.lua
Lua:
function onRemoveItem(item, tile, position)
local tilePosition = tile:getPosition()
if tilePosition:getDistance(position) >= 6 then
-- send msg
end
return true
end
add this inside
movements.xml
XML:
<movevent event="RemoveItem" actionid="1234" script="moveitemexample.lua" />
hopefully i got this right, im not to familiar whit tfs 1.x+
Im only guessing that position will return the new position the item is moved to
Edit:
I missed the part where you stated that you want this to work on all tiles on the map.
Do you only want this to work only whit a specific item?