Tipologie server: PvM PvP
*Resursă folosită:
*ServerFiles utilizat: Argo
*Syserr:
Poză:
*Detalii suplimentare:
Cod: Selectaţi tot
quest dragon begin
state start begin
when 30121.chat."Templul Dragonului" begin
if get_time() > game.get_event_flag("Grotte_time") then
game.set_event_flag("Grotte_zugang",0)
end
if pc.is_gm() then
say_title(""..mob_name(30121).."")
wait()
pc.warp(843200, 1066900)
return
end
if pc.count_item("80041") >= 1 then
say_title(""..mob_name(30121).."")
wait()
return
end
if game.get_event_flag("Grotte_zugang") == 0 and pc.count_item(30179) < 3 then
say_title(""..mob_name(30121).."")
say("Tu n-ai "..item_name(30179).."")
say_item_vnum(30179)
say("Ai nevoie de 3 obiecte.")
return
end
if game.get_event_flag("Grotte_zugang") == 1 then
say_title(""..mob_name(30121).."")
pc.setqf("grotte_passworto", 078954687921)
if pc.getqf("abgabe") == 1 then
pc.setqf("abgabe",0)
say("In cateva momente vei fi teleportat...")
pc.setqf("erlaubt",1)
wait()
pc.warp(843200, 1066900)
return
end
say("Templul este deja rezervat sub protectia unei parole.")
say("Poti intra doar daca ti-a fost comunicata parola.")
local passwort = tonumber(input(""))
--pc.setqf("grotte_passworto", passwort)
if game.get_event_flag("Grotte_passwort") == passwort then
say_title(""..mob_name(30121).."")
say("Parola introdusa este corecta.")
if pc.count_item(30179) < 3 then
say_title(""..mob_name(30121).."")
say("Acces restrictionat, iti lipsesc cheile de intrare")
say_item_vnum(30179)
return
end
pc.remove_item("30179",3)
say("Poti intra...")
pc.setqf("erlaubt",1)
wait()
pc.warp(843200, 1066900)
elseif passi != pc.getqf("grotte_passworto") then
say_title(""..mob_name(30121).."")
say("Parola introdusa nu este corecta.")
return
end
end
if game.get_event_flag("Grotte_zugang") == 0 and pc.count_item(30179) >= 3 then
say_title(""..mob_name(30121).."")
local i = select("Vreau sa intru.", "Inchide")
if 1 == i then
say_title(""..mob_name(30121).."")
say("Alege o parola de acces.")
local passwort = tonumber(input(""))
if passwort and passwort <= 999999999 and pc.count_item(30179)>=1 then
game.set_event_flag("Grotte_zugang",1)
game.set_event_flag("Grotte_passwort",passwort)
local times = get_time() + 300 --Wartezeit
game.set_event_flag("Grotte_time", times)
say_title(""..mob_name(30121).."")
pc.setqf("abgabe",1)
say("Parola de acces este:")
chat("Parola de acces pentru Templul Dragonului este: "..passwort.."")
say_reward(""..passwort.."")
pc.remove_item("30179",3)
else
say_title(""..mob_name(30121).."")
say("Nu ai introdus o parola sau parola aleasa nu este")
say("alcatuita doar din cifre.")
end
end
end
end
when login with pc.get_map_index() == 207 begin
local sekunden = game.get_event_flag("Grotte_time") - get_time()
notice_in_map("Timp ramas: "..sekunden.." secunde")
timer("skipia_boss_goo", 5)
end
when skipia_boss_goo.timer begin
game.set_event_flag("Grotte_zugang",0)
d.new_jump_all(207, 8436, 10669)
d.setf("grotte_boss", 5)
end
when 2493.kill with pc.in_dungeon() and d.getf("grotte_boss") == 2 begin
d.setf("grotte_boss", 5)
notice_all("Grupul lui "..pc.get_name().." a reusit sa-l ucida pe Dragonul Albastru.")
d.notice("Impresionant, ati reusit sa invingeti Dragonul.")
d.notice("Aveti timp 60 de secunde sa strangeti tot.")
timer("skipia_boss_end", 60)
d.kill_all()
d.clear_regen()
end
when login with pc.in_dungeon() and d.getf("grotte_boss") == 2 begin
pc.set_warp_location(73 , 1825, 12207)
end
when login with pc.in_dungeon() and d.getf("grotte_boss") == 1 begin
timer("skipia_boss_end", 3600)
d.set_regen_file("data/dungeon/skia_boss.txt")
local t = number(1,4)
if 1 == t then
d.regen_file("data/dungeon/skia_boss1.txt")
elseif 2 == t then
d.regen_file("data/dungeon/skia_boss2.txt")
elseif 3 == t then
d.regen_file("data/dungeon/skia_boss3.txt")
else
d.regen_file("data/dungeon/skia_boss4.txt")
end
local o = number(1,4)
if 1 == o then
d.regen_file("data/dungeon/skia_boss1.txt")
elseif 2 == o then
d.regen_file("data/dungeon/skia_boss2.txt")
elseif 3 == o then
d.regen_file("data/dungeon/skia_boss3.txt")
else
d.regen_file("data/dungeon/skia_boss4.txt")
end
d.setf("grotte_boss", 2)
d.notice("Bine ati venit in Templul Dragonului, aveti maxim o ora la dispozitie sa-l invingeti pe dragon.")
d.setf("count", 0)
pc.set_warp_location(73 , 1825, 12207)
end
when login with pc.in_dungeon() and d.getf("grotte_boss") == 3 begin
pc.warp(181700, 1220600)
end
when skipia_boss_end.timer begin
d.exit_all()
end
when skipia_boss_ende.timer begin
kill_all_in_map(207)
game.set_event_flag("Grotte_zugang",0)
d.setf("grotte_boss", 1)
d.exit_all()
end
when login with pc.get_map_index() != 207 or not pc.in_dungeon() begin
pc.setqf("erlaubt",0)
end
end
end

