CipsoftStinks
www.relicaria.com
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
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