local c = {
boss = { -- Boss Name, ttp = position for the new room, tp = position where you want it to appear Teleport, time = time after which disappears teleport, bro = the second boss to kill in this room
-- 1 room
["Evil Eye"] = {ttp={x = 1592, y = 1908, z = 6}, tp={x = 1592, y = 1914, z = 7, stackpos=1}, time = 4, bro = "Exodius"},
["Exodius"] = {ttp={x = 1592, y = 1908, z = 6}, tp={x = 1592, y = 1914, z = 7, stackpos=1}, time = 4, bro = "Evil eye"},
-- 2 room
["Exodius"] = {ttp={x = 2222, y = 1111, z = 11}, tp={x = 1111, y = 1111, z = 11, stackpos=1}, time = 4, bro = "Amirs bodyguard"},
["Amirs bodyguard"] = {ttp={x = 2222, y = 1111, z = 11}, tp={x = 1111, y = 1111, z = 11, stackpos=1}, time = 4, bro = "Exodius"},
-- 3 room
["Exodius"] = {ttp={x = 3333, y = 1111, z = 11}, tp={x = 1111, y = 1111, z = 11, stackpos=1}, time = 4, bro = "Paradise master"},
["Paraidse master"] = {ttp={x = 3333, y = 1111, z = 11}, tp={x = 1111, y = 1111, z = 11, stackpos=1}, time = 4, bro = "Exodius"},
-- 4 room
["Amirs bodyguard"] = {ttp={x = 4444, y = 1111, z = 11}, tp={x = 1111, y = 1111, z = 11, stackpos=1}, time = 5, bro = "Paradise master"},
["Paradise master"] = {ttp={x = 4444, y = 1111, z = 11}, tp={x = 1111, y = 1111, z = 11, stackpos=1}, time = 5, bro = "Amirs bodyguard"}
}
}
function onKill(cid, target, lastHit)
local k = c.boss[getCreatureName(target)]
if(not isPlayer(target)) and isPlayer(cid) and k and not(getCreatureMaster(target)) then
if(k.bro) then
local bro = getCreatureByName(k.bro)
if isMonster(bro) and getDistanceBetween(getThingPosition(cid), getThingPosition(bro)) < 8 then --
return true
end
end
doCreateTeleport(1387, k.ttp, k.tp)
doCreatureSay(cid, "You now have ".. k.time .."sec to exit this room through the teleporter. It will bring you to the next room only during his time or the teleporter will disappear", TALKTYPE_MONSTER_SAY)
addEvent(function()
local itek = getTileItemById(k.tp, 1387)
if itek.uid > 0 then
doRemoveItem(itek.uid, 1)
end
end, k.time*1000, k.tp)
end
return true
end