SeBuenoPorfa Posted November 21, 2013 Report Share Posted November 21, 2013 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 jiviontaito 1 Link to comment Share on other sites More sharing options...
Anders2D Posted November 21, 2013 Report Share Posted November 21, 2013 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 Link to comment Share on other sites More sharing options...
SeBuenoPorfa Posted November 23, 2013 Author Report Share Posted November 23, 2013 gracias Link to comment Share on other sites More sharing options...
Recommended Posts