quest enter_azrael begin
state start begin
function make_dungeon()
d.new_jump_party(206, 3145, 13188)
d.spawn_mob(2591, 74, 1103)
-- notice_multiline("Infrange demonul apocaliptic, numit si Tartaros!", d.notice)
end
function check_dungeon()
say_title(mob_name(20367))
if not party.is_party() then
say("Daca doresti sa intri in Camera Diavolului")
say("trebuie sa faci parte dintr-o grupa.")
return
end
if not party.is_leader() then
say("Lasa-ma sa vorbesc cu liderul")
say("grupului mai intai.")
return
end
local levelCheck = true
local notEnoughLevelMembers = {}
local maximlevelCheck = true
local notEnoughmaximLevelMembers = {}
local ticketCheck = true
local notEnoughTicketMembers = {}
local pids = {party.get_member_pids()}
for i, pid in next, pids, nil do
q.begin_other_pc_block(pid)
if pc.get_level() < 80 then
table.insert(notEnoughLevelMembers, pc.get_name())
levelCheck = false
end
q.end_other_pc_block()
end
if not levelCheck then
say("Pentru a putea intra in Catacombele Diavolului")
say("toti membri grupului trebuie sa aibe peste nivelul 80.")
say("")
say("Urmatori membri ai grupului nu au nivelul necesar:")
for i, name in next, notEnoughLevelMembers, nil do
say("- "..name.."")
end
return
end
for i, pid in next, pids, nil do
q.begin_other_pc_block(pid)
if pc.get_level() > 105 then
table.insert(notEnoughmaximLevelMembers, pc.get_name())
maximlevelCheck = false
end
q.end_other_pc_block()
end
if not maximlevelCheck then
say("Pentru a putea intra in Catacombele Diavolului")
say("toti membri grupului trebuie sa aibe sub nivelul 105.")
say("")
say("Urmatori membri ai grupului au nivelul peste:")
for i, name in next, notEnoughmaximLevelMembers, nil do
say("- "..name.."")
end
return
end
for i, pid in next, pids, nil do
q.begin_other_pc_block(pid)
if pc.count_item(30319) < 1 then
table.insert(notEnoughTicketMembers, pc.get_name())
ticketCheck = false
end
q.end_other_pc_block()
end
if not ticketCheck then
say("Pentru a putea intra in Catacombele Diavolului")
say(string.format("toti membri grupului trebuie sa aibe %s.", item_name(30319)))
say("")
say("Urmatori membri ai grupului nu au biletul:")
for i, name in next, notEnoughTicketMembers, nil do
say("- "..name.."")
end
return
end
for i, pid in next, pids, nil do
q.begin_other_pc_block(pid)
pc.remove_item(30319, 1)
q.end_other_pc_block()
end
say("Dupa ce vei apasa continua")
say("toti membri grupului vor fi teleportati.")
wait()
enter_azrael.make_dungeon()
end
when 20367.chat."Camera lui Azrael" with pc.get_map_index() == 65 begin
say_title("Paznicul catacombei:")
say("")
say("Doresti sa intri in Camera lui Azrael?")
say("")
local s = select("Da, vreau sa intru.", "Nu, vreau sa plec.")
if s == 2 then
return
end
if s == 1 then
enter_azrael.check_dungeon()
end
end
when 2591.kill with pc.in_dungeon() begin
notice_multiline("Felicitari, l-ai invins pe Tartaros", d.notice)
notice_multiline("In cateva momente Regele Demonilor Azrael va aparea!", d.notice)
cleartimer("azrael_timer")
timer("azrael_timer", 10)
end
when 2598.kill with pc.in_dungeon() begin
d.clear_regen()
notice_multiline("Felicitari, Azrael a fost infranta.", d.notice)
notice_multiline("In 30 de secunde veti fi teleportati.", d.notice)
cleartimer("end_jump")
cleartimer("end_jump_2")
timer("end_jump", 30)
end
when azrael_timer.timer begin
d.spawn_mob(2598, 74, 1103)
end
when end_jump.timer begin
local index = pc.get_map_index()
if index >= (206 * 10000) and index < (206 * 10000 + 10000) then
d.notice("Timpul s-a scurs.")
timer("end_jump_2", 3)
end
end
when end_jump_2.timer begin
local index = pc.get_map_index()
if index >= (206 * 10000) and index < (206 * 10000 + 10000) then
d.exit_all_to_start_position()
end
end
end
end
state start begin
function make_dungeon()
d.new_jump_party(206, 3145, 13188)
d.spawn_mob(2591, 74, 1103)
-- notice_multiline("Infrange demonul apocaliptic, numit si Tartaros!", d.notice)
end
function check_dungeon()
say_title(mob_name(20367))
if not party.is_party() then
say("Daca doresti sa intri in Camera Diavolului")
say("trebuie sa faci parte dintr-o grupa.")
return
end
if not party.is_leader() then
say("Lasa-ma sa vorbesc cu liderul")
say("grupului mai intai.")
return
end
local levelCheck = true
local notEnoughLevelMembers = {}
local maximlevelCheck = true
local notEnoughmaximLevelMembers = {}
local ticketCheck = true
local notEnoughTicketMembers = {}
local pids = {party.get_member_pids()}
for i, pid in next, pids, nil do
q.begin_other_pc_block(pid)
if pc.get_level() < 80 then
table.insert(notEnoughLevelMembers, pc.get_name())
levelCheck = false
end
q.end_other_pc_block()
end
if not levelCheck then
say("Pentru a putea intra in Catacombele Diavolului")
say("toti membri grupului trebuie sa aibe peste nivelul 80.")
say("")
say("Urmatori membri ai grupului nu au nivelul necesar:")
for i, name in next, notEnoughLevelMembers, nil do
say("- "..name.."")
end
return
end
for i, pid in next, pids, nil do
q.begin_other_pc_block(pid)
if pc.get_level() > 105 then
table.insert(notEnoughmaximLevelMembers, pc.get_name())
maximlevelCheck = false
end
q.end_other_pc_block()
end
if not maximlevelCheck then
say("Pentru a putea intra in Catacombele Diavolului")
say("toti membri grupului trebuie sa aibe sub nivelul 105.")
say("")
say("Urmatori membri ai grupului au nivelul peste:")
for i, name in next, notEnoughmaximLevelMembers, nil do
say("- "..name.."")
end
return
end
for i, pid in next, pids, nil do
q.begin_other_pc_block(pid)
if pc.count_item(30319) < 1 then
table.insert(notEnoughTicketMembers, pc.get_name())
ticketCheck = false
end
q.end_other_pc_block()
end
if not ticketCheck then
say("Pentru a putea intra in Catacombele Diavolului")
say(string.format("toti membri grupului trebuie sa aibe %s.", item_name(30319)))
say("")
say("Urmatori membri ai grupului nu au biletul:")
for i, name in next, notEnoughTicketMembers, nil do
say("- "..name.."")
end
return
end
for i, pid in next, pids, nil do
q.begin_other_pc_block(pid)
pc.remove_item(30319, 1)
q.end_other_pc_block()
end
say("Dupa ce vei apasa continua")
say("toti membri grupului vor fi teleportati.")
wait()
enter_azrael.make_dungeon()
end
when 20367.chat."Camera lui Azrael" with pc.get_map_index() == 65 begin
say_title("Paznicul catacombei:")
say("")
say("Doresti sa intri in Camera lui Azrael?")
say("")
local s = select("Da, vreau sa intru.", "Nu, vreau sa plec.")
if s == 2 then
return
end
if s == 1 then
enter_azrael.check_dungeon()
end
end
when 2591.kill with pc.in_dungeon() begin
notice_multiline("Felicitari, l-ai invins pe Tartaros", d.notice)
notice_multiline("In cateva momente Regele Demonilor Azrael va aparea!", d.notice)
cleartimer("azrael_timer")
timer("azrael_timer", 10)
end
when 2598.kill with pc.in_dungeon() begin
d.clear_regen()
notice_multiline("Felicitari, Azrael a fost infranta.", d.notice)
notice_multiline("In 30 de secunde veti fi teleportati.", d.notice)
cleartimer("end_jump")
cleartimer("end_jump_2")
timer("end_jump", 30)
end
when azrael_timer.timer begin
d.spawn_mob(2598, 74, 1103)
end
when end_jump.timer begin
local index = pc.get_map_index()
if index >= (206 * 10000) and index < (206 * 10000 + 10000) then
d.notice("Timpul s-a scurs.")
timer("end_jump_2", 3)
end
end
when end_jump_2.timer begin
local index = pc.get_map_index()
if index >= (206 * 10000) and index < (206 * 10000 + 10000) then
d.exit_all_to_start_position()
end
end
end
end

