Ye thats true, but it still wont print anything anyways so there is something strange going on.
even if you put an print as first line in the onAddItem function
edit:
Seems like the best way to solve the problem is to set an actionid to the item at the position, and then use this method instead. That way you dont have to hardcode the cordinates aswell.
remember to change the "1234" to an empty/free actionid
XML:
<movevent type="AddItem" tileitem="1" actionid="1234" event="script" value="postman_parcel.lua"/>
Lua:
function onAddItem(moveitem, tileitem, position, cid)
if moveitem.itemid == 7955 and tileitem.actionid == 1234 then
doRemoveItem(moveitem.uid)
return true
end
end
because the script would only run if you did put an item ontop of the parcel and not if you put the parcel ontop of something else, i did also learn something new by helping you out