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

Pull lever Wall Remove!!

rox666

Active Member
Joined
May 19, 2011
Messages
702
Reaction score
26
Location
why would i tell you
hello, as title say i need if you pull a lever the wall will remove...after 2minutes wall comes back so u have 2min to enter a teleport there in
also can someone send if i remove wall it says "Event Is Opened you have 2minutes to enter"

i will apreciatte everything u guys help :p its just 1wall so u know REP++ ofc..
 
Lua:
function onUse(cid, item, frompos, item2, topos)
local gatepos = {x=1000, y=1000, z=7, stackpos=1}
local getgate = getThingfromPos(gatepos)
local time = 120

function revive()
doCreateItem(1026,1,gatepos)
end

if item.uid == 3015 and item.itemid == 9825 and getgate.itemid == 1026 then
doRemoveItem(getgate.uid,1)
addEvent(revive, time*1000)
doPlayerSendTextMessage(cid,25,"Event is opened you have 2 minutes to enter.")
doTransformItem(item.uid,item.itemid+1)

elseif item.uid == 3015 and item.itemid == 9826 and getgate.itemid == 0 then
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry not possible.")
end
  return 1
  end

Try this, not tested yet, if it doesn't work I will test it.
 
Last edited:
Try with the lever 1946

Lua:
function onUse(cid, item, frompos, item2, topos)
local gatepos = {x=1000, y=1000, z=7, stackpos=1}
local getgate = getThingfromPos(gatepos)
local time = 120
 
	if item.itemid == 1946 then
		doRemoveItem(getgate.uid,1)
		doTransformItem(item.uid,item.itemid-1)
		doPlayerSendTextMessage(cid,25,"Event is opened you have 2 minutes to enter.")
		addEvent(revive, time*1000)
	elseif item.id == 1945 then
		doTransformItem(item.uid,item.itemid+1)
	end

	local function revive()
		doCreateItem(1026,1,gatepos)
	end
	return true
end
 
Back
Top