Jump to content

Recommended Posts

Posted

Hola, tengo una quest donde te teletrasporta por Reino xd

(cada npc )

 

Pero el problema esque le quiero poner  Lvl aca Mapa 

 

Como le puedo hacer para agregar el nivel ?

 

quest

--------------------------------------------------
-- warp quest
----------------------------------------------------

quest goto_empire_castle begin
	state start begin
		when 20097.chat."Mapas de Leveo Shinshoo" begin

			local empire = pc.get_empire()
			if empire==1 then
				a=select("Mapa de leveo 80" ,"Mapa de leveo 120","Mapa de leveo 150","Cancelar")
				if 1==a then
					say("Teletrasportandote, Buena suerte")
					wait()
					pc.warp(975200, 133000) 
				elseif 2==a then
					say("Teletrasportandote, Buena suerte")
					wait()
					pc.warp(978000, 199500)
				elseif 3==a then
					say("Teletrasportandote, Buena suerte")
					wait()
					pc.warp(967900, 199400)
				else
					return
				end
			else  
				say_title("Teletrasportador Shinsho")
				say("Que haces aqui extranjero.")
				say("No me gustan los de tu tiempo, me niego a  Teletrasportarte, Regresa a tu pueblucho")
				say("")
			end
		end

		when 20098.chat."Mapas de leveo Chunjo" begin

			local empire = pc.get_empire()
			if empire==2 then
				a=select("Mapa de leveo 80" ,"Mapa de leveo 120","Mapa de leveo 150","Cancelar")
				if 1==a then
					say("Teletrasportandote, Buena suerte")
					wait()
					pc.warp(975200, 133000)
				elseif 2==a then
					say("Teletrasportandote, Buena suerte")
					wait()
					pc.warp(978000, 199500)
				elseif 3==a then
					say("Teletrasportandote, Buena suerte")
					wait()
					pc.warp(967900, 199400)
				else
					return
				end	
			else  
				say_title("Teletrasportador chunjo")
				say("Que haces aqui extranjero.")
				say("No me gustan los de tu tiempo, me niego a  Teletrasportarte, Regresa a tu pueblucho")
				say("")
			end
		end
		when 20099.chat."Mapas de leveo Jinno" begin

			local empire = pc.get_empire()
			if empire==3 then
				a=select("Mapa de leveo 80" ,"Mapa de leveo 120","Mapa de leveo 150","Cancelar")
				if 1==a then
					say("Teletrasportandote, Buena suerte")
					wait()
					pc.warp(975200, 133000)
				elseif 2==a then
					say("Teletrasportandote, Buena suerte")
					wait()
					pc.warp(978000, 199500)
				elseif 3==a then
					say("Teletrasportandote, Buena suerte")
					wait()
					pc.warp(967900, 199400)
				else
					return
				end	
			else  
				say_title("Teletrasportador Jinno")
				say("Que haces aqui extranjero.")
				say("No me gustan los de tu tiempo, me niego a  Teletrasportarte, Regresa a tu pueblucho")
				say("")
			end
		end
	end
end


Posted

a=select("Mapa de leveo 80" ,"Mapa de leveo 120","Mapa de leveo 150","Cancelar")
                if 1==a then
                    say("Teletrasportandote, Buena suerte")
                    wait()

                    if pc.get_level() >= 80 then --entran mayores o iguales a 80

                           pc.warp(975200, 133000)

                    end   
si quieres le pones un else para que te diga que debes ser x level ._.

Posted

como tu lo tienes

if 1==a then

       if pc.get_level() >= 80 then
          say("Teletrasportandote, Buena suerte")
          wait()
         pc.warp(975200, 133000)

elseif 2==a then

como debe de ser

if 1==a then

       if pc.get_level() >= 80 then
          say("Teletrasportandote, Buena suerte")
          wait()
         pc.warp(975200, 133000)

     end

elseif 2==a then

Posted

hola prueba asi.

 

--------------------------------------------------
-- warp quest
----------------------------------------------------
 
quest goto_empire_castle begin
state start begin
when 20097.chat."Mapas de Leveo Shinshoo" begin
 
local empire = pc.get_empire()
if empire==1 then
a=select("Mapa de leveo 80" ,"Mapa de leveo 120","Mapa de leveo 150","Cancelar")
if 1==a then
say("Teletrasportandote, Buena suerte")
wait()
pc.warp(975200, 133000) 
elseif 2==a then
if pc.get_level() >= 80
say("Teletrasportandote, Buena suerte")
wait()
pc.warp(978000, 199500)
elseif 3==a then
if pc.get_level== () >=120
say("Teletrasportandote, Buena suerte")
wait()
pc.warp(967900, 199400)
if pc.get.level () >= 150
else
return
end
else  
say_title("Teletrasportador Shinsho")
say("Que haces aqui extranjero.")
say("No me gustan los de tu tiempo, me niego a  Teletrasportarte, Regresa a tu pueblucho")
say("")
end
end
 
when 20098.chat."Mapas de leveo Chunjo" begin
 
local empire = pc.get_empire()
if empire==2 then
a=select("Mapa de leveo 80" ,"Mapa de leveo 120","Mapa de leveo 150","Cancelar")
if 1==a then
say("Teletrasportandote, Buena suerte")
wait()
pc.warp(975200, 133000)
elseif 2==a then
if pc.get_level() >= 80
say("Teletrasportandote, Buena suerte")
wait()
pc.warp(978000, 199500)
elseif 3==a then
if pc.get_level() >= 120
say("Teletrasportandote, Buena suerte")
wait()
pc.warp(967900, 199400)
if pc.get_level() >= 150
else
return
end
else  
say_title("Teletrasportador chunjo")
say("Que haces aqui extranjero.")
say("No me gustan los de tu tiempo, me niego a  Teletrasportarte, Regresa a tu pueblucho")
say("")
end
end
when 20099.chat."Mapas de leveo Jinno" begin
 
local empire = pc.get_empire()
if empire==3 then
a=select("Mapa de leveo 80" ,"Mapa de leveo 120","Mapa de leveo 150","Cancelar")
if 1==a then
say("Teletrasportandote, Buena suerte")
wait()
pc.warp(975200, 133000)
elseif 2==a then
if pc.get_level() >= 80
say("Teletrasportandote, Buena suerte")
wait()
pc.warp(978000, 199500)
elseif 3==a then
if pc.get_level() >= 120
say("Teletrasportandote, Buena suerte")
wait()
pc.warp(967900, 199400)
if pc.get_level() >= 150
else
return
end
else  
say_title("Teletrasportador Jinno")
say("Que haces aqui extranjero.")
say("No me gustan los de tu tiempo, me niego a  Teletrasportarte, Regresa a tu pueblucho")
say("")
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.