sotark 0 Posted January 4, 2014 bom, tou com um problema , tenho um teleportador mais ele esta apenas para ir pras city, so que pelo que persebi tem mais lugares para ir, queria saber como arrumo issoo... segue como estah... say_title ( "Medyc Super GM teleportador:" ) say ( "Fla, posso te levar a qualquer reino" ) say ( "Voce deseja invadir?" ) say_reward ( "Script by Medyc" ) say_reward ( "[email protected]" ) local main_set = select ( "Sim, eu vou" , "Nao, vou arregar" ) if main_set == 2 then return end if pc . get_level ( ) <= 0 then say ( "Forte Waryon" ) say ( "Orc" ) say ( "Deserto" ) say ( "Montanha Sohan" ) say ( "" ) return end local map = pc . get_map_index ( ) local empire = pc . get_empire ( ) local level = pc . get_level ( ) local cost = math . floor ( level / 5 ) * 1000 if cost < 1000 then cost = 1000 end say ( "Onde vai querer apanhar?" ) say_reward ( string . format ( "Vai custar, 3K-19K Gold!" ) ) say ( "" ) if map == 1 or map == 3 or map == 21 or map == 23 or map == 41 or map == 43 then local guild_map_names = { "reino red" , "Gildenzone" , "Gildenzone" , } guild_map_name = guild_map_names [ empire ] local empire_castle = { "Castelo Shinsu" , "Castelo Chunjo" , "Castelo Jinno" , } empire_castle = empire_castle [ empire ] local sub_set = 0 if level < 0 then sub_set = select ( guild_map_name , "Test1" , "Test2" , "Test3" , empire_castle , "Ãö³¬" ) if sub_set == 6 then return end else sub_set = select ( guild_map_name , "reino yellow" , "reino blue" ) if sub_set == 6 then say ( "Se você tiver alcancado nível 60 poderá ir para o seguintes mapa:" ) say_reward ( string . format ( "Vai custar, 3K-19K Gold." ) ) say ( "" ) sub_set = select ( "Fogos" , "Torre Sakita" , "Vila 2" , "Close" ) + 5 if sub_set == 9 then return end if sub_set == 8 then say ( "Waehle einen Ort: " ) say_reward ( string . format ( "Das kostet dich, 3k-19k Gold." ) ) say ( "" ) sub_set = select ( guild_map_name , "Orktal" , "Wueste" , "Motanha Sohan" , "Castelo Chunjo" , "Proximo" ) if sub_set == 6 then say ( "Se você tiver alcancado nível 60 poderá ir para o seguintes mapa:" ) say ( "" ) say_reward ( string . format ( "Se você tiver alcancado nível 60 poderá ir para o seguintes mapa:" ) ) say ( "" ) sub_set = select ( "Fogos" , "Torre" , "Close" ) + 5 if sub_set == 8 then return end end end end end if pc . gold < cost then say ( "Nao tem gold" ) say ( "" ) say ( "" ) say ( "" ) say ( "" ) say_reward ( string . format ( "preciza de %d ¨â" , cost ) ) say ( "" ) return end pc . changegold ( - cost ) local warp = { { { 469300 , 964200 } , { 469300 , 964200 } , { 469300 , 964200 } , } , { { 55700 , 157900 } , { 55700 , 157900 } , { 55700 , 157900 } , } , { { 969600 , 278400 } , { 969600 , 278400 } , { 969600 , 278400 } , } , { { 434200 , 290600 } , { 375200 , 174900 } , { 491800 , 173600 } , } , { { 975200 , 133000 } , { 977200 , 185000 } , { 923900 , 183600 } , } , { { 599400 , 756300 } , { 597800 , 622200 } , { 730700 , 689800 } , } , { { 590500 , 110500 } , { 590500 , 110500 } , { 590500 , 110500 } , } , } test_chat ( warp [ sub_set ] [ empire ] [ 1 ] .. warp [ sub_set ] [ empire ] [ 2 ] ) say ( "ªÅ¶¡²¾°Ê³N®v:" ) say ( "§Ú²{¦b´N¶Ç°e§A." ) say ( "¦ý¬O§A²¾°Ê¨ì¾Ô±Nªº¤¤¶¡.." ) say ( "§An«O«...¦A¨£.." ) wait ( ) pc . warp ( warp [ sub_set ] [ empire ] [ 1 ] , warp [ sub_set ] [ empire ] [ 2 ] ) else local sub_set2 = 3 if empire == 1 then sub_set2 = select ( "Deseja falar comigo?" , "Vila 2" , locale . cancel ) elseif empire == 2 then sub_set2 = select ( "Deseja falar comigo?", "Vila 2" , locale . cancel ) elseif empire == 3 then sub_set2 = select ( "Deseja falar comigo?" , "Vila 2" , locale . cancel ) end if sub_set2 ~= 3 then if pc . gold < cost then say ( "ªÅ¶¡²¾°Ê³N®v:" ) say ( "§Ú¤]·QÀ°§A§K¶O²¾°Ê" ) say ( "¦ý¬O§Ún¾i§Úªº®a¤H." ) say ( "©Ò¥H§Ú¥²¶·n¦¬²¾°Ê¶O" ) say ( "¥@¬É¤W¥ô¦óªº¨Æ±¡³£»Ýn¥I¿ú§a." ) say_reward ( string . format ( "²¾°Ê¶O¥Î¬O %d ¨â" , cost ) ) say ( "" ) else if sub_set2 == 1 then say ( "ªÅ¶¡²¾°Ê³N®v:" ) say ( "§Ú²{¦b´N¶Ç°e§A." ) wait ( ) if empire == 1 then pc . warp ( 474300 , 954800 ) elseif empire == 2 then pc . warp ( 63800 , 166400 ) elseif empire == 3 then pc . warp ( 959900 , 269200 ) end elseif sub_set2 == 2 then say ( "Test" ) say ( "§Ú²{¦b´N¶Ç°e§A." ) say ( "" ) say ( "" ) wait ( ) if empire == 1 then pc . warp ( 353100 , 882900 ) elseif empire == 2 then pc . warp ( 145500 , 240000 ) elseif empire == 3 then pc . warp ( 863900 , 246000 ) end end pc . changegold ( - cost ) end end end Share this post Link to post Share on other sites
Annie 1,207 Posted May 14, 2014 Tópico Fechado Tópico Antigo e Sem resposta Movido de Metin2 - Pedidos para Lixeira do Fórum Share this post Link to post Share on other sites