Hello, i have problem with script
if someone stepin on item with uniqueID -> remove item
if someone steopout from item with uniqueID -> create item
error
whats wrong?
if someone stepin on item with uniqueID -> remove item
if someone steopout from item with uniqueID -> create item
Code:
function onStepIn(cid, item, pos)
local stone_pos = {x=2498, y=1284, z=7}
if item.uid == 63985 and isPlayer(cid) == TRUE then
doRemoveItem(387,1,stone_pos)
end
return true
end
function onStepOut(cid, item, pos)
local stone_pos = {x=2498, y=1284, z=7}
if item.uid == 63985 and isPlayer(cid) == TRUE then
doCreateItem(387,1,stone_pos)
end
return true
end
error
Code:
data/movements/scripts/destroy.lua:onStepIn
Description:
(luaDoRemoveItem) Item not found
whats wrong?