• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Request.

dunder

New Member
Joined
May 24, 2008
Messages
335
Reaction score
2
Location
Sweden
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:

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 :p
 
Back
Top