Cod: Selectaţi tot
-------------------------------
-- SERVERFILE BY rascu catalin 4 bestia
-------------------------------
quest oxevent_manager begin
state start begin
when letter with pc.get_map_index() == 113 begin
send_letter("Paraseste competitia OX")
end
when button or info begin
addimage(20, 12, "oxdigital.tga")
say("")
say("")
say("")
say("")
say_title("Paraseste competitia OX")
say("Esti sigur ca vrei sa parasesti competitia?")
say("")
local s=select("Da","Nu")
if s==2 then
send_letter("Paraseste competitia OX")
return
end
local empire = pc.get_empire()
if empire== 1 then
pc.warp(473900, 954600)
pc.remove_polymorph()
elseif empire == 2 then
pc.warp(63200, 166700)
pc.remove_polymorph()
elseif empire == 3 then
pc.warp(959600, 269700)
pc.remove_polymorph()
end
end
when 20011.chat."Competitia OX" begin
local min_minim_intrare = game.get_event_flag("ox_minute")
addimage(20, 12, "oxdigital.tga")
say("")
say("")
say("")
say("")
say_title("Uriel, învatatul:")
say("")
say("Hey, tu de acolo! Da, da tu - vino pâna aici!")
say("Hai sa iti arat ceva interesant.")
say("Competitia OX. Eu te pot duce acolo.")
say("Am auzit ca poti castiga premii interesante!")
say("")
wait()
if pc.get_playtime() <= min_minim_intrare then
addimage(20, 12, "oxdigital.tga")
say("")
say("")
say("")
say("")
say_title("Uriel, învatatul:")
say("")
say("Îmi pare rau, dar nu ai minute jucate")
say("necesare pentru participarea la acest ox.")
say("")
say_reward("Minute minime pentru participare: " ..min_minim_intrare.. "")
say("")
return
end
if game.get_event_flag("oxevent_status") == 0 then
addimage(20, 12, "oxdigital.tga")
say("")
say("")
say("")
say("")
say_title("Uriel, învatatul:")
say("")
say("Momentan nu am auzit ca se desfasoara nici")
say("o competitie. Te voi anunta eu când aflu ceva.")
say("")
elseif game.get_event_flag("oxevent_status") == 1 then
addimage(20, 12, "oxdigital.tga")
say("")
say("")
say("")
say("")
say_title("Uriel, învatatul:")
say("")
say("Doresti sa participi la competitie")
say("sau doar sa te uiti?")
say("")
local s = select( "Particip" , "Spectator", "Înapoi" )
if s == 1 then
addimage(20, 12, "oxdigital.tga")
say("")
say("")
say("")
say("")
say_title("Uriel, învatatul:")
say("")
say("Imediat te voi duce la competitie.")
say("Succes.")
say("")
horse.unride()
horse.unsummon()
wait()
local coordonate = number(1,3)
if coordonate == 1 then
pc.warp(896500, 24600)
elseif coordonate == 2 then
pc.warp(894202, 24451) -- coordonate noi
elseif coordonate == 3 then
pc.warp(898737, 24664) -- coordonate noi
end
pc.polymorph(34026, 3600)
elseif s == 2 then
addimage(20, 12, "oxdigital.tga")
say("")
say("")
say("")
say("")
say_title("Uriel, învatatul:")
say("")
say("Vrei sa fii doar spectator? Ok, alegerea ta.")
say("Imediat vei fi teleportat.")
say("")
horse.unride()
horse.unsummon()
wait()
pc.warp(896300, 28900)
end
elseif game.get_event_flag("oxevent_status") == 2 then
addimage(20, 12, "oxdigital.tga")
say("")
say("")
say("")
say("")
say_title("Uriel, învatatul:")
say("")
say("Îmi pare rau, dar competitia a început deja ...")
say("Dar, daca vrei, mai poti participa ca spectator.")
say("")
local s = select( "Particip" , "Înapoi")
if s == 1 then
say_title("Uriel, învatatul:")
say("")
say("Imediat vei fi teleportat.")
say("")
horse.unride()
horse.unsummon()
wait()
local coordonate = number(1,3)
if coordonate == 1 then
pc.warp(896500, 24600)
elseif coordonate == 2 then
pc.warp(894202, 24451) -- coordonate noi
elseif coordonate == 3 then
pc.warp(898737, 24664) -- coordonate noi
end
pc.polymorph(34026, 3600)
end
end
end
when 20358.chat."GM: Panou competitie OX" with pc.is_gm() begin
local stat = oxevent.get_status()
local min_minim_intrare = game.get_event_flag("ox_minute")
if stat == 0 then
say("Panou competitie OX")
say("")
say("Începe OX?")
say("")
local s = select( "Da" , "Nu")
if s==2 then return end
local v = oxevent.open()
if v == 0 then
say("Panou competitie OX")
say("")
say("Nu am putut încarca întrebarile.")
say("")
return
elseif v == 1 then
say( "Panou competitie OX" )
say("")
say("Competitia OX a început.")
say("")
notice_all("[SERVER]:Concursul OX si-a deschis portile.Am vorbit eu cu Uriel sa va lase aproape pe toti.")
notice_all("[SERVER]:Pentru a putea participa la acest ox trebui sa aveti " ..min_minim_intrare.. " min jucate.")
else
say("Error1")
return
end
elseif stat == 1 then
say( "Panou competitie OX" )
say("")
say("Portile sunt înca deschise.")
say("Jucatori intrati: "..oxevent.get_attender())
say("")
local s = select("Închide portile", "Înapoi")
if s == 1 then
notice_all("[SERVER]:Portile competitiei OX au fost închise. Mult noroc participantilor.")
oxevent.close()
end
elseif stat == 2 then
say("Panou competitie OX")
say("")
say("Ce doresti sa faci?")
local s = select("Adreseaza întrebare","Ofera un premiu participantilor","Închide competitia","Anuleaza competitia","Înapoi")
if s == 1 then
local v = oxevent.quiz(1, 30)
if v == 0 then
say("Panou competitie OX")
say("")
say("Eroare adresare întrebare.")
say("")
return
else
say("Panou competitie OX")
say("")
say("Întrebare adresata cu succes.")
say("")
return
end
elseif s == 2 then
say("Panou competitie OX")
say("")
say("Parola:")
say("")
local sname = input()
if sname == "catalin" then
say("Panou competitie OX")
say("")
say("Adauga obiect:")
say("")
local item_vnum = input()
say("Panou competitie OX")
say("")
say("Adauga numar articole:")
say("")
local item_count = input()
oxevent.give_item(item_vnum, item_count)
say("Panou competitie OX" )
say("")
say("Participantii au primit "..item_name(item_vnum))
say("")
end
elseif s == 3 then
oxevent.end_event()
notice_all("[SERVER]:Competitia OX a luat sfârsit.")
setskin(0)
elseif s == 4 then
say("Panou competitie OX")
say("")
say("Esti sigur ca vrei sa opresti competitia?")
say("")
local s = select("Da", "Nu")
if s == 1 then
oxevent.end_event_force()
end
elseif s == 5 then
return
end
elseif stat == 3 then
say("Panou competitie OX")
say("")
say("Momentan este o întrebare adresata.")
say("")
else
say("Panou competitie OX")
say("")
say("Eroare.")
say("")
return
end
end
end
end
cn modifica questul sa ma transforme in 101



daca te-am ajutat



