Tipologie server:
*Resursă folosită:
*ServerFiles utilizat:Eris2
*Syserr:
Poză: https://prnt.sc/SyrNkofy0Qcv
*Detalii suplimentare: Cand intru sunt metinele acolo si dragonul si playeri sparg metinele si ii scoate cum fac sa ramana pietrele si dupa dragonul? Si prima data era doar primele 2 si dupa am mai adaugat 2 quest uri pentru dragon dar le-am sters din filezilla si tot au ramas acolo, daca poate cineva sa ma ajute
https://prnt.sc/RTPqPOAoYiaT sa sterg rezolvarea asta de matematica
Am rezolvat numai apar si celelalte dar prima problema inca nu am rezolvat-o sa numai ii scoata pe playeri sa numai fie metinele si dragonul odata
quest
Cod: Selectaţi tot
quest dragonlair begin
state start begin
when logout with pc.get_map_index() == 207 begin
pc.delqf("icerdesin_1_")
pc.delqf("icerdesin_2_")
pc.delqf("ejder_sifre")
pc.delqf("lider")
pc.delqf("ejder_bug_engel333")
pc.delqf("ejder_bug_engel33")
pc.delqf("ejder_bug_engel3")
pc.delqf("ejder_bug_engel2")
pc.delqf("ejder_sifre_kontrol")
pc.warp(180100, 1220400)
end
when login with pc.get_map_index() != 207 begin
if pc.getqf("icerdesin_1_") == 1 or pc.getqf("icerdesin_2_") == 1 or pc.getqf("lider") == 1 then
pc.delqf("icerdesin_1_")
pc.delqf("icerdesin_2_")
pc.delqf("ejder_sifre")
pc.delqf("lider")
pc.delqf("ejder_bug_engel333")
pc.delqf("ejder_bug_engel33")
pc.delqf("ejder_bug_engel3")
pc.delqf("ejder_bug_engel2")
pc.delqf("ejder_sifre_kontrol")
end
end
function arti(tip)
if tip == 1 then
addimage(80, 55, "arti.tga")
end
end
function eksi(tip)
if tip == 1 then
addimage(80, 59, "eksi.tga")
end
end
function carpi(tip)
if tip == 1 then
addimage(80, 55, "carpi.tga")
end
end
function artisayi3(tip)
if tip == 1 then
addimage(115, 55, "arti.tga")
end
end
function eksisayi3(tip)
if tip == 1 then
addimage(117, 59, "eksi.tga")
end
end
function carpisayi3(tip)
if tip == 1 then
addimage(112, 55, "carpi.tga")
end
end
function artisayi4(tip)
if tip == 1 then
addimage(150, 55, "arti.tga")
end
end
function eksisayi4(tip)
if tip == 1 then
addimage(152, 59, "eksi.tga")
end
end
function carpisayi4(tip)
if tip == 1 then
addimage(150, 55, "carpi.tga")
end
end
function arkaplan(tip)
if tip == 1 then
addimage(70, 45, "arkaplan.tga")
end
end
function cizgi(tip)
if tip == 1 then
addimage(70, 45, "cizgi.tga")
end
end
function resim(tip)
if tip == 1 then
addimage(70, 50, "1.tga")
elseif tip == 2 then
addimage(70, 50, "2.tga")
elseif tip == 3 then
addimage(70, 50, "3.tga")
end
end
function resim2(tip)
if tip == 1 then
addimage(90, 50, "1.tga")
elseif tip == 2 then
addimage(90, 50, "2.tga")
elseif tip == 3 then
addimage(90, 50, "3.tga")
end
end
function resim3(tip)
if tip == 1 then
addimage(105, 50, "1.tga")
elseif tip == 2 then
addimage(105, 50, "2.tga")
elseif tip == 3 then
addimage(105, 50, "3.tga")
end
end
function resim4(tip)
if tip == 1 then
addimage(125, 50, "1.tga")
elseif tip == 2 then
addimage(125, 50, "2.tga")
elseif tip == 3 then
addimage(125, 50, "3.tga")
end
end
function resim5(tip)
if tip == 1 then
addimage(140, 50, "1.tga")
elseif tip == 2 then
addimage(140, 50, "2.tga")
elseif tip == 3 then
addimage(140, 50, "3.tga")
end
end
function resim6(tip)
if tip == 1 then
addimage(160, 50, "1.tga")
elseif tip == 2 then
addimage(160, 50, "2.tga")
elseif tip == 3 then
addimage(160, 50, "3.tga")
end
end
when 30121.chat."Vreau sa ucid Dragonul!" with pc.get_map_index() == 73 begin
if pc.get_level() < 80 then
say_title("Spiritul Sura:")
say("Trebuie sa ai nivel 80 pentru a putea intra in camera dragonului.")
return
end
if game.get_event_flag("ejder_kullanimda_"..pc.get_channel_id().."_") == 0 and pc.count_item(30179) < 3 then
say_title("Spiritul Sura:")
say("Obiect necesar: 3x "..item_name(30179)..":")
say_item_vnum(30179)
say("Ai nevoie de 3x Chei Rasucite.")
return
end
if game.get_event_flag("time_1_"..pc.get_channel_id().."_") - get_time() < 0 and game.get_event_flag("ejder_kullanimda_"..pc.get_channel_id().."_") >= 1 then
game.set_event_flag("ejder_kullanimda_"..pc.get_channel_id().."_",0)
purge_area(829200,1059600,844200,1074600)
warp_all_to_village(207,1)
setskin(NOWINDOW)
return
end
if game.get_event_flag("ejder_kullanimda_"..pc.get_channel_id().."_") == 1 then
pc.setqf("ejder_bug_engel2",get_time()+10)
say_title("Spiritul Sura:")
say("Imi pare rau, camera dragonului este deja ocupata.")
say("Daca stii codul poti intra.")
say("")
say_reward("Ai 10 secunde la dispozitie ca sa gasesti codul.")
local saniyekalan = (game.get_event_flag("time_1_"..pc.get_channel_id().."_") - get_time())
local dakikakalan = math.ceil(saniyekalan / 60)
say("")
say("Dragonul se va intoarce in "..dakikakalan.." 60 minute.")
local sifre = tonumber(input(""))
if get_time() > pc.getqf("ejder_bug_engel2") then
say_title("Spiritul Sura:")
say("Incearca sa gasesti codul din nou.[ENTER]Ai la dispozitie 10 secunde.")
pc.setqf("ejder_bug_engel2",get_time()+0)
return
end
if game.get_event_flag("ejder_sifresi_"..pc.get_channel_id().."_") == sifre then
say_title("Spiritul Sura:")
say("")
if pc.count_item(30179) < 3 then
say("Nu te pot lasa sa intri.")
say("Obiect necesar: 3x "..item_name(30179)..":")
say_item_vnum(30179)
say("Intoarce-te cand ai cele 3 chei.")
return
end
pc.remove_item("30179",3)
pc.setqf("ejder_sifre_kontrol",sifre)
say("Felicitari![ENTER]Ai introdus parola corecta!")
say("Imediat vei fi teleportat.")
say("")
say("Ai timp de "..dakikakalan.." minute[ENTER]pentru a ucide dragonul.")
say("Daca nu reusiti sa-l omorati,[ENTER]grupul va fi teleportat din camera.")
pc.setqf("icerdesin_"..pc.get_channel_id().."_",1)
pc.setqf("ejder_bug_engel33",get_time()+10)
wait()
if get_time() > pc.getqf("ejder_bug_engel33") then
say_title("Spiritul Sura:")
say("Incearca din nou, ai 10 secunde la dispozitie.")
pc.setqf("ejder_bug_engel33",get_time()+0)
return
end
pc.warp(843600,1066900)
elseif sifre != game.get_event_flag("ejder_sifresi_"..pc.get_channel_id().."_") then
say_title("Spiritul Sura:")
say("Imi pare rau, ai introdus o parola gresita.")
return
end
end
if game.get_event_flag("ejder_kullanimda_"..pc.get_channel_id().."_") == 0 and pc.get_channel_id() == 1 and pc.count_item(30179) >= 3 then
say_title("(CH1) Spiritul Sura:")
say("Esti prima persoana care vrea sa intre[ENTER]in templul dragonului. Ai toate cheile,")
say("dar mai intai trebuie sa setezi o parola.")
say("Parola poti sa o distribui si prietenilor tai")
say("pentru a avea acces in aceasta camera.")
say("Atentie! Parola va fi valabila doar 30 minute.")
say("")
pc.setqf("ejder_bug_engel3",get_time()+10)
local hikmet = dragonlair.hazirim()
if get_time() > pc.getqf("ejder_bug_engel3") then
say_title("Spiritul Sura:")
say("Incearca din nou, ai la dispozitie 10 secunde.")
pc.setqf("ejder_bug_engel3",get_time()+0)
return
end
if hikmet == true and game.get_event_flag("ejder_kullanimda_"..pc.get_channel_id().."_") == 0 then
pc.setqf("ejder_bug_engel2",get_time()+10)
say_title("Spiritul Sura:")
say_size(350,350)
say("")
say("")
dragonlair.arkaplan(1)
local islem1 = number(1,3)
local islem2 = number(1,3)
local islem3 = number(1,3)
local sayi1 = math.random(1,3)
if sayi1 == 1 then
dragonlair.resim(1)
elseif sayi1 == 2 then
dragonlair.resim(2)
elseif sayi1 == 3 then
dragonlair.resim(3)
end
local sayi2 = math.random(1,3)
if sayi2 == 1 then
dragonlair.resim2(1)
elseif sayi2 == 2 then
dragonlair.resim2(2)
elseif sayi2 == 3 then
dragonlair.resim2(3)
end
local sayi3 = math.random(1,3)
if sayi3 == 1 then
dragonlair.resim3(1)
elseif sayi3 == 2 then
dragonlair.resim3(2)
elseif sayi3 == 3 then
dragonlair.resim3(3)
end
local sayi4 = math.random(1,3)
if sayi4 == 1 then
dragonlair.resim4(1)
elseif sayi4 == 2 then
dragonlair.resim4(2)
elseif sayi4 == 3 then
dragonlair.resim4(3)
end
local sayi5 = math.random(1,3)
if sayi5 == 1 then
dragonlair.resim5(1)
elseif sayi5 == 2 then
dragonlair.resim5(2)
elseif sayi5 == 3 then
dragonlair.resim5(3)
end
local sayi6 = math.random(1,3)
if sayi6 == 1 then
dragonlair.resim6(1)
elseif sayi6 == 2 then
dragonlair.resim6(2)
elseif sayi6 == 3 then
dragonlair.resim6(3)
end
local s1,s2,s3,pinn
if islem1 == 1 then
local arti = dragonlair.arti(1)
s1 = sayi1+sayi2
elseif islem1 == 2 then
local arti = dragonlair.arti(1)
s1 = sayi1+sayi2
elseif islem1 == 3 then
local carpi = dragonlair.carpi(1)
s1 = sayi1*sayi2
end
if islem2 == 1 then
local arti = dragonlair.artisayi3(1)
s2 = sayi3+sayi4
elseif islem2 == 2 then
local arti = dragonlair.artisayi3(1)
s2 = sayi3+sayi4
elseif islem2 == 3 then
local carpi = dragonlair.carpisayi3(1)
s2 = sayi3*sayi4
end
if islem3 == 1 then
local arti = dragonlair.artisayi4(1)
s3 = sayi5+sayi6
elseif islem3 == 2 then
local carpi = dragonlair.carpisayi4(1)
s3 = sayi5*sayi6
elseif islem3 == 3 then
local carpi = dragonlair.carpisayi4(1)
s3 = sayi5*sayi6
end
pinn = ""..s1..""..s2..""..s3..""
local pin1 = number(100,999)
local pin2 = number(100,999)
local pin3 = number(100,999)
local pin4 = number(100,999)
local pin5 = number(100,999)
local pin6 = number(100,999)
local gercek = number(2,7)
if gercek == 2 then
pin1 = pinn
elseif gercek == 3 then
pin2 = pinn
elseif gercek == 4 then
pin3 = pinn
elseif gercek == 5 then
pin4 = pinn
elseif gercek == 6 then
pin5 = pinn
elseif gercek == 7 then
pin6 = pinn
end
local cizgi = dragonlair.cizgi(1)
say("Ai 10 secunde la dispozitie.")
pc.setqf("ejder_bug_engel333",get_time()+2)
say_reward("[DELAY value;50] [/DELAY]")
local sifre = select("Vazgeç ",pin1,pin2,pin3,pin4,pin5,pin6)
if sifre == 8 or sifre != gercek and sifre != 2 and sifre != 3 and sifre != 2 and sifre != 4 and sifre != 5 and sifre != 6 and sifre != 7 then
return
end
if get_time() > pc.getqf("ejder_bug_engel2") then
say_title("Spiritul Sura:")
say("Incearca din nou, ai la dispozitie 10 secunde.")
pc.setqf("ejder_bug_engel2",get_time()+0)
return
end
if get_time() < pc.getqf("ejder_bug_engel333") then
say_title("Spiritul Sura:")
say("Ce-i cu graba asta? Ti-am dat noile coduri.")
say("Calculeaza si selecteaza parola corecta.")
pc.setqf("ejder_bug_engel333",get_time()+0)
return
end
if sifre == gercek and pc.count_item(30179)>=3 then
say_title("Spiritul Sura:")
say("")
say("Te pot duce direct in camera dragonului.")
say("Acum trebuie sa-mi dai:")
say("3x:")
say_item_vnum(30179)
say_reward("Ai 10 secunde la dispozitie.")
say("")
pc.setqf("ejder_bug_engel3",get_time()+10)
local zaxd = dragonlair.alvebirak()
if get_time() > pc.getqf("ejder_bug_engel3") then
say_title("Spiritul Sura:")
say("Incearca din nou, ai la dispozitie 10 secunde.")
pc.setqf("ejder_bug_engel3",get_time()+0)
return
end
if zaxd == false then
return
elseif zaxd == true and game.get_event_flag("ejder_kullanimda_"..pc.get_channel_id().."_") == 0 then
if game.get_event_flag("ejder_kullanimda_"..pc.get_channel_id().."_") != 0 then
syschat("Un alt grup intra in camera dragonului.")
return
end
--if pc.is_busy() then
--return
--else
pc.remove_item("30179",3)
pc.setqf("icerdesin_"..pc.get_channel_id().."_",1)
pc.setqf("lider",1)
pc.setqf("ejder_sifre",pinn)
clear_server_timer("sure_bitti_"..pc.get_channel_id().."_",get_server_timer_arg())
clear_server_timer("geri_dondu_"..pc.get_channel_id().."_",get_server_timer_arg())
game.set_event_flag("ejder_kullanimda_"..pc.get_channel_id().."_",1)
game.set_event_flag("ejder_lonca_"..pc.get_channel_id().."_",pc.get_player_id())
game.set_event_flag("ejder_sifresi_"..pc.get_channel_id().."_",pinn)
game.set_event_flag("time_1_"..pc.get_channel_id().."_", get_time()+30*60*1)
pc.warp(843600, 1066900)
--end
elseif zaxd == true and game.get_event_flag("ejder_kullanimda_"..pc.get_channel_id().."_") != 0 then
say_title("Spiritul Sura:")
say("Cineva a actionat inaintea ta.")
say("Asteapta sa paraseasca camera sau")
say("poti sa le ceri parola de acces.")
end
elseif sifre != gercek then
say_title("Spiritul Sura:")
say("")
say("Gresit!")
else
say_title("Spiritul Sura:")
say("")
say("A aparut o eroare.")
say("")
end
end
end
if game.get_event_flag("ejder_kullanimda_"..pc.get_channel_id().."_") == 0 and pc.get_channel_id() == 2 and pc.count_item(30179) >= 3 then
say_title("(CH2) Spiritul Sura:")
say("Esti prima persoana care vrea sa intre[ENTER]in templul dragonului. Ai toate cheile,")
say("dar mai intai trebuie sa setezi o parola.")
say("Parola poti sa o distribui si prietenilor tai")
say("pentru a avea acces in aceasta camera.")
say("Atentie! Parola va fi valabila doar 30 minute.")
say("")
pc.setqf("ejder_bug_engel3",get_time()+10)
local hikmet = dragonlair.hazirim()
if get_time() > pc.getqf("ejder_bug_engel3") then
say_title("Spiritul Sura:")
say("Incearca din nou, ai la dispozitie 10 secunde.")
pc.setqf("ejder_bug_engel3",get_time()+0)
return
end
if hikmet == true and game.get_event_flag("ejder_kullanimda_"..pc.get_channel_id().."_") == 0 then
pc.setqf("ejder_bug_engel2",get_time()+10)
say_title("Spiritul Sura:")
say("")
say("")
say("")
dragonlair.arkaplan(1)
local islem1 = number(1,3)
local islem2 = number(1,3)
local islem3 = number(1,3)
local sayi1 = math.random(1,3)
if sayi1 == 1 then
dragonlair.resim(1)
elseif sayi1 == 2 then
dragonlair.resim(2)
elseif sayi1 == 3 then
dragonlair.resim(3)
end
local sayi2 = math.random(1,3)
if sayi2 == 1 then
dragonlair.resim2(1)
elseif sayi2 == 2 then
dragonlair.resim2(2)
elseif sayi2 == 3 then
dragonlair.resim2(3)
end
local sayi3 = math.random(1,3)
if sayi3 == 1 then
dragonlair.resim3(1)
elseif sayi3 == 2 then
dragonlair.resim3(2)
elseif sayi3 == 3 then
dragonlair.resim3(3)
end
local sayi4 = math.random(1,3)
if sayi4 == 1 then
dragonlair.resim4(1)
elseif sayi4 == 2 then
dragonlair.resim4(2)
elseif sayi4 == 3 then
dragonlair.resim4(3)
end
local sayi5 = math.random(1,3)
if sayi5 == 1 then
dragonlair.resim5(1)
elseif sayi5 == 2 then
dragonlair.resim5(2)
elseif sayi5 == 3 then
dragonlair.resim5(3)
end
local sayi6 = math.random(1,3)
if sayi6 == 1 then
dragonlair.resim6(1)
elseif sayi6 == 2 then
dragonlair.resim6(2)
elseif sayi6 == 3 then
dragonlair.resim6(3)
end
local s1,s2,s3,pinn
if islem1 == 1 then
local arti = dragonlair.arti(1)
s1 = sayi1+sayi2
elseif islem1 == 2 then
local arti = dragonlair.arti(1)
s1 = sayi1+sayi2
elseif islem1 == 3 then
local carpi = dragonlair.carpi(1)
s1 = sayi1*sayi2
end
if islem2 == 1 then
local arti = dragonlair.artisayi3(1)
s2 = sayi3+sayi4
elseif islem2 == 2 then
local arti = dragonlair.artisayi3(1)
s2 = sayi3+sayi4
elseif islem2 == 3 then
local carpi = dragonlair.carpisayi3(1)
s2 = sayi3*sayi4
end
if islem3 == 1 then
local arti = dragonlair.artisayi4(1)
s3 = sayi5+sayi6
elseif islem3 == 2 then
local carpi = dragonlair.carpisayi4(1)
s3 = sayi5*sayi6
elseif islem3 == 3 then
local carpi = dragonlair.carpisayi4(1)
s3 = sayi5*sayi6
end
pinn = tonumber(s1..""..s2..""..s3)
local cizgi = dragonlair.cizgi(1)
say("Ai 10 secunde la dispozitie.")
local sifre = tonumber(input())
if sifre < 100 or sifre > 999 or sifre == nil then
say_title("Spiritul Sura:")
say("Introduceti parola din 3 cifre.")
return
end
if get_time() > pc.getqf("ejder_bug_engel2") then
say_title("Spiritul Sura:")
say("Incearca din nou, ai 15 sec la dispozitie.")
pc.setqf("ejder_bug_engel2",get_time()+0)
return
end
if sifre == pinn and pc.count_item(30179)>=3 then
say_title("Spiritul Sura:")
say("")
say("Te pot duce direct in camera dragonului.")
say("Acum trebuie sa-mi dai:")
say("3x:")
say_item_vnum(30179)
say("Ai 15 secunde la dispozitie.")
say("")
pc.setqf("ejder_bug_engel3",get_time()+15)
local zaxd = dragonlair.alvebirak()
if get_time() > pc.getqf("ejder_bug_engel3") then
say_title("Spiritul Sura:")
say("Incearca din nou, ai la dispozitie 10 secunde.")
pc.setqf("ejder_bug_engel3",get_time()+0)
return
end
if zaxd == false then
return
elseif zaxd == true and game.get_event_flag("ejder_kullanimda_"..pc.get_channel_id().."_") == 0 then
if game.get_event_flag("ejder_kullanimda_"..pc.get_channel_id().."_") != 0 then
syschat("Un alt grup intra in camera dragonului.")
return
end
--if pc.is_busy() then
--return
--else
pc.remove_item("30179",3)
pc.setqf("icerdesin_"..pc.get_channel_id().."_",1)
pc.setqf("lider",1)
pc.setqf("ejder_sifre",pinn)
clear_server_timer("sure_bitti_"..pc.get_channel_id().."_",get_server_timer_arg())
clear_server_timer("geri_dondu_"..pc.get_channel_id().."_",get_server_timer_arg())
game.set_event_flag("ejder_kullanimda_"..pc.get_channel_id().."_",1)
game.set_event_flag("ejder_lonca_"..pc.get_channel_id().."_",pc.get_player_id())
game.set_event_flag("ejder_sifresi_"..pc.get_channel_id().."_",pinn)
game.set_event_flag("time_1_"..pc.get_channel_id().."_", get_time()+30*60*1)
pc.warp(843600, 1066900)
--end
elseif zaxd == true and game.get_event_flag("ejder_kullanimda_"..pc.get_channel_id().."_") != 0 then
say_title("Spiritul Sura:")
say("Cineva a actionat inaintea ta.")
say("Asteapta sa paraseasca camera sau")
say("poti sa le ceri parola de acces.")
end
else
say_title("Spiritul Sura:")
say("Ai tastat gresit parola!")
end
end
end
end
function hazirim()
local numara = number(1,2)
if numara == 1 then
local s = select("Sunt gata ","Anuleaza ","Anuleaza ")
if s == 1 then
return true
elseif s == 2 then
return false
elseif s == 3 then
return false
end
elseif numara == 2 then
local s = select("Anuleaza ","Sunt gata ","Anuleaza ")
if s == 1 then
return false
elseif s == 2 then
return true
elseif s == 3 then
return false
end
end
end
function alvebirak()
local numara = number(1,3)
if numara == 1 then
local s = select("Lasa-ma sa intru ","Anuleaza ","Anuleaza ")
if s == 1 then
return true
else
return false
end
elseif numara == 2 then
local s = select("Anuleaza ","Lasa-ma sa intru ","Anuleaza ")
if s == 2 then
return true
else
return false
end
elseif numara == 3 then
local s = select("Anuleaza ","Anuleaza ","Lasa-ma sa intru ")
if s == 3 then
return true
else
return false
end
end
end
when login begin
if pc.getqf("icerdesin_"..pc.get_channel_id().."_") == 1 then
send_letter("Camera dragonului")
end
end
when button or info begin
q.set_clock("Timp ramas:", game.get_event_flag("time_1_"..pc.get_channel_id().."_")-get_time())
dragonlair.ejder_odasi_kalansure()
end
when login with pc.get_map_index() == 207 and pc.getqf("icerdesin_"..pc.get_channel_id().."_") != 1 begin
warp_to_village()
end
when login with pc.get_map_index() == 207 and pc.getqf("lider") == 1 begin
local lonca = game.get_event_flag("ejder_lonca_"..pc.get_channel_id().."_")
local id = pc.get_player_id()
if lonca != id then
pc.delqf("icerdesin_1_")
pc.delqf("icerdesin_2_")
pc.delqf("ejder_sifre")
pc.delqf("lider")
pc.delqf("ejder_bug_engel333")
pc.delqf("ejder_bug_engel33")
pc.delqf("ejder_bug_engel3")
pc.delqf("ejder_bug_engel2")
pc.delqf("ejder_sifre_kontrol")
-- syschat("Þifre sende olmadýðý için Sura Ruhu giriþine atýldýn!")
pc.give_item2(30179,3)
pc.warp(180100,1220400)
return
end
purge_area(829200,1059600,844200,1074600)
regen_in_map(207,"data/dungeon/skia_deliboss.txt")
notice_all("|cff00ff00CH"..pc.get_channel_id()..": Grupul lui "..pc.get_name().." incearca sa ucida Dragonul Albastru.")
notice("Codul de acces "..pc.getqf("ejder_sifre").." va fi sters in 30 minute!")
server_timer("sure_bitti_"..pc.get_channel_id().."_", 1800,pc.get_map_index())
dragonlair.ejder_odasi_kalansure()
pc.setqf("lider",2)
pc.set_warp_location(73 , 1801, 12204)
end
when login with pc.get_map_index() == 207 and pc.getqf("icerdesin_"..pc.get_channel_id().."_") == 1 and pc.getqf("lider") != 1 begin
if pc.getqf("ejder_sifre_kontrol") != game.get_event_flag("ejder_sifresi_"..pc.get_channel_id().."_") then
warp_to_village()
end
dragonlair.ejder_odasi_kalansure()
pc.set_warp_location(73 , 1801, 12204)
end
when kill with pc.get_map_index() == 207 and npc.get_race() == 8031 or npc.get_race() == 8032 or npc.get_race() == 8033 or npc.get_race() == 8034 begin
local n =game.get_event_flag("kesilen_metin_"..pc.get_channel_id().."_") + 1
game.set_event_flag("kesilen_metin_"..pc.get_channel_id().."_", n)
if n > 3 then
local t = number(1,4)
if 1 == t then
regen_in_map(207,"data/dungeon/skia_boss1.txt")
elseif 2 == t then
regen_in_map(207,"data/dungeon/skia_boss2.txt")
elseif 3 == t then
regen_in_map(207,"data/dungeon/skia_boss3.txt")
else
regen_in_map(207,"data/dungeon/skia_boss4.txt")
end
end
end
when kill with pc.get_map_index() == 207 and game.get_event_flag("ejder_kullanimda_"..pc.get_channel_id().."_") >= 1 and npc.get_race() == 2493 begin
game.drop_item_with_ownership("71123",1)
game.drop_item_with_ownership("71129",1)
local drop_chance = number(1,10)
if drop_chance == 5 then
game.drop_item_with_ownership("71129",1)
end
notice_all("|cff00ff00CH"..pc.get_channel_id()..": Grupul lui "..pc.get_name().." a omorat Dragonul Albastru!")
game.set_event_flag("kesilen_metin_"..pc.get_channel_id().."_",0)
clear_server_timer("sure_bitti_"..pc.get_channel_id().."_",get_server_timer_arg())
server_timer("geri_dondu_"..pc.get_channel_id().."_",60*1, pc.get_map_index())
game.set_event_flag("ejder_sifresi_"..pc.get_channel_id().."_",number(9999,99999))
end
when geri_dondu_1_.server_timer begin
notice_all("|cff00ff00CH"..pc.get_channel_id()..": Dragonul albastru sa intors!")
purge_area(829200,1059600,844200,1074600)
clear_server_timer("sure_bitti_"..pc.get_channel_id().."_",get_server_timer_arg())
game.set_event_flag("ejder_kullanimda_"..pc.get_channel_id().."_",0)
forked.warp_all_in_map("207","73","184500","1220700",1)
end
when geri_dondu_2_.server_timer begin
notice_all("|cff00ff00CH"..pc.get_channel_id()..": Dragonul albastru sa intors!")
purge_area(829200,1059600,844200,1074600)
clear_server_timer("sure_bitti_"..pc.get_channel_id().."_",get_server_timer_arg())
game.set_event_flag("ejder_kullanimda_"..pc.get_channel_id().."_",0)
forked.warp_all_in_map("207","73","184500","1220700",1)
end
when sure_bitti_1_.server_timer with game.get_event_flag("time_1_1_") - get_time() <= 0 begin
notice_all("|cff00ff00CH"..pc.get_channel_id()..": Dragonul albastru sa intors!")
purge_area(829200,1059600,844200,1074600)
forked.warp_all_in_map("207","73","184500","1220700",1)
end
when sure_bitti_2_.server_timer with game.get_event_flag("time_1_2_") - get_time() <= 0 begin
notice_all("|cff00ff00CH"..pc.get_channel_id()..": Dragonul albastru sa intors!")
purge_area(829200,1059600,844200,1074600)
forked.warp_all_in_map("207","73","184500","1220700",1)
end
when 30121.chat."Resetati timpul" with pc.is_gm() begin
say_title("Sura Ruhu;")
say("Sigur doresti sa resetezi timpul?")
local cyvercha = select("Da","Nu")
if cyvercha == 2 then
return
elseif cyvercha == 1 then
notice_all("|cff00ff00CH "..pc.get_channel_id()..": durata de intoarcere al Dragonului Albastru a fost resetata!")
game.set_event_flag("time_1_"..pc.get_channel_id().."",get_time() + 600)
clear_server_timer("sure_bitti_"..pc.get_channel_id().."",get_server_timer_arg())
server_timer("geri_dondu_"..pc.get_channel_id().."_",60*1, pc.get_map_index())
forked.warp_all_in_map("207","73","180100","1220400",295)
end
end
function ejder_odasi_kalansure()
local saniyekalan = (game.get_event_flag("time_1_"..pc.get_channel_id().."_") - get_time())
local dakikakalan = math.ceil(saniyekalan / 60)
notice("Aveti "..dakikakalan.." de minute pentru a ucide dragonul.")
end
end
end