• 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 Banshee magic walls help

LUA:
function onUse(cid, item, frompos, item2, topos)
	local switchUniqueID = 3004  -- uniqueID of switch
	local switchID = 2180        -- id of switch
	local wallid = 1111          -- id of wall
	local wallpos = {x=1114, y=1334, z=7, stackpos=1}
	local wallchk = getThingfromPos(wallpos)
 
	if item.uid == switchUniqueID and item.itemid == switchID and wallchk.itemid == wallid then
			doSendMagicEffect(wallchk,10)
			doRemoveItem(wallchk.uid,1)
			addEvent(onTimer1, 60*1000)
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You Have 60 second To Enter The pass the wall.")
end
	return 1
end


function onTimer1()
local wallid = 1111          -- id of wall
wallnewpos = {x=1114, y=1334, z=7} 
		doCreateItem(wallid,1,wallnewpos)
end
 
LUA:
function onUse(cid, item, frompos, item2, topos)
	local switchUniqueID = 3004  -- uniqueID of switch
	local switchID = 2180        -- id of switch
	local wallid = 1111          -- id of wall
	local wallpos = {x=1114, y=1334, z=7, stackpos=1}
	local wallchk = getThingfromPos(wallpos)
 
	if item.uid == switchUniqueID and item.itemid == switchID and wallchk.itemid == wallid then
			doSendMagicEffect(wallchk,10)
			doRemoveItem(wallchk.uid,1)
			addEvent(onTimer1, 60*1000)
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You Have 60 second To Enter The pass the wall.")
end
	return 1
end


function onTimer1()
local wallid = 1111          -- id of wall
wallnewpos = {x=1114, y=1334, z=7} 
		doCreateItem(wallid,1,wallnewpos)
end



You do it with a ORB 16:01 You see an orb of nature. not a SwitchID, 16:02 You see a switch. and you not make de lever transform 1945 to 1946 and not do lever back in 60seg to 1945. :)
 

Similar threads

Back
Top