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

Pits Of Inferno

cocoroto

New Member
Joined
Oct 13, 2008
Messages
54
Reaction score
0
Hello, yesterday I spent ALL my day trying to fix the Pits Of Inferno Quest that I copied from EldinWorld 8.31 SQL. I thought that it was supposed to be working BUT, it isnt working at all.

When I open the walls of fire and go down to pull the 7 levers for each stone to desapear is where the problem starts...

1. I pull the 7 levers for the first stone and the stone does not disappear, I can still move any of the 7 levers "on" or "off".

2. I found in the map that not all the levers have a Action ID, some of them have.

3. Cant move some of the levers.

Anyways, I will try to put all the codes here, so you can try help me find the problem and fix it.

Actions:

Actions/Actions.xml
This is just the part that involves Pits Of Inferno

PHP:
<!-- Pits of Inferno -->
<action uniqueid="10203" script="PitsOfInferno/Oil.lua" />
<action uniqueid="10204" script="PitsOfInferno/LeverKnight.lua" />
<action uniqueid="10205" script="PitsOfInferno/LeverDruid.lua" />
<action uniqueid="10206" script="PitsOfInferno/LeverPaladin.lua" />
<action uniqueid="10207" script="PitsOfInferno/LeverSorcerer.lua" />
<action uniqueid="10224" script="PitsOfInferno/SmallBridge1.lua" />
<action uniqueid="10254" script="PitsOfInferno/SmallBridge2.lua" />
<action uniqueid="10255" script="PitsOfInferno/StoneMagicThrowers.lua" />
<action uniqueid="10256" script="PitsOfInferno/StoneGoldenKey.lua" />
<action uniqueid="10258" script="PitsOfInferno/RemoveStone.lua" />
<action uniqueid="10259" script="PitsOfInferno/RemoveLevelDoor.lua" />
<action uniqueid="10260" script="PitsOfInferno/TeleportLever1.lua" />
<action uniqueid="10261" script="PitsOfInferno/TeleportLever2.lua" />
<action uniqueid="10262" script="PitsOfInferno/TeleportLever3.lua" />
<action uniqueid="10263" script="PitsOfInferno/TeleportLever4.lua" />
<action uniqueid="10264" script="PitsOfInferno/TeleportLever5.lua" />
<action uniqueid="10265" script="PitsOfInferno/TeleportLever6.lua" />
<action uniqueid="10266" script="PitsOfInferno/TeleportLever7.lua" />
<action uniqueid="10267" script="PitsOfInferno/TeleportLever8.lua" />
<action uniqueid="10268" script="PitsOfInferno/TeleportLever9.lua" />
<action uniqueid="10269" script="PitsOfInferno/TeleportLever10.lua" />
<action uniqueid="10270" script="PitsOfInferno/TeleportLever11.lua" />
<action uniqueid="10272" script="PitsOfInferno/BazirChest.lua" />
<action uniqueid="10273" script="PitsOfInferno/BazirMirror.lua" />
<action uniqueid="10282" script="PitsOfInferno/SkeletonReward.lua" />
<action actionid="10283" script="PitsOfInferno/16Levers1.lua" />
<action actionid="10284" script="PitsOfInferno/16Levers2.lua" />
<action itemid="1223" script="items/QuestDoor.lua" />
<action uniqueid="10285" script="PitsOfInferno/LavaLever.lua" />

Actions/Scripts/PitsOfInferno/16Levers1.lua
This is just the .lua that involves the first 7 levers.

PHP:
function onUse(cid, item, frompos, item2, topos)
 
if item.actionid == 10283 then

