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?
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?
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: