Hello, as im scripting my levers,i followed this style
Whats wrong ? as i tried to use them ingame ,some of them work only once but others dont even move. Do i have to add ActionId to the levers also ?
`Please help, rep++
Code:
function onUse(cid, item, frompos, item2, topos)
statuepos1 = {x=484, y=506, z=6, stackpos=1}
statuepos2 = {x=485, y=506, z=6, stackpos=1}
statue1 = getThingfromPos(statuepos1)
statue2 = getThingfromPos(statuepos2)
if item.itemid == 1945 and item.uid == 1111 then
doRemoveItem(statue1.uid,1547)
doRemoveItem(statue2.uid,1547)
elseif(item.itemid == 1946 and item.uid == 1111) then
doCreateItem(statue1.uid,1547)
doCreateItem(statue2.uid,1547)
end
end
Whats wrong ? as i tried to use them ingame ,some of them work only once but others dont even move. Do i have to add ActionId to the levers also ?
`Please help, rep++