Oi, iv got a problem. I promised to help a friend, who host a war server with a script. the thing is i dont get it to work.
The server is 7.6 and this is what i want to happen.
When you pull a lever, there should be a wall removing, from a bridge.
What iv done is:
Tho, its not working. Whats the problem?
I could mention I suck at theese things
The server is 7.6 and this is what i want to happen.
When you pull a lever, there should be a wall removing, from a bridge.
What iv done is:
Code:
function onUse(cid, item, frompos, item2, topos)
piece1pos = {x=1036, y=667, z=7, stackpos=1}
rockpos = {x=1036, y=667, z=7, stackpos=1}
getpiece1 = getThingfromPos(piece1pos)
if item.uid == 4020 and item.itemid == 1955 and getpiece1.itemid == 1049 then
doRemoveItem(getpiece1.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 4020 and item.itemid == 1946 then
doCreateItem(1284,1,rockpos)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendTextMessage(cid,22,"Sorry, not possible.")
end
return 1
end
Tho, its not working. Whats the problem?
I could mention I suck at theese things