LeyendasMt2 5 Report post Posted March 16, 2013 Hola buenas, me preguntaba si alguien seria tan amable de hacerme una quest de este tipo Un gm active el evento y mediante el npc X se entre al mapa X y cuando entre te den 25 vidas. Por cada vez que mueras te resta 1 , cuando llegues a 0 te mande a city. Lo he intentado yo pero no me funciono, mi manejo de las quest no es tan bueno. Gracias Share this post Link to post Share on other sites
PACI 453 Report post Posted March 16, 2013 quest eventopvp begin state start begin when X.chat."Evento PvP" begin if game.get_event_flag("evento") == 0 then if pc.is_gm() then say("El evento pvp está desactivado.") say("Deseas activarlo?") local a = select ("Sí", "No") if a == 1 then game.set_event_flag("evento", 1) notice_all("El evento pvp ha comenzado") notice_all("Ve al npc X para participar.") end else say("El evento pvp está activado.") say("Quieres desactivarlo?") local b = select ("Si", "no") if b == 1 then game.set_event_flag("evento", 0) notice_all("El evento pvp ha terminado.") end else say("El evento pvp está activado.") say("Deseas participar?") local c = select ("Sí", "No") if c == 1 then pc.warp(coordenada x, coordenada y) end end end when kill with npc.is_pc() and pc.get_map_index() == Y and game.get_event_flag("evento") == 1 begin pc.setqf("vidas", pc.getqf("vidas") 25-1) if pc.getqf("vidas") == 0 then warp_to_village() end end end end No se si asi funciona xD pero dejo esta alternativa 1 LeyendasMt2 reacted to this Share this post Link to post Share on other sites
Jaegar 50 Report post Posted March 16, 2013 Leyendas has probado? Share this post Link to post Share on other sites
LeyendasMt2 5 Report post Posted March 16, 2013 Nop no sirvio pero grax de todos modos Share this post Link to post Share on other sites
LeyendasMt2 5 Report post Posted March 18, 2013 Revivo aver si alguien me ayuda plis Share this post Link to post Share on other sites
dabliux 4 Report post Posted March 1, 2016 revivo por favor ayuda Share this post Link to post Share on other sites
JeS 54 Report post Posted March 1, 2016 revivo por favor ayuda ¿Qué necesitáis? Share this post Link to post Share on other sites
dabliux 4 Report post Posted March 1, 2016 ¿Qué necesitáis? que funcione la quest ejemplo que a las 3 muertes te envie a city eso es todo amigo gracias Share this post Link to post Share on other sites
Johan™ 728 Report post Posted March 1, 2016 yo lo veo mas facil por c++ usando el evento dead y listo xd Share this post Link to post Share on other sites
dabliux 4 Report post Posted March 1, 2016 yo lo veo mas facil por c++ usando el evento dead y listo xd jaja no puedo no uso source pasamelo por quest Share this post Link to post Share on other sites
dabliux 4 Report post Posted March 4, 2016 sera que no nos ayudaran :C Share this post Link to post Share on other sites
dabliux 4 Report post Posted March 4, 2016 quest eventopvp begin state start begin when X.chat."Evento PvP" begin if game.get_event_flag("evento") == 0 then if pc.is_gm() then say("El evento pvp está desactivado.") say("Deseas activarlo?") local a = select ("Sí", "No") if a == 1 then game.set_event_flag("evento", 1) notice_all("El evento pvp ha comenzado") notice_all("Ve al npc X para participar.") end else say("El evento pvp está activado.") say("Quieres desactivarlo?") local b = select ("Si", "no") if b == 1 then game.set_event_flag("evento", 0) notice_all("El evento pvp ha terminado.") end else say("El evento pvp está activado.") say("Deseas participar?") local c = select ("Sí", "No") if c == 1 then pc.warp(coordenada x, coordenada y) end end end when kill with npc.is_pc() and pc.get_map_index() == Y and game.get_event_flag("evento") == 1 begin pc.setqf("vidas", pc.getqf("vidas") 25-1) if pc.getqf("vidas") == 0 then warp_to_village() end end end end No se si asi funciona xD pero dejo esta alternativa PACI sera que la puedes corregir o rectificar por favor Share this post Link to post Share on other sites
Tyrael 40 Report post Posted March 4, 2016 en vez de pedir intenta acomodarla y si ven inteteres que intentas acomodarla es posible que te ayuden xD Share this post Link to post Share on other sites
JeS 54 Report post Posted March 4, 2016 PACI sera que la puedes corregir o rectificar por favor Pero, tenéis algún error o algo? Share this post Link to post Share on other sites
Rinnegan 52 Report post Posted March 4, 2016 Debes iniciar sesión para ver el contenido del enlace en esta publicación. Share this post Link to post Share on other sites