Stiti o rezolvare? Am vazut ca cineva a spus "aveam un . in loc de , acum rezolvat"
Unde e punctul sau virgula aia ?
- quest oxevent_manager begin
state start begin
when login with pc.get_map_index() == 113 begin
say("")
say("")
say("")
say("")
say_title("Competitia OX")
say("")
say("Aici se adunã cele mai strãlucite minti din cele")
say("trei regate pentru concursul de inteligentã.")
say("În timpul acestui test, mai multe întrebari cu")
say("privire la orice subiect va fi afisate.")
say("Deplasati-vã la O, dacã credeti cã raspunsul,")
say("este adevãrat iar dacã este fals la X.")
say("Doar cei mai buni vor fi premiati!")
say("")
end
when letter with pc.get_map_index() == 113 begin
send_letter("Pãrãseste competitia OX")
end
when button or info begin
say_title("Pãrãseste competitia OX")
say("Esti sigur cã vrei sã pãrãsesti competitia?")
say("")
local s=select("Da","Nu")
if s==2 then
send_letter("Pãrãseste competitia OX")
return
end
local empire = pc.get_empire()
if empire== 1 then
pc.warp(473900, 954600)
elseif empire == 2 then
pc.warp(63200, 166700)
elseif empire == 3 then
pc.warp(959600, 269700)
end
end
when 20011.chat."Competiþia OX" begin
say_title("Uriel, învãtatul:")
say("")
say("Hey, tu de acolo! Da, da tu - vino pânã aici!")
say("Hai sã iti arãt ceva interesant.")
say("Competiþia OX. Eu te pot duce acolo.")
say("Am auzit cã poþi castiga premii interesante!")
say("")
wait()
if pc.get_level() < 35 then
say_title("Uriel, învãtatul:")
say("")
say("Îmi pare rãu, dar nu ai nivelul necesar pentru")
say("a participa.")
say("")
say_reward("Nivelul minim pentru participare: 35")
say("")
return
end
if game.get_event_flag("oxevent_status") == 0 then
say_title("Uriel, învãtatul:")
say("")
say("Momentan nu am auzit cã se desfãsoarã nici")
say("o competitie. Te voi anunta eu când aflu ceva.")
say("")
elseif game.get_event_flag("oxevent_status") == 1 then
say_title("Uriel, învãþatul:")
say("")
say("Doresti sã participi la competiþie")
say("sau doar sã te uiti?")
say("")
local s = select( "Particip" , "Spectator", "Înapoi" )
if s == 1 then
say_title("Uriel, învãtatul:")
say("")
say("Imediat te voi duce la competitie.")
say("Succes.")
say("")
horse.unride()
horse.unsummon()
wait()
pc.warp(896500, 24600)
elseif s == 2 then
say_title("Uriel, învãtatul:")
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
say_title("Uriel, învãþatul:")
say("")
say("Îmi pare rãu, dar competitia a început deja ...")
say("Dar, dacã vrei, mai poþi participa ca spectator.")
say("")
local s = select( "Particip" , "Înapoi")
if s == 1 then
say_title("Uriel, învãtatul:")
say("")
say("Imediat vei fi teleportat.")
say("")
horse.unride()
horse.unsummon()
wait()
pc.warp(896300, 28900)
end
end
end
when 20358.chat."GM: Panou competitie OX" with pc.is_gm() begin
local stat = oxevent.get_status()
if stat == 0 then
say_gm_title("Panou competitie OX")
say_gm("")
say_gm("Începe OX?")
say_gm("")
local s = select( "Da" , "Nu")
if s==2 then return end
local v = oxevent.open()
if v == 0 then
say_gm_title("Panou competitie OX")
say_gm("")
say_gm("Nu am putut încãrca întrebãrile.")
say_gm("")
return
elseif v == 1 then
say_gm_title( "Panou competitie OX" )
say_gm("")
say_gm("Competitia OX a început.")
say_gm("")
notice_all("ATENTIE !!!")
notice_all("Competitia OX a început! Pentru a intra la concurs, mergeti la Uriel.")
notice_all("Succes tuturor!")
else
say("Error1")
return
end
elseif stat == 1 then
say_gm_title( "Panou competitie OX" )
say_gm("")
say_gm("Portile sunt încã deschise.")
say_gm("Jucãtori intrati: "..oxevent.get_attender())
say_gm("")
local s = select("Închide portile", "Înapoi")
if s == 1 then
notice_all("Porþile competiþiei OX au fost închise. Mult noroc participantilor.")
oxevent.close()
end
elseif stat == 2 then
say_gm_title("Panou competitie OX")
say_gm("")
say_gm("Ce doresti sã faci?")
say_gm("")
local s = select("Adreseazã întrebare","Oferã un premiu participantilor","Închide competitia","Anuleazã competitia","Înapoi")
if s == 1 then
local v = oxevent.quiz(1, 30)
if v == 0 then
say_gm_title("Panou competitie OX")
say("")
say_gm("Eroare adresare întrebare.")
say("")
return
else
say_gm_title("Panou competitie OX")
say("")
say_gm("Întrebare adresatã cu succes.")
say("")
return
end
elseif s == 2 then
say_gm_title("Panou competitie OX")
say("")
say_gm("Parolã:")
say("")
local sname = input()
if sname == "m2" then
say_gm_title("Panou competitie OX")
say("")
say_gm("Adaugã obiect:")
say("")
local item_vnum = input()
say_gm_title("Panou competitie OX")
say("")
say_gm("Adaugã numãr articole:")
say("")
local item_count = input()
oxevent.give_item(item_vnum, item_count)
say_gm_title("Panou competitie OX" )
say("")
say_gm("Participantii au primit "..item_name(item_vnum))
say("")
notice_all("Participantii competitei OX au primit "..item_count.."x"..item_name(item_vnum))
end
elseif s == 3 then
oxevent.end_event()
notice_all("Competitia OX a luat sfârsit.")
setskin(0)
elseif s == 4 then
say_gm_title("Panou competitie OX")
say("")
say_gm("Esti sigur cã vrei sã 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_gm_title("Panou competitie OX")
say("")
say_gm("Momentan este o întrebare adresatã.")
say("")
else
say_gm_title("Panou competitie OX")
say("")
say_gm("Eroare.")
say("")
return
end
end
end
end
- local stat = oxevent . get_status ( )
if stat == 0 then
say_title ( "Concursul OX" )
say ( "Incepe OX?" )
local s = select ( "Da" , "Nu" )
if s == 2 then return end
local v = oxevent . open ( )
if v == 0 then
say_title ( "Concursul OX" )
say ( "Nu am putut incarca oxquiz.lua" )
return
elseif v == 1 then
say_title ( "Concursul OX" )
say ( "Concursul OX a inceput cu succes." )
server_timer ( "automatic1" , 10 * 60 , 113 )
notice_all ( "Lume Lume a inceput Concursul OX!" )
notice_all ( "Pentru a intra fugiti repede la Uriel" )
else
say ( "Error1" )
return
end
elseif stat == 1 then
say_title ( "Concursul OX" )
say ( "Usile inca sunt deschise." )
say ( "Jucatori intrati: " .. oxevent . get_attender ( ) .. " " )
say ( "" )
local s = select ( "Inchide intrarea" , "Inapoi" )
if s == 1 then
notice_all ( "Portile OX au fost inchise" )
oxevent . close ( )
end
elseif stat == 2 then
say_title ( "Concursul OX" )
say ( "Obtiuni:" )
local s = select ( "Intrebari OX" , "Premiu OX" , "Inchide OX" , "Anuleaza OX" , "Inapoi" )
if s == 1 then
local v = oxevent . quiz ( 1 , 30 )
if v == 0 then
say_title ( "Concursul OX" )
say ( "Error2" )
return
else
say_title ( "Concursul OX" )
say ( "Intrebare adresata cu succes!" )
return
end
elseif s == 2 then
say_title ( "Concursul OX" )
say ( "Te rog sa pui in ID de Item." )
local item_vnum = input ( )
say_title ( "Concursul OX" )
say ( "Introduceti numarul de articole." )
local item_count = input ( )
oxevent . give_item ( item_vnum , item_count )
say_title ( "Concursul OX" )
say ( " " .. oxevent . get_attender ( ) .. " Castigatorii au primit " .. item_count .. "x" )
say ( item_name ( item_vnum ) .. " emis." )
notice_all ( "Toti jucatorii care au raspuns corect au castigat - " .. item_count .. "x " .. item_name ( item_vnum ) )
elseif s == 3 then
oxevent . end_event ( )
notice_all ( "Concursul OX s-a terminat." )
notice_all ( "Toti jucatorii vor fi teleportati din aceasta harta" )
setskin ( 0 )
elseif s == 4 then
say_title ( "Concursul OX" )
say ( "Renuntarea la OX poate crea probleme." )
say ( "Sigur vrei sa faci asta?" )
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_title ( "Concursul OX" )
say ( "Acum este adresata o intrebare." )
else
say_title ( "Concursul OX" )
say ( "Error4" )
return
end