leverpos1 = {x=481, y=1387, z=11, stackpos=1}
lever1 = getThingfromPos(leverpos1)
leverpos2 = {x=498, y=1381, z=13, stackpos=1}
lever2 = getThingfromPos(leverpos2)
leverpos3 = {x=450, y=1405, z=13, stackpos=1}
lever3 = getThingfromPos(leverpos3)
leverpos4 = {x=496, y=1402, z=14, stackpos=1}
lever4 = getThingfromPos(leverpos4)
leverpos5 = {x=494, y=1383, z=11, stackpos=1}
lever5 = getThingfromPos(leverpos5)
leverpos6 = {x=453, y=1371, z=11, stackpos=1}
lever6 = getThingfromPos(leverpos6)
leverpos7 = {x=494, y=1408, z=12, stackpos=1}
lever7 = getThingfromPos(leverpos7)

wallpos = {x=458, y=1386, z=11, stackpos=1}
wall = getThingfromPos(wallpos)

if item.itemid == 1945 then
    doTransformItem(item.uid,1946)
  elseif item.itemid == 1946 then
    doTransformItem(item.uid,1945)
end

if (item.actionid == 10283 and lever1.itemid == 1946 and lever2.itemid == 1946 and lever3.itemid == 1946 and lever4.itemid == 1946 and lever5.itemid == 1946 and wall.itemid == 0) then
doCreateItem(1304,1,wallpos)
elseif (item.actionid == 10283 and lever1.itemid == 1946 and lever2.itemid == 1946 and lever3.itemid == 1946 and lever4.itemid == 1946 and lever5.itemid == 1946 and wall.itemid == 1304) then
doRemoveItem(wall.uid,1)
else 
doPlayerSendCancel(cid,"Sorry, not possible.") 
end 
end
end

Movements:

Movements/Movements.xml
This is just the part that involves Pits Of Inferno

