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

[HELP]Banshee Quest Levers

Nottinghster

Tibia World RPG Developer
Joined
Oct 24, 2007
Messages
1,619
Solutions
6
Reaction score
539
Location
Brazil - Rio de Janeiro
GitHub
Nottinghster
Hello guys!

You have to put all levers like the image below and then you can walk to mystic flame and be teleported to determined position

I tried to make the script of image below, but is giving some errors, could someone explain to me what is wrong with the script?

2nd_seal-a.PNG


Code:
--Script by Nottinghster
function onUse(cid, item, frompos, item2, topos)
switch1pos = {x=32310, y=31975, z=13, stackpos=1}
switch2pos = {x=32312, y=31975, z=13, stackpos=1}
switch3pos = {x=32314, y=31975, z=13, stackpos=1}
switch4pos = {x=32310, y=31976, z=13, stackpos=1}
switch5pos = {x=32312, y=31976, z=13, stackpos=1}
switch6pos = {x=32314, y=31976, z=13, stackpos=1}
firepos = {x=32311, y=31978, z=13, stackpos=1}
gopos = {x=32360, y=31782, z=7, stackpos=1}

getswitch1 = getThingfromPos(switch1pos)
getswitch2 = getThingfromPos(switch2pos)
getswitch3 = getThingfromPos(switch3pos)
getswitch4 = getThingfromPos(switch4pos)
getswitch5 = getThingfromPos(switch5pos)
getswitch6 = getThingfromPos(switch6pos)

if item.actionid == 987 and
getswitch1.itemid == 1946 and
getswitch2.itemid == 1946 and
getswitch3.itemid == 1945 and
getswitch4.itemid == 1946 and
getswitch5.itemid == 1946 and
getswitch6.itemid == 1945 then
doCreateItem(1397,gopos, firepos)

else
return 0
end
return 1
end
 
Last edited:
Code:
local firepos = {x=32311, y=31978, z=13}
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local a, b, c, d, e, f = 
		getTileItemById({x=32310, y=31975, z=13}, 1946).uid,
		getTileItemById({x=32312, y=31975, z=13}, 1946).uid,
		getTileItemById({x=32314, y=31975, z=13}, 1945).uid,
		getTileItemById({x=32310, y=31976, z=13}, 1946).uid,
		getTileItemById({x=32312, y=31976, z=13}, 1946).uid,
		getTileItemById({x=32314, y=31976, z=13}, 1945).uid
	if 0<a and 0<b and 0<c and 0<d and 0<d and 0<e and 0<f then
		local v = getTileItemById(firepos, 1397).uid
		if v > 0 then
			doRemoveItem(v)
		else
			local fire = doCreateItem(1397, 1, firepos)
			doSetItemActionId(fire, 20000)
		end
		return TRUE
	end
	doPlayerSendCancel(cid, "Sorry, not possible.")
	return TRUE
end
 
Back
Top