How do I make this script:
To work with this:
function onAddItem(moveitem, tileitem, position)
npos = {x=999, y=1002, z=8}
doSummonCreature("Rat", npos)
doRemoveItem(moveitem.uid)
end
To work with this:
? :<local fromPos = {x=994, y=1001, z=8}
local toPos = {x=1005, y=1003, z=8}