Hi, I have a problem with the lever on, neither the stone quest disappears when the player comes out the next can not open the stone the error pops up with the ruler (9)
Code:
function onUse(cid, item, frompos, item2, topos)
gatepos = {x=193, y=161, z=10, stackpos=1}
getgate = getThingfromPos(gatepos)
if item.uid == 9999 and item.itemid == 1945 and getgate.itemid == 1355 then
doRemoveItem(getgate.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 9999 and item.itemid == 1946 and getgate.itemid == 0 then
doCreateItem(1355,1,gatepos)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Cos blokuje ten kamien!")
end
return 1
end