Jump to content

Recommended Posts

Posted
quest ox begin
state start begin
 
OX-activado == 0
 
when 20011.click begin
 
if pc.is_gm() and OX-activado == 0 then
 
local opcion00 = select ("activar OX")
 
if opcion00 == 1 then
 
say("quieres continuar?")
 
local opcion01 = select ("si", "nu")
 
if opcion01 == 1 then
OX-activado == 1
notice_all("evento on!!!")
 
elseif opcion01 == 2 then
return
 
end
end
end
 
if OX-activado == 1 then
 
local opcion02 = select ("desactivar OX")
 
if opcion02 == 1 then
 
say("quieres continuar?")
 
local opcion03 = select ("si", "nu")
 
if opcion03 == 1 then
OX-activado == 0
notice_all("ox desactivado!")
 
elseif opcion03 == 2 then
return
 
end
end
end
 
end
end
end
 
Posted

Hola disculpa no le puse tabs pero creo que asi esta bien

 

 

 

 

quest ox begin

state start begin

when 20011.click begin

if pc.is_gm() and game.get_event_flag("OX-activado") == 0 then

select("activar OX")

say("quieres continuar?")

if select("si", "nu") == 1 then

game.set_event_flag("OX-activado",1)

notice_all("evento on!!!")

else

return

end

end

if pc.is_gm() and game.get_event_flag("OX-activado") == 1 then

select("desactivar OX")

say("quieres continuar?")

if select("si", "nu") == 1 then

game.set_event_flag("OX-activado",0)

notice_all("ox desactivado!!!")

else

return

end

end

end

end

  • Dilong locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies to enhance your browsing experience and provide relevant content. By continuing to browse, you agree to our We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. and Terms of Use. For more information on how we protect your data, please check our Privacy Policy.