Cześć, uczę się lua i napisałem prosty skrypt ale nie chce mi działać 
Chodzi o to że jak gracz stanie na kratkę z uniqueID to żeby zniknęły skały a jak z niej zejdzie to żeby znów się pojawiły
i wyskakuje błąd
Co robie źle?
Chodzi o to że jak gracz stanie na kratkę z uniqueID to żeby zniknęły skały a jak z niej zejdzie to żeby znów się pojawiły
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
i wyskakuje błąd
Code:
data/movements/scripts/destroy.lua:onStepIn
Description:
(luaDoRemoveItem) Item not found
Co robie źle?