Tipologie server: -
*Resursă folosită: -
*ServerFiles utilizat: -
*Syserr: -
Poză: -
*Detalii suplimentare: Salutare Just4metin, am si eu o problema cu acest quest... Intru la dragon, totul bine, merg bat metinul, imi spune ca am spart metinul corect si voi fi teleportat, ma teleporteaza dar nu apre nimic la etajul 2.. ma poate ajute cineva? Acesta este Questul.
uest DragonLair_Zone begin
state start begin
when logout with DragonLair.isInDungeon() begin
pc.setqf("DragonLairWarpFrom", 1);
end
when login with DragonLair.isInDragonRoom() begin
local data = DragonLair.ReturnData();
if pc.getqf("DragonLairWarpFrom") == 1 then
syschat("BUG DETECTED - Nu ai ce cauta aici incercand sa faci bug!")
pc.setqf("logout_from_lair", 0);
warp_to_village();
end
if pc.get_level() < data["min_level"] then
syschat("Nu ai ce cauta in aceasta mapa la acest nivel!")
warp_to_village();
end
end
when 71173.use begin
syschat(string.format("%s", get_time_format(game.get_event_flag("DragonLairFirstLevelTime")-get_time())))
end
when login with DragonLair.isInDungeon() begin
local data = DragonLair.ReturnData();
local ownPid = pc.get_player_id();
local flag = d.getf("DragonLairLeader_"..ownPid.."");
local outside_coords_l = data["outside_Pos"]
d.set_warp_location(data["outside_index"], outside_coords_l["x"], outside_coords_l["y"]);
if flag == 1 then
d.set_regen_file(get_locale_base_path().."/quest/dungeon/dragon_lair/skia_boss.txt");
server_timer("DragonLair_time_out", data["time_until_you_got_kicked"], d.get_map_index());
d.notice(string.format("Camera de Cristal: De acum inainte vei avea %s.", get_time_format(data["time_until_you_got_kicked"])))
d.notice("Camera de Cristal: pentru a completa temnita.")
end
end
when 30121.chat."Camera de Cristal" with not DragonLair.isInDungeon() and not DragonLair.isInDragonRoom() begin
DragonLair.CheckInfo(npc.get_race());
end
when kill with npc.get_race() == 8020 and DragonLair.isInDragonRoom() begin
cleartimer("DragonLair_Teleport");
timer("DragonLair_Teleport", 5);
notice_in_map("Ai spart metinul corespunzator, in 5 secunde veti fi teleportati..")
end
when kill with DragonLair.isInDungeon() begin
local data = DragonLair.ReturnData();
if (npc.get_race() == data["Blue_DragonVnum"]) then
clear_server_timer("DragonLair_time_out", get_server_timer_arg());
server_timer("DragonLair_time_out", 60, d.get_map_index());
DragonLair.ClearDungeon();
d.notice("Camera de Cristal: Felicitari Camera de Cristal a fost completata cu succes!")
d.notice("Camera de Cristal: In 60 de secunde veti fi teleportati!")
notice_all(string.format("[Camera de Cristal]: Dragonul a fost infrant de catre %s, felicitari!", pc.get_name()))
end
end
when DragonLair_Teleport.timer begin
local data = DragonLair.ReturnData();
local enter_coords = data["enter_Pos"];
local ownPid = pc.get_player_id();
game.set_event_flag("DragonLairRoomBlocked", 0);
game.set_event_flag("DragonLairFirstLevelTime", 0);
d.new_jump_all(data["inside_index"], enter_coords["x"], enter_coords["y"]);
d.setf("DragonLairLeader_"..ownPid.."", 1);
end
when DragonLair_time_out.server_timer begin
if (d.select(get_server_timer_arg())) then
d.notice("Camera de Cristal: Timpul a expirat, vei fi teleportat inafara Camerei de cristal.")
d.exit_all();
end
end
end
end
state start begin
when logout with DragonLair.isInDungeon() begin
pc.setqf("DragonLairWarpFrom", 1);
end
when login with DragonLair.isInDragonRoom() begin
local data = DragonLair.ReturnData();
if pc.getqf("DragonLairWarpFrom") == 1 then
syschat("BUG DETECTED - Nu ai ce cauta aici incercand sa faci bug!")
pc.setqf("logout_from_lair", 0);
warp_to_village();
end
if pc.get_level() < data["min_level"] then
syschat("Nu ai ce cauta in aceasta mapa la acest nivel!")
warp_to_village();
end
end
when 71173.use begin
syschat(string.format("%s", get_time_format(game.get_event_flag("DragonLairFirstLevelTime")-get_time())))
end
when login with DragonLair.isInDungeon() begin
local data = DragonLair.ReturnData();
local ownPid = pc.get_player_id();
local flag = d.getf("DragonLairLeader_"..ownPid.."");
local outside_coords_l = data["outside_Pos"]
d.set_warp_location(data["outside_index"], outside_coords_l["x"], outside_coords_l["y"]);
if flag == 1 then
d.set_regen_file(get_locale_base_path().."/quest/dungeon/dragon_lair/skia_boss.txt");
server_timer("DragonLair_time_out", data["time_until_you_got_kicked"], d.get_map_index());
d.notice(string.format("Camera de Cristal: De acum inainte vei avea %s.", get_time_format(data["time_until_you_got_kicked"])))
d.notice("Camera de Cristal: pentru a completa temnita.")
end
end
when 30121.chat."Camera de Cristal" with not DragonLair.isInDungeon() and not DragonLair.isInDragonRoom() begin
DragonLair.CheckInfo(npc.get_race());
end
when kill with npc.get_race() == 8020 and DragonLair.isInDragonRoom() begin
cleartimer("DragonLair_Teleport");
timer("DragonLair_Teleport", 5);
notice_in_map("Ai spart metinul corespunzator, in 5 secunde veti fi teleportati..")
end
when kill with DragonLair.isInDungeon() begin
local data = DragonLair.ReturnData();
if (npc.get_race() == data["Blue_DragonVnum"]) then
clear_server_timer("DragonLair_time_out", get_server_timer_arg());
server_timer("DragonLair_time_out", 60, d.get_map_index());
DragonLair.ClearDungeon();
d.notice("Camera de Cristal: Felicitari Camera de Cristal a fost completata cu succes!")
d.notice("Camera de Cristal: In 60 de secunde veti fi teleportati!")
notice_all(string.format("[Camera de Cristal]: Dragonul a fost infrant de catre %s, felicitari!", pc.get_name()))
end
end
when DragonLair_Teleport.timer begin
local data = DragonLair.ReturnData();
local enter_coords = data["enter_Pos"];
local ownPid = pc.get_player_id();
game.set_event_flag("DragonLairRoomBlocked", 0);
game.set_event_flag("DragonLairFirstLevelTime", 0);
d.new_jump_all(data["inside_index"], enter_coords["x"], enter_coords["y"]);
d.setf("DragonLairLeader_"..ownPid.."", 1);
end
when DragonLair_time_out.server_timer begin
if (d.select(get_server_timer_arg())) then
d.notice("Camera de Cristal: Timpul a expirat, vei fi teleportat inafara Camerei de cristal.")
d.exit_all();
end
end
end
end



