Jump to content

npc transportadora


xKills

Recommended Posts

Alguien me puede ayudar con esta quest .. me salta este error :

La Quest es esta :

quest teleport begin	state start begin		when 20088.chat"Teleport" begin			say_title ( "Metin2Eclypse Mapas" )			say_title ( "Transportador:" )			say ( "Buenas joven luchador," )			say ( "hacia donde quieres transportarte?" )			local main_set = select ("Mapa Thunder","Mapa Bay","Mapa Holiwood","Mapa York","Salir")			if main_set == 1 then			if pc.get_level() < 75 then			 say("Lo siento aun no eres lvl 75")			 return			 end				pc.warp ( 10240 , 16640 )			elseif main_set == 2 then			if pc.get_level() < 80 then			 say("Lo siento aun no eres lvl 80")			 return			 end				pc.warp ( 10496 , 15104 )			elseif main_set == 3 then			if pc.get_level() < 90 then			 say("Lo siento aun no eres lvl 90")			 return			 end				pc.warp ( 11776 , 16640 )			elseif main_set == 4 then			if pc.get_level() < 100 then			 say("Lo siento aun no eres lvl 100")			 return			 end				pc.warp ( 11264 , 15104 )			elseif main_set == 5 then					return					end				end			end		end	endend

Les agradeceria su ayuda.

Link to comment
Share on other sites

Espero mis Thanks y Me Gusta!

quest teleport begin	state start begin		when 20088.chat"Teleport" begin			say_title ( "Metin2Eclypse Mapas" )			say_title ( "Transportador:" )			say ( "Buenas joven luchador," )			say ( "hacia donde quieres transportarte?" )			local main_set = select ("Mapa Thunder","Mapa Bay","Mapa Holiwood","Mapa York","Salir")			if main_set == 1 then				pc.warp ( 10240 , 16640 )								if pc.get_level() < 75 then				say("Lo siento aun no eres lvl 75")				return				end							elseif main_set == 2 then				pc.warp ( 10496 , 15104 )								if pc.get_level() < 80 then				say("Lo siento aun no eres lvl 80")				return				end							elseif main_set == 3 then				pc.warp ( 11776 , 16640 )								if pc.get_level() < 90 then				say("Lo siento aun no eres lvl 90")				return				end							elseif main_set == 4 then				pc.warp ( 11264 , 15104 )								if pc.get_level() < 100 then				say("Lo siento aun no eres lvl 100")				return				end			end		end	endend
Link to comment
Share on other sites

Para que hay un curso sobre arrays si nadie lo usa >.<

quest teleport begin	state start begin		when 20088.chat"Teleport" begin			say_title ( "Metin2Eclypse Mapas" )			say_title ( "Transportador:" )			say ( "Buenas joven luchador," )			say ( "hacia donde quieres transportarte?" )			local main_set = select ("Mapa Thunder","Mapa Bay","Mapa Holiwood","Mapa York","Salir")		    local cordes = {		    {10240,16640,75},		    {10496,15104,80},		    {11776,16640,90},		    {11264,15104,95}		    }		    if main_set == 5 then return end		    if pc.get_level() < cordes[main_set][3] then		    say("Lo siento aun no eres "..cordes[main_set][3].."")		    return		    end		    pc.warp(cordes[main_set][1],cordes[main_set][2])		    end	 endend
Link to comment
Share on other sites

Prueba así:

 

quest teleport begin	state start begin		when 20088.chat"Teleport" begin			say_title ( "Metin2Eclypse Mapas" )			say_title ( "Transportador:" )			say ( "Buenas joven luchador," )			say ( "hacia donde quieres transportarte?" )			local main_set = select ("Mapa Thunder","Mapa Bay","Mapa Holiwood","Mapa York","Salir")			local cordes = {			{10240,16640,75},			{10496,15104,80},			{11776,16640,90},			{11264,15104,95}			}			if main_set != 5 then				if pc.get_level() < cordes[main_set][3] then					say("Lo siento aun no eres "..cordes[main_set][3].."")					return				else					pc.warp(cordes[main_set][1],cordes[main_set][2])				end			end		end	endend
Link to comment
Share on other sites

Ahhhhhhhh ya encontré el error.

 

quest teleport begin	state start begin		when 20088.chat."Teleport" begin			say_title ( "Metin2Eclypse Mapas" )			say_title ( "Transportador:" )			say ( "Buenas joven luchador," )			say ( "hacia donde quieres transportarte?" )			local main_set = select ("Mapa Thunder","Mapa Bay","Mapa Holiwood","Mapa York","Salir")			local cordes = {			{10240,16640,75},			{10496,15104,80},			{11776,16640,90},			{11264,15104,95}			}			if main_set != 5 then				if pc.get_level() < cordes[main_set][3] then					say("Lo siento aun no eres "..cordes[main_set][3].."")					return				else					pc.warp(cordes[main_set][1],cordes[main_set][2])				end			end		end	endend
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...