virus34 Posted September 2, 2015 Report Share Posted September 2, 2015 hola muy buenas pues eso me gustaria conseguir una quest donde un npc te pida un iten para entrar a un mapa con restricion de nivel minimo para entrar,muchas gracias..... Link to comment Share on other sites More sharing options...
vilas69 Posted September 2, 2015 Report Share Posted September 2, 2015 if pc.get_level < 1 then say("") else say("buena viaje") end Link to comment Share on other sites More sharing options...
virus34 Posted September 2, 2015 Author Report Share Posted September 2, 2015 if pc.get_level < 1 then say("") else say("buena viaje") end creo que esta incompleta amigo!! Link to comment Share on other sites More sharing options...
Dilong Posted September 2, 2015 Report Share Posted September 2, 2015 Prueba este lo hice rapido no lo he probado xD quest teleport_mapastate start beginwhen npc.chat."texto" beginsay_title("Nombre:")say("textotextotexto")local item = select("dar item", "No lo tengo")if item = 1 thenif pc.count_item(id_item) ==0 thensay_title("Nombre:")say("no tienes el pase")endif pc.get_level() aquiponeselnivel thensay("No tienes el nivel suficiente")returnendif pc.count_item("iditem") ==1 thensay_title("Nombre:")say("tienes el pase,puedes pasar")pc.remove_item("iditem")pc.warp(coordenadas del mapa)endendend Link to comment Share on other sites More sharing options...
jegarba2 Posted September 5, 2015 Report Share Posted September 5, 2015 Prueba este lo hice rapido no lo he probado xD quest teleport_mapa state start begin when npc.chat."texto" begin say_title("Nombre:") say("textotextotexto") local item = select("dar item", "No lo tengo") if item = 1 then if pc.count_item(id_item) ==0 then say_title("Nombre:") say("no tienes el pase") end if pc.get_level() aquiponeselnivel then say("No tienes el nivel suficiente") return end if pc.count_item("iditem") ==1 then say_title("Nombre:") say("tienes el pase,puedes pasar") pc.remove_item("iditem") pc.warp(coordenadas del mapa) end end end amigo lo probe pero me sale esto en la maquina aki te dejo la foto en este link Debes iniciar sesión para ver el contenido del enlace en esta publicación. Aqui esta la quest que configure quest teleport_mapa begin state start begin when 20090.chat."Mapa 120" begin say_title("Bienvenido a mapa 120") say("para poder Entrar nesesitas una perla roja") local item = select("dar item", "No lo tengo") if item = 1 then if pc.count_item(27994) ==0 then say_title("Mapa 120") say("no tienes el pase") end if pc.get_level() 120 then say("No tienes el nivel suficiente") return end if pc.count_item("27994") ==1 then say_title("Mapa 120") say("tienes el pase,puedes pasar") pc.remove_item("27994") pc.warp(3114500,3519700) end end end Dionisis Xatzis 1 Link to comment Share on other sites More sharing options...
Dilong Posted September 5, 2015 Report Share Posted September 5, 2015 amigo lo probe pero me sale esto en la maquina aki te dejo la foto en este link Debes iniciar sesión para ver el contenido del enlace en esta publicación. quest teleport_mapa begin state start begin when 20094.chat."texto" begin say_title("Nombre:") say("textotextotexto") local s = select("dar item", "No lo tengo") if s == 1 then if pc.count_item(19)==0 then say_title("Nombre:") say("no tienes el pase") end if pc.get_level() < 70 then say("No tienes el nivel suficiente") return end if pc.count_item("19")==1 then say_title("Nombre:") say("tienes el pase,puedes pasar") pc.remove_item("19") pc.warp(153600,1203200) end else say("texto") return end end end end aldo657 1 Link to comment Share on other sites More sharing options...
virus34 Posted September 6, 2015 Author Report Share Posted September 6, 2015 si esque la primera que pusiste Dilong no me agarraba!!! probare con la ultima esa y gracias!!!! Link to comment Share on other sites More sharing options...
virus34 Posted September 7, 2015 Author Report Share Posted September 7, 2015 quest teleport_mapa begin state start begin when 20094.chat."texto" begin say_title("Nombre:") say("textotextotexto") local s = select("dar item", "No lo tengo") if s == 1 then if pc.count_item(19)==0 then say_title("Nombre:") say("no tienes el pase") end if pc.get_level() < 70 then say("No tienes el nivel suficiente") return end if pc.count_item("19")==1 then say_title("Nombre:") say("tienes el pase,puedes pasar") pc.remove_item("19") pc.warp(153600,1203200) end else say("texto") return end end end end GRACIAS AMIGO!! ME AGARRO ESTA VEZ SUPER BIEN!!! POS NADA AY LLEVAS TU CHAMANA!!! XDDD!! GRACIAS!!! Link to comment Share on other sites More sharing options...
virus34 Posted September 7, 2015 Author Report Share Posted September 7, 2015 y por cierto teneis alguna quest de bloqueo de mapas es decir poner level minimo y max en ciertos mapas para que por ejemplo un level 90 no pueda accdeder a un mapa de lvel 60 y lo devuelva a city. pero no en npc. gracias.... Link to comment Share on other sites More sharing options...
EłCr@ck Posted September 7, 2015 Report Share Posted September 7, 2015 quest bloqueomapa begin state start begin when login begin if pc.get_map_index() == 72 and pc.get_level ( ) <= 74 and pc.get_empire() == 3 then pc.warp(969600,278400) elseif pc.get_map_index() == 72 and pc.get_level ( ) <= 74 and pc.get_empire() == 2 then pc.warp(55700,157900) elseif pc.get_map_index() == 72 and pc.get_level ( ) <= 74 and pc.get_empire() == 1 then pc.warp(469300,964200) elseif pc.get_map_index() == 73 and pc.get_level ( ) <= 74 and pc.get_empire() == 3 then pc.warp(969600,278400) elseif pc.get_map_index() == 73 and pc.get_level ( ) <= 74 and pc.get_empire() == 2 then pc.warp(55700,157900) elseif pc.get_map_index() == 73 and pc.get_level ( ) <= 74 and pc.get_empire() == 1 then pc.warp(469300,964200) end end end end Es la que uso solo para ayuda hay la modificas Link to comment Share on other sites More sharing options...
Recommended Posts