• 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!

Lua Help my with this script action script

CipsoftStinks

www.relicaria.com
Joined
Oct 1, 2016
Messages
947
Solutions
3
Reaction score
137
Location
Argentina
Hello otland

i've took this script from @Cykotitan and edited a little bit
the script works similiar as rook thais but with just one lever
i need to adda function that made that when a player is ove the brigde and a player have used the lever
(at the same time that the player is step in the brigde) go back to earth and to stay above the water

regards

here is the script

function onUse(cid, item, frompos, item2, topos)
local tile = {}

tile[1] = {x=32629, y=31699, z=10, stackpos=1} --change tilepos
tile[2] = {x=32628, y=31699, z=10, stackpos=1} --change tilepos
tile[3] = {x=32627, y=31699, z=10, stackpos=1} --change tilepos

local gettile = {}
for i,tiles in ipairs(tile) do
gettile = getThingfromPos(tiles)
end
if item.uid == 9511 and item.itemid == 1945 then
for i, tiles in ipairs(tile) do
if i <= 2 then
doCreateItem(493,1,tiles)
else
doCreateItem(493,1,tiles)
end
end
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 9511 and item.itemid == 1946 then
for i, tiles in ipairs(tile) do
doCreateItem(1284,1,tiles)
end
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end

return 1
end
 
Back
Top