Okey i have script here that doesn't wan't to work properly.
On both step in and out i got an error like this..
(luaDoRemoveItem) Item not found.
Since i wan't to learn, please explain why it don't work..
Thanks in advance!
On both step in and out i got an error like this..
(luaDoRemoveItem) Item not found.
Code:
function onStepIn(cid, item, frompos, item2, topos)
ground1 = {x=32225, y=32282, z=9, stackpos=1}
getground1 = getThingfromPos(ground1)
if item.uid == 64132 then
doTransformItem(item.uid, item.itemid - 1)
doRemoveItem(getground1.uid,1)
doCreateItem(433,1,ground1)
end
end
function onStepOut(cid, item, frompos, item2, topos)
ground1 = {x=32225, y=32282, z=9, stackpos=1}
getground1 = getThingfromPos(ground1)
if item.uid == 64132 then
doTransformItem(item.uid, item.itemid + 1)
doRemoveItem(getground1.uid,1)
end
return 1
end
Since i wan't to learn, please explain why it don't work..
Thanks in advance!