Jump to content

quest de npc pedir iten con restricion de nivel para entrar en mapa


virus34

Recommended Posts

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

 

Link to comment
Share on other sites

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
Link to comment
Share on other sites

 

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

 

Link to comment
Share on other sites

 

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

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

  • 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...