Am adaugat questul acesta
Totul e bine pana cand inchei eventul...
Cand dau pe incheie event, jucatorii raman in mapa respectiva, nu sunt teleportati automat in map 1...
Aveti mai jos quests...
ABBC3_SPOILER_SHOW
quest labirintul_fantomei begin
state start begin
when 20358.chat."GM: Activeaza Labirintul Fantomei" with pc.is_gm() begin
say_title("Vrei sa activezi labirintul fantomei?")
say("")
local act = select("Da","Nu")
if act == 1 then
game.set_event_flag("labirint_active",1)
notice_all("Eventul Labirintul Fantomei este deschis!")
notice_all("Pentru a participa vorbeste cu Uriel.")
end
end
when 20358.chat."GM: Dezactiveaza Labirintul Fantomei" with pc.is_gm() begin
say_title("Vrei sa dezactivezi labirintul fantomei?")
say("")
local act = select("Da","Nu")
if act == 1 then
game.set_event_flag("labirint_active",0)
notice_all("Eventul Labirintul Fantomei a luat sfarsit!")
notice_all("Jucatorii si spectatorii vor fi teleportati acum!")
warp_all_to_village(41,5)
end
end
when 30121.chat."Ai castigat " with game.get_event_flag("labirint_active") == 1 begin
notice_all(""..pc.get_name().." a demonstrat inteligenta si a gasit fantoma. Grabestete si gaseste-o si tu !")
say_title( "Ai castigat!" )
say("Felicitari ai castigat, vei fi teleportat pentru premiu. ")
say_reward("Chiar vrei sa te teleportezi acolo?")
local s1=select("Teleporteaza-ma","Nu vreau")
if s1 == 1 then
pc.warp(578800, 692500)
else
return
end
end
when 20011.chat."Labirintul fantomei" with game.get_event_flag("labirint_active") == 1 begin
if pc.getqf("player") < 1 then
say_title("Intra ca jucator")
say("")
say("Vrei sa intri ca jucator?")
say("")
local answ = select("Da","Nu")
if answ == 1 then
if pc.get_empire() == 3 then
pc.warp(581500,703100)
elseif pc.get_empire() == 1 then
pc.warp(581500,703100)
else
pc.warp(581500,703100)
end
end
elseif pc.getqf("player") == 2 then
say_title("Intra ca spectator")
say("")
say("Vrei sa intri ca sectator")
say("")
local answ = select("Da","Nu")
if answ == 1 then
pc.warp(581500,703100)
end
end
end
when logout with pc.get_map_index() == 242 begin
pc.setqf("player",0)
end
end
end
state start begin
when 20358.chat."GM: Activeaza Labirintul Fantomei" with pc.is_gm() begin
say_title("Vrei sa activezi labirintul fantomei?")
say("")
local act = select("Da","Nu")
if act == 1 then
game.set_event_flag("labirint_active",1)
notice_all("Eventul Labirintul Fantomei este deschis!")
notice_all("Pentru a participa vorbeste cu Uriel.")
end
end
when 20358.chat."GM: Dezactiveaza Labirintul Fantomei" with pc.is_gm() begin
say_title("Vrei sa dezactivezi labirintul fantomei?")
say("")
local act = select("Da","Nu")
if act == 1 then
game.set_event_flag("labirint_active",0)
notice_all("Eventul Labirintul Fantomei a luat sfarsit!")
notice_all("Jucatorii si spectatorii vor fi teleportati acum!")
warp_all_to_village(41,5)
end
end
when 30121.chat."Ai castigat " with game.get_event_flag("labirint_active") == 1 begin
notice_all(""..pc.get_name().." a demonstrat inteligenta si a gasit fantoma. Grabestete si gaseste-o si tu !")
say_title( "Ai castigat!" )
say("Felicitari ai castigat, vei fi teleportat pentru premiu. ")
say_reward("Chiar vrei sa te teleportezi acolo?")
local s1=select("Teleporteaza-ma","Nu vreau")
if s1 == 1 then
pc.warp(578800, 692500)
else
return
end
end
when 20011.chat."Labirintul fantomei" with game.get_event_flag("labirint_active") == 1 begin
if pc.getqf("player") < 1 then
say_title("Intra ca jucator")
say("")
say("Vrei sa intri ca jucator?")
say("")
local answ = select("Da","Nu")
if answ == 1 then
if pc.get_empire() == 3 then
pc.warp(581500,703100)
elseif pc.get_empire() == 1 then
pc.warp(581500,703100)
else
pc.warp(581500,703100)
end
end
elseif pc.getqf("player") == 2 then
say_title("Intra ca spectator")
say("")
say("Vrei sa intri ca sectator")
say("")
local answ = select("Da","Nu")
if answ == 1 then
pc.warp(581500,703100)
end
end
end
when logout with pc.get_map_index() == 242 begin
pc.setqf("player",0)
end
end
end



