Am SF : wordonline
Script Ox :
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 , 80 )
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 ( "Avem un castigator!!!!El a 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
en
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 , 80 )
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 ( "Avem un castigator!!!!El a 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
en


