Tipologie server: 40k
*Resursă folosită: quest ox automat
*ServerFiles utilizat: clean
*Syserr:
Poză:
*Detalii suplimentare:
Cod: Selectaţi tot
quest auto_ox begin
state start begin
when 20086.chat."GM: Event Auto OX" with pc.is_gm() and pc.get_map_index() == 113 begin
addimage(20, 12, "admin.tga")
say("")
say("")
say("")
say_title("Login")
say_reward("Introduceti parola mai jos:")
local password = input ( )
if password == locale.parola then
say_title ( "Bun venit!" )
starta = select("Porneste OX Automat","Scire un anunt","Premii OX","Inchide")
if starta == 1 then
say( "Salut "..pc.get_name()..", Bine ai venit in panoul OX!" )
say ("")
say("Eventul OX va porni peste cateva secunde!")
say("")
say(" De aici poti contola eventul OX.")
say(" Poti alege cat timp sa fie portile deschise")
say("si poti alege cate intrebari sa contina aceasta")
say("runda de OX. ")
say("")
say(" Vrei sa mergi mai departe?")
start_event = select("DA","NU")
if start_event == 1 then
pc.setqf("time_wait", 0)
pc.setqf("questions", 0)
pc.setqf("questions_write", 0)
say_reward ("Alege timpul de asteptare:")
local time_wait = select ( "5 Minute" , "4 Minute" , "3 Minute" , "2 Minute " , "1 Minut", "30 de secunde", "Renunt")
if time_wait == 1 then
pc.setqf("time_wait", 300)
say_reward ("Alege numarul de intrebari maxime:")
local max_quiz = select ( "5" , "10" , "15" , "20" , "25", "Pana la final", "Renunt")
if max_quiz == 1 then
pc.setqf("questions", 5)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 2 then
pc.setqf("questions", 10)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 3 then
pc.setqf("questions", 15)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 4 then
pc.setqf("questions", 20)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 5 then
pc.setqf("questions", 25)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 6 then
pc.setqf("questions", 0)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
else
return
end
-- 5 Minute
elseif time_wait == 2 then
pc.setqf("time_wait", 240)
say_reward ("Alege numarul de intrebari maxime:")
local max_quiz = select ( "5" , "10" , "15" , "20" , "25", "Pana la final", "Renunt")
if max_quiz == 1 then
pc.setqf("questions", 5)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 2 then
pc.setqf("questions", 10)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 3 then
pc.setqf("questions", 15)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 4 then
pc.setqf("questions", 20)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 5 then
pc.setqf("questions", 25)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 6 then
pc.setqf("questions", 0)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
else
return
end
-- 4 Minute
elseif time_wait == 3 then
pc.setqf("time_wait", 180)
say_reward ("Alege numarul de intrebari maxime:")
local max_quiz = select ( "5" , "10" , "15" , "20" , "25", "Pana la final", "Renunt")
if max_quiz == 1 then
pc.setqf("questions", 5)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 2 then
pc.setqf("questions", 10)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 3 then
pc.setqf("questions", 15)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 4 then
pc.setqf("questions", 20)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 5 then
pc.setqf("questions", 25)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 6 then
pc.setqf("questions", 0)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
else
return
end
-- 3 Minute
elseif time_wait == 4 then
pc.setqf("time_wait", 120)
say_reward ("Alege numarul de intrebari maxime:")
local max_quiz = select ( "5" , "10" , "15" , "20" , "25", "Pana la final", "Renunt")
if max_quiz == 1 then
pc.setqf("questions", 5)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 2 then
pc.setqf("questions", 10)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 3 then
pc.setqf("questions", 15)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 4 then
pc.setqf("questions", 20)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 5 then
pc.setqf("questions", 25)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 6 then
pc.setqf("questions", 0)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
else
return
end
-- 2 Minute
elseif time_wait == 5 then
pc.setqf("time_wait", 60)
say_reward ("Alege numarul de intrebari maxime:")
local max_quiz = select ( "5" , "10" , "15" , "20" , "25", "Pana la final", "Renunt")
if max_quiz == 1 then
pc.setqf("questions", 5)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 2 then
pc.setqf("questions", 10)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 3 then
pc.setqf("questions", 15)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 4 then
pc.setqf("questions", 20)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 5 then
pc.setqf("questions", 25)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 6 then
pc.setqf("questions", 0)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
else
return
end
-- 1 Minut
elseif time_wait == 6 then
pc.setqf("time_wait", 30)
say_reward ("Alege numarul de intrebari maxime:")
local max_quiz = select ( "5" , "10" , "15" , "20" , "25", "Pana la final", "Renunt")
if max_quiz == 1 then
pc.setqf("questions", 5)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 2 then
pc.setqf("questions", 10)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 3 then
pc.setqf("questions", 15)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 4 then
pc.setqf("questions", 20)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 5 then
pc.setqf("questions", 25)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
elseif max_quiz == 6 then
pc.setqf("questions", 0)
say_title("Eventul OX")
say("")
say("Esti sigur ca vrei sa pornesti OX?")
local last_ans = select ( "Da" , "Nu")
if last_ans == 1 then
local v = oxevent . open ( )
if v == 1 then
notice_all ( "[!]OX: Concursul OX a inceput!" )
notice_all ( "[!]OX: Grabeste-te la Uriel pentru a putea participa." )
timer("start_ox", 5)
elseif v == 0 then
chat("Competitia este deja activata! ")
else
chat("A aparut o eroare... ")
end
else
return
end
else
return
end
-- 30 de secunde
else
return
end
else
return
end
end
if starta == 2 then
say_title("Anunt intre regate:")
say("Scrieti in casuta de mai jos anuntul dorit.")
local mesaj = input()
say("Scrieti in casuta de mai jos anuntul dorit.")
local mesaja = input()
say("Scrieti in casuta de mai jos anuntul dorit.")
local mesajb = input()
say("Scrieti in casuta de mai jos anuntul dorit.")
local mesajc = input()
if mesaj == "" then
say_title("Anunt intre regate:")
say("Nu ati introdus niciun mesaj.")
else
say_title("Anunt intre regate:")
say("[!]OX: "..mesaj..""..mesaja..""..mesajb..""..mesajc.."")
say("a fost postat in chatul principal.")
notice_all("[!]OX: "..mesaj..""..mesaja..""..mesajb..""..mesajc.."")
end
end
if starta == 3 then
say ( "Distribuie premiul Concursului OX" )
say ( "Scrie ID-ul obiectului care urmeaza sa fie distribuit." )
say ( "" )
local item_vnum = input ( )
say ( "Scrie cantitate de obiecte care urmeaza sa" )
say ( "fie distribuite." )
local item_count = input ( )
oxevent . give_item ( item_vnum , item_count )
say ( "Cantitate " .. oxevent . get_attender ( ) .. "a fost primita de participanti" )
say ( "" )
end
else
addimage(20, 12, "admin.tga")
say("")
say("")
say("")
say_title("Login")
say("")
say_reward("Ati introdus o parola gresita!")
end
end
when start_ox.timer begin -- ALEGE TIMPUL
if pc.getqf("time_wait") == 300 then
timer("time_wait_1",5)
elseif pc.getqf("time_wait") == 240 then
timer("time_wait_2",5)
elseif pc.getqf("time_wait") == 180 then
timer("time_wait_3",5)
elseif pc.getqf("time_wait") == 120 then
timer("time_wait_4",5)
elseif pc.getqf("time_wait") == 60 then
timer("time_wait_5",5)
else
timer("time_wait_6",5)
end
end
when time_wait_1.timer begin -- 5 Minute
notice_all("[!]OX: Se inchid portile OX-ului : 5 minute ramase.. ")
timer("time_wait_2",60)
end
when time_wait_2.timer begin -- 4 Minute
notice_all("[!]OX: Se inchid portile OX-ului : 4 minute ramase.. ")
timer("time_wait_3",60)
end
when time_wait_3.timer begin -- 3 Minute
notice_all("[!]OX: Se inchid portile OX-ului : 3 minute ramase.. ")
timer("time_wait_4",60)
end
when time_wait_4.timer begin -- 2 Minute
notice_all("[!]OX: Se inchid portile OX-ului : 2 minute ramase.. ")
timer("time_wait_5",60)
end
when time_wait_5.timer begin -- 1 Minut
notice_all("[!]OX: Se inchid portile OX-ului : Un minut ramas.. ")
timer("time_wait_6",30)
end
when time_wait_6.timer begin -- 30 de secunde
notice_all("[!]OX: Se inchid portile OX-ului : 30 de secunde ramase.. ")
timer("time_wait_end",30)
end
when time_wait_end.timer begin -- Verifica daca sunt jucatori.
notice_all("---------------------------------------------------------------------------------")
notice_all("[!]OX: Portile au fost inchise! ")
if(oxevent.get_attender() == 0) then
timer("ox_no_players",15)
else
timer("ox_start",15)
end
end
when ox_start.timer begin
pc.setqf("questions_write", pc.getqf("questions_write") + 1)
local v = oxevent . quiz ( 1 , 30 )
if v == 0 then
chat( "Eroare" )
elseif v == 1 then
timer("ox_evaluate",35)
else
chat( "Eroare" )
end
end
when ox_evaluate.timer begin
-- LISTA CU PREMII
local participare = { 27987, 27992, 27993, 27994, 30188, 30251, 30252, 30253, 25041, 70031, 85005, 80003, 30193, 18900, 70251, 70252, 70253, 70254, 30192, 30193, 30194, 30195, 30196, 30197, 30198, 30199, 30203, 70030, 70032, 70033, }
local part_count = { 50, 15, 15, 15, 15, 15, 15, 15, 15, 5, 1, 1, 15, 1, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 5, 5, 5}
local num_partic = number(1, 30)
local castigator = { 85001, 85005, 18049, 14209, 16219, 17219, 30188, 70024, 80004, 30251, 30252, 30253, 25041, 27992, 27993, 27994, 45143, 85004, 85008, 85009, }
local cast_count = { 1, 1, 1, 1, 1, 1, 100, 50, 1, 100, 100, 100, 20, 50, 50, 50, 1, 1, 1, 1, }
local num_cast = number(1, 20)
-- END LISTA CU PREMII
if oxevent.get_attender() == 1 then
oxevent . give_item (castigator[num_cast], cast_count[num_cast])
timer("ox_only_win",10)
elseif oxevent.get_attender() > 1 then
oxevent . give_item (participare[num_partic], part_count[num_partic])
if pc.getqf("questions") == 0 then
timer("ox_start",10)
elseif pc.getqf("questions_write") < pc.getqf("questions") then
timer("ox_start",10)
else
timer("ox_multiple_win",10)
end
else
timer("ox_no_win",15)
end
end
when ox_multiple_win.timer begin -- Mai multi castigatori
notice_all("---------------------------------------------------------------------------------")
notice_all("[!]OX: Se pare ca avem mai multi castigatori! Acestia au primit premii pe masura.")
notice_all("[!]OX: Eventul ox va lua sfarsit. ")
timer("ox_end",30)
end
when ox_only_win.timer begin -- Un singur castigator
notice_all("---------------------------------------------------------------------------------")
notice_all("[!]OX: A mai ramas un singur jucator in arena OX. Acesta a castigat!")
notice_all("[!]OX: Eventul ox va lua sfarsit. ")
timer("ox_end",30)
end
when ox_no_win.timer begin -- Nu exista castigatori
notice_all("---------------------------------------------------------------------------------")
notice_all("[!]OX: Nu este nici un castigator al competitiei OX!")
notice_all("[!]OX: Eventul ox va lua sfarsit. ")
timer("ox_end",15)
end
when ox_no_players.timer begin -- Nu sunt jucatori
notice_all("---------------------------------------------------------------------------------")
notice_all("[!]OX: Se pare ca nu au intrat jucatori in arena OX!")
notice_all("[!]OX: Eventul ox va lua sfarsit. ")
timer("ox_end",15)
end
when ox_end.timer begin -- END EVENT OX
oxevent . end_event ( )
end
end
end