PHP:
<!-- Pits Of Inferno -->
<movevent event="AddItem" tileitem="1" uniqueid="10200" script="PitsOfInferno/GraveEntrance.lua" />
<movevent event="StepIn" actionid="10201" script="PitsOfInferno/MagicWallEntrance.lua" />
<movevent event="StepIn" uniqueid="10202" script="PitsOfInferno/MagicWallExit.lua" />
<movevent event="StepIn" actionid="10208" script="PitsOfInferno/FireKnightNorth1.lua" />
<movevent event="StepIn" actionid="10209" script="PitsOfInferno/FireKnightNorth2.lua" />
<movevent event="StepIn" actionid="10210" script="PitsOfInferno/FireKnightNorth3.lua" />
<movevent event="StepIn" actionid="10211" script="PitsOfInferno/FireDruidNorthEast1.lua" />
<movevent event="StepIn" actionid="10212" script="PitsOfInferno/FireDruidNorthEast2.lua" />
<movevent event="StepIn" actionid="10213" script="PitsOfInferno/FireDruidNorthEast3.lua" />
<movevent event="StepIn" actionid="10214" script="PitsOfInferno/FirePaladinSouthEast1.lua" />
<movevent event="StepIn" actionid="10215" script="PitsOfInferno/FirePaladinSouthEast2.lua" />
<movevent event="StepIn" actionid="10216" script="PitsOfInferno/FirePaladinSouthEast3.lua" />
<movevent event="StepIn" actionid="10217" script="PitsOfInferno/FireSorcererSouth1.lua" />
<movevent event="StepIn" actionid="10218" script="PitsOfInferno/FireSorcererSouth2.lua" />
<movevent event="StepIn" actionid="10219" script="PitsOfInferno/FireSorcererSouth3.lua" />
<movevent event="StepIn" actionid="10220" script="PitsOfInferno/FireKnightDeath.lua" />
<movevent event="StepIn" actionid="10221" script="PitsOfInferno/FireDruidDeath.lua" />
<movevent event="StepIn" actionid="10222" script="PitsOfInferno/FirePaladinDeath.lua" />
<movevent event="StepIn" actionid="10223" script="PitsOfInferno/FireSorcererDeath.lua" />
<movevent event="StepIn" uniqueid="10225" script="PitsOfInferno/CreateLadder.lua" />
<movevent event="StepOut" uniqueid="10225" script="PitsOfInferno/CreateLadder.lua" />
<movevent event="StepIn" uniqueid="10226" script="PitsOfInferno/TP1.lua" />
<movevent event="StepIn" uniqueid="10227" script="PitsOfInferno/TP2.lua" />
<movevent event="StepIn" uniqueid="10228" script="PitsOfInferno/TP3.lua" />
<movevent event="StepIn" uniqueid="10229" script="PitsOfInferno/TP4.lua" />
<movevent event="StepIn" uniqueid="10230" script="PitsOfInferno/TP5.lua" />
<movevent event="StepIn" uniqueid="10231" script="PitsOfInferno/TP6.lua" />
<movevent event="StepIn" uniqueid="10232" script="PitsOfInferno/TP7.lua" />
<movevent event="StepIn" uniqueid="10233" script="PitsOfInferno/TP8.lua" />
<movevent event="StepIn" uniqueid="10234" script="PitsOfInferno/TP9.lua" />
<movevent event="StepIn" uniqueid="10235" script="PitsOfInferno/TP10.lua" />
<movevent event="StepIn" uniqueid="10236" script="PitsOfInferno/TP11.lua" />
<movevent event="StepIn" uniqueid="10237" script="PitsOfInferno/TP12.lua" />
<movevent event="StepIn" uniqueid="10238" script="PitsOfInferno/TP13.lua" />
<movevent event="StepIn" uniqueid="10239" script="PitsOfInferno/TP14.lua" />
<movevent event="StepIn" uniqueid="10240" script="PitsOfInferno/TPBack1.lua" />
<movevent event="StepIn" uniqueid="10241" script="PitsOfInferno/TPBack2.lua" />
<movevent event="StepIn" uniqueid="10242" script="PitsOfInferno/TPBack3.lua" />
<movevent event="StepIn" uniqueid="10243" script="PitsOfInferno/TPBack4.lua" />
<movevent event="StepIn" uniqueid="10244" script="PitsOfInferno/TPBack5.lua" />
<movevent event="StepIn" uniqueid="10245" script="PitsOfInferno/TPBack6.lua" />
<movevent event="StepIn" uniqueid="10246" script="PitsOfInferno/TPBack7.lua" />
<movevent event="StepIn" uniqueid="10247" script="PitsOfInferno/TPBack8.lua" />
<movevent event="StepIn" uniqueid="10248" script="PitsOfInferno/TPBack9.lua" />
<movevent event="StepIn" uniqueid="10249" script="PitsOfInferno/TPBack10.lua" />
<movevent event="StepIn" uniqueid="10250" script="PitsOfInferno/TPBack11.lua" />
<movevent event="StepIn" uniqueid="10251" script="PitsOfInferno/TPMiddle1.lua" />
<movevent event="StepIn" uniqueid="10252" script="PitsOfInferno/TPMiddle2.lua" />
<movevent event="StepIn" uniqueid="10253" script="PitsOfInferno/TPMiddle3.lua" />
<movevent event="StepIn" uniqueid="10257" script="PitsOfInferno/CreateStone.lua" />
<movevent event="StepIn" uniqueid="10271" script="PitsOfInferno/BazirPlatinumCoins.lua" />
<movevent event="StepIn" itemid="5915" script="PitsOfInferno/AllThrones.lua" />
<movevent event="StepIn" itemid="5916" script="PitsOfInferno/AllThrones.lua" />

Movements/Scripts/PitsOfInferno/TP1.lua
This involves the first lever (I think)

PHP:
--function by Armageddom--
function onStepIn(cid, item, frompos, item2, topos) 

playerpos = getPlayerPosition(cid) 
novapos = {x=434, y=1367, z=8} 

if item.uid == 10226 then

getThingfromPos(playerpos) 
doSendMagicEffect(playerpos,2) 
doTeleportThing(cid,novapos) 
doSendMagicEffect(novapos,10) 
end 
end

Movements/Scripts/PitsOfInferno/TP2.lua
This involves the second lever (I think)

PHP:
--function by Armageddom--
function onStepIn(cid, item, frompos, item2, topos) 

playerpos = getPlayerPosition(cid) 
novapos = {x=447, y=1376, z=8} 

if item.uid == 10227 then

getThingfromPos(playerpos) 
doSendMagicEffect(playerpos,2) 
doTeleportThing(cid,novapos) 
doSendMagicEffect(novapos,10) 
end 
end

Movements/Scripts/PitsOfInferno/TP3.lua
This involves the third lever (I think)

PHP:
--function by Armageddom--
function onStepIn(cid, item, frompos, item2, topos) 

playerpos = getPlayerPosition(cid) 
novapos = {x=451, y=1360, z=8} 

if item.uid == 10228 then

getThingfromPos(playerpos) 
doSendMagicEffect(playerpos,2) 
doTeleportThing(cid,novapos) 
doSendMagicEffect(novapos,10) 
end 
end

Movements/Scripts/PitsOfInferno/TP4.lua
This involves the fourth lever (I think)

PHP:
--function by Armageddom--
function onStepIn(cid, item, frompos, item2, topos) 

playerpos = getPlayerPosition(cid) 
novapos = {x=462, y=1349, z=8} 

if item.uid == 10229 then

getThingfromPos(playerpos) 
doSendMagicEffect(playerpos,2) 
doTeleportThing(cid,novapos) 
doSendMagicEffect(novapos,10) 
end 
end

Movements/Scripts/PitsOfInferno/TP5.lua
This involves the fifth lever (I think)

PHP:
--function by Armageddom--
function onStepIn(cid, item, frompos, item2, topos) 

playerpos = getPlayerPosition(cid) 
novapos = {x=447, y=1370, z=8} 

if item.uid == 10230 then

getThingfromPos(playerpos) 
doSendMagicEffect(playerpos,2) 
doTeleportThing(cid,novapos) 
doSendMagicEffect(novapos,10)
end 
end

Movements/Scripts/PitsOfInferno/TP6.lua
This involves the sixth lever (I think)

PHP:
--function by Armageddom--
function onStepIn(cid, item, frompos, item2, topos) 

playerpos = getPlayerPosition(cid) 
novapos = {x=461, y=1376, z=8} 

if item.uid == 10231 then

getThingfromPos(playerpos) 
doSendMagicEffect(playerpos,2) 
doTeleportThing(cid,novapos) 
doSendMagicEffect(novapos,10)
end 
end

Movements/Scripts/PitsOfInferno/TP7.lua
This involves the seventh lever (I think)

PHP:
--function by Armageddom--
function onStepIn(cid, item, frompos, item2, topos) 

playerpos = getPlayerPosition(cid) 
novapos = {x=465, y=1349, z=8} 

if item.uid == 10232 then

getThingfromPos(playerpos) 
doSendMagicEffect(playerpos,2) 
doTeleportThing(cid,novapos) 
doSendMagicEffect(novapos,10)
end 
end

Thats all the information involved with the part of the levers of the Pits Of Inferno Quest that I copied from EldinWorld 8.31 SQL.

Should the levers properties on the map editor be like:



OR



What about the codes, are they ok?

Just to let you know:
1. Im using: The Forgotten Server v0.3 (alpha 3) patch 1.
2. I merged EldinWorld map into mine, means that Im using the SAME coordinates.

Thank you very much for your help, hope we can find out the problem to fix it, so that more people can be satisfied.
 
Last edited:
The TP1-6 are not part of the switches... Those are teleports in the maze, Although I myself am having the same problem where the stones aren't disappering, You can count those tps out, thats not the problem it's something about the scripting your going from a old server to a newer one, the scripting languages are diffrent
 
Back
Top