local config =
{
bosses=
{
[1001] = {pos={x=171, y=561, z=13}, value=1, text="Entering The Crystal Caves"},
[1002] = {pos={x=313, y=474, z=13}, value=2, text="Entering The Blood Halls"},
[1003] = {pos={x=286, y=363, z=13}, value=3, text="Entering The Vats"},
[1004] = {pos={x=410, y=412, z=13}, value=4, text="Entering The Arcanum"},
[1005] = {pos={x=296, y=682, z=13}, value=5, text="Entering The Hive"},
[1006] = {pos={x=257, y=466, z=13}, value=6, text="Entering The Shadow Nexus"},
[1007] = {pos={x=1705, y=1156, z=10}, value=7, text="You managed to find and destroy The Shadow Nexus, take your reward."}
},
portals=
{
[3000] = {pos={x=177, y=438, z=14}, text="Entering Inquisition Portals Room"},
[3001] = {pos={x=237, y=553, z=12}, text="Entering The Ward of Ushuriel"},
[3002] = {pos={x=273, y=532, z=13}, text="Entering The Undersea Kingdom"},
[3003] = {pos={x=381, y=527, z=13}, text="Entering The Ward of Zugurosh"},
[3004] = {pos={x=300, y=448, z=10}, text="Entering The Foundry"},
[3005] = {pos={x=338, y=467, z=13}, text="Entering The Ward of Madareth"},
[3006] = {pos={x=390, y=350, z=13}, text="Entering The Battlefield"},
[3007] = {pos={x=503, y=351, z=13}, text="Entering The Ward of The Demon Twins"},
[3008] = {pos={x=578, y=408, z=13}, text="Entering The Soul Wells"},
[3009] = {pos={x=635, y=480, z=13}, text="Entering The Ward of Annihilon"},
[3010] = {pos={x=333, y=590, z=10}, text="Entering The Ward of Hellgorak"}
},
mainroom={},
storage=56123,
walkback="You don't have enough energy to enter this portal",
texttype = TALKTYPE_MONSTER_SAY
}
for i = 1, 5 do
config.mainroom[2000+i]=config.bosses[1000+i]
end
function onStepIn(cid, item, position, fromPosition)
if isPlayer(cid) then
if(config.bosses[item.actionid]) then
if getPlayerStorageValue(cid, config.storage) < config.bosses[item.actionid].value then
setPlayerStorageValue(cid, config.storage, config.bosses[item.actionid].value)
end
doTeleportThing(cid, t.pos)
doCreatureSay(cid,config.bosses[item.actionid].text,config.texttype)
elseif(config.mainroom[item.actionid]) then
if getPlayerStorageValue(cid, config.storage)>=config.mainroom[item.actionid].value then
doTeleportThing(cid, config.mainroom[item.actionid].pos)
doCreatureSay(cid,config.mainroom[item.actionid].text,config.texttype)
else
doTeleportThing(cid, fromPosition)
doCreatureSay(cid, config.walkback, config.texttype)
end
elseif(config.portals[item.actionid]) then
doTeleportThing(cid, config.portals[item.actionid].pos)
doCreatureSay(cid,config.portals[item.actionid].text,config.texttype)
end
end
end