RicardoMoreira 4 Posted October 12, 2013 Boas eu gostava de tirar esta duvida, eu coloquei o Rapaz do estabulo a vender niveis de cavalo, assim: say_title ( "Equitador:" ) say ( "" ) say ( "Ola!" ) say ( "Comigo você pode aumentar o seu cavalo." ) say ( "O Cavalo vai-lhe custar 1kk" ) say ( "" ) say_reward ( "Quere 1 nivel para o seu cavalo?" ) say ( "" ) local s = select ( "Sim" , "Não" ) if s == 1 then say_title ( "Equitador:" ) say ( "" ) if pc . money >= 1e+06 then pc . changemoney ( "-1000000" ) horse . unride ( ) horse . advance ( ) horse . ride ( ) say ( " " .. ( horse . get_level ( ) ) .. " Nivel." ) say ( "" ) elseif horse . get_level ( ) >= 30 then say ( "O Seu cavalo está a nivel 30." ) say ( "" ) say ( "" ) elseif pc . money < 1e+06 then say ( "Voçê não tem yang suficiente" ) say ( "" ) end elseif s == 2 then return end e eu queria colocar so o rapaz do estabulo a vender so ate lvl 21 e fiz assim: say_title ( "Equitador:" ) say ( "" ) say ( "Ola!" ) say ( "Comigo você pode aumentar o seu cavalo." ) say ( "O Cavalo vai-lhe custar 1kk" ) say ( "" ) say_reward ( "Quere 1 nivel para o seu cavalo?" ) say ( "" ) local s = select ( "Sim" , "Não" ) if s == 1 then say_title ( "Equitador:" ) say ( "" ) if pc . money >= 1e+06 then pc . changemoney ( "-1000000" ) horse . unride ( ) horse . advance ( ) horse . ride ( ) say ( " " .. ( horse . get_level ( ) ) .. " Nivel." ) say ( "" ) elseif horse . get_level ( ) >= 21 then say ( "O Seu cavalo está a nivel 21." ) say ( "" ) say ( "" ) elseif pc . money < 1e+06 then say ( "Voçê não tem yang suficiente" ) say ( "" ) end elseif s == 2 then return end Mas mesmo assim ele vende ate nivel 30, ha maneira de meter so ate lvl 21? Share this post Link to post Share on other sites
0 Papix 452 Posted October 12, 2013 Remove "elseif s == 2 then " e tenta . 1 RicardoMoreira reacted to this Share this post Link to post Share on other sites
0 RicardoMoreira 4 Posted October 12, 2013 Vou remover então, mas esse elseif é o quê? @Edit Ainda estou a aprender esses codigos xd desculpe minhas perguntas estupidas :) Share this post Link to post Share on other sites
0 Papix 452 Posted October 12, 2013 Pergunta ao pacificador xD Share this post Link to post Share on other sites
0 'PACI 2,317 Posted October 12, 2013 quest comprar_cavalo begin state start begin when 20349.chat."Comprar Cavalo" begin local yang = 1000000 say_title("Equitador:") if horse.get_level() >= 21 then say("O seu cavalo é nível maior/igual que 21.") return end say("Ola![ENTER]Comigo você pode aumentar o seu Cavalo.[ENTER]Vai-lhe custar 1kk.") say_reward("Quer 1 nível para o seu Cavalo?") if select("Sim", "Não") == 1 then if pc.get_gold() < yang then say("Não tem yang suficiente.") return end horse.unride() horse.advance() horse.ride() say("Seu cavalo está agora a nível "..horse.get_level()) end end endend 1 RicardoMoreira reacted to this Share this post Link to post Share on other sites
0 RicardoMoreira 4 Posted October 12, 2013 Obrigado aos 2 +1 :) Share this post Link to post Share on other sites
Boas eu gostava de tirar esta duvida, eu coloquei o Rapaz do estabulo a vender niveis de cavalo, assim:
e eu queria colocar so o rapaz do estabulo a vender so ate lvl 21 e fiz assim:
Share this post
Link to post
Share on other sites