VMP. 202 Posted November 14, 2012 BoasVenho aqui deixar mais uma quest de mensagens, que pode ser usado pelos jogadores.Com isto os jogadores mandam uma mensagem a dizer que vendem algo ou que querem trocar algo, e será enviada para todos os Reinos. ------------------------------------------------Nome: Sistema Envio Mensagens Gerais--ElysiaMt2--Data: 02 de Setembro de 2012----------------------------------------------say_title("Queres enviar uma mensagem de Venda de Itens?")say_reward( "Esta mensagem será enviada à todos os reinos(20KK)" )local opzioni = select("Vender", "Trocar", "Cancelar")if opzioni == 1 thensay_title("Item para vender")if pc . gold >= 20000000 thenpc . changegold ( - 20000000 )local nome_o = input ( )notice_all ("".. pc.get_name() .." Vende " .. nome_o .. "")endelseif opzioni == 2 thensay_title("Item para trocar")if pc . gold >= 20000000 thenpc . changegold ( - 20000000 )local nome_o = input ( )notice_all ("".. pc.get_name() .." Troca " .. nome_o .. "")endelseif opzioni == 3 thensay ( "Nao tens gold suficiente" )say ( "" )say ( "" )endCumprimentos,Moisés. 5 nicoleroque, RickyM2, Mastema and 2 others reacted to this Share this post Link to post Share on other sites
kikoocunha 35 Posted November 14, 2012 Muito bom. obrigado =D http://cyber-gamers.org/public/style_emoticons/default/451960.gif Share this post Link to post Share on other sites
K3nkσz 824 Posted November 14, 2012 http://cyber-gamers.org/public/style_emoticons/default/451960.gif ;)) Share this post Link to post Share on other sites
RickyM2 122 Posted December 8, 2012 http://cyber-gamers.org/public/style_emoticons/default/451960.gif , unica que funciona 100% Share this post Link to post Share on other sites
VMP. 202 Posted December 8, 2012 Normalmente quando alguém posta algo é porque funciona xD Share this post Link to post Share on other sites
мαя¢σs ๖ۣۣۜDaniel 69 Posted September 8, 2013 Esta quest da-me problema na linha 6 alguém me pode corrigir a quest por favor? :| Share this post Link to post Share on other sites
ShadowKnight 35 Posted September 8, 2013 Tá aqui a quest corrigida. quest nome begin state start begin when 20095.chat."Comércio" begin say_title("Anunciador de Comércio") say("Aqui podes anunciar a tua proposta de comércio") say("por apenas 1kk. A tua mensagem irá ser divulgada") say("por todos os reinos. Percisas também de nivel 15") say_reward("Requere nível 15 e 1.000.000 yang") local menu = select("Anunciar uma Venda", "Anunciar uma Troca", "Anunciar uma Compra", "Não quero Anunciar") if menu == 1 then say_title("Anunciar uma Venda") say("Escreva apenas o nome do item que quer vender") say("as suas caraterísticas e o preço.") say("A sua mensagem ficará no formato :") say_reward("Comércio : 'Nick' Vende 'Texto'.") if pc.gold >= 1000000 and pc . level >= 15 then pc.change_money(-1000000) local texto_venda = input () notice_all (""..pc.get_name().."Vende"..texto_venda.."") end end if menu == 2 then say_title("Anunciar uma Troca") say("Escreva apenas o nome do item que quer trocar") say("as suas caraterísticas e o item que quer obter.") say("A sua mensagem ficará no formato :") say_reward("Comércio : 'Nick' Troca 'Texto'.") if pc.gold >= 1000000 and pc.level >= 15 then pc.change_money(-1000000) local nome_o = input ( ) notice_all ("Comércio :"..pc.get_name().."Troca"..nome_o.."") end end if menu == 3 then say_title("Anunciar uma Compra") say("Escreva apenas o nome do item que quer comprar") say("as suas caraterísticas e quanto deseja por ele.") say("A sua mensagem ficará no formato :") say_reward("Comércio : 'Nick' Vende 'Texto'.") if pc.gold >= 1000000 and pc.level >= 15 then pc.change_money(-1000000) local nome_o = input () notice_all ("Comércio :"..pc.get_name().."Troca".. nome_o .."") end end if menu == 4 then say ("Muito obrigado por usar o Anunciador de Comércio") say ("Boa sorte no seu comércio :] ") end end endend Share this post Link to post Share on other sites
henriques. 99 Posted May 30, 2014 isso é posta em que npc? capitão? cumprimentos, Henrique Soares Share this post Link to post Share on other sites
henriques. 99 Posted May 30, 2014 onde viste na quest esse npc? :c Share this post Link to post Share on other sites
.тιαgσ 624 Posted May 30, 2014 Na mensagem acima da tua mete essa quest corrigida que vai para o npc 20095 Share this post Link to post Share on other sites
henriques. 99 Posted May 30, 2014 e funciona a corrigida? Share this post Link to post Share on other sites
.тιαgσ 624 Posted May 30, 2014 Se está corrigida á partida funciona se não funcionar depois diz qual é erro Share this post Link to post Share on other sites
Renanhideki 3 Posted June 22, 2017 (edited) quest nome begin state start begin when 20003.chat."Comércio" begin -- Aqui é só mudar o npc que deseja . say_title(" Anunciador de Comércio") say("Aqui poderá anunciar a sua proposta de comércio") say("por apenas 1kk. A sua mensagem irá ser divulgada") say("por todos os reinos. Percisa também de nivel 15") say_reward("Requer nível 15 e 1.000.000 gold") local menu = select("Anunciar uma Venda", "Anunciar uma Troca", "Anunciar uma Compra", "Não quero Anunciar") if menu == 1 then if pc . level < 15 then say("Você não possui nível suficiente") return end if pc . gold < 1000000 then say("você não possui gold suficiente") return end say_title("~ Anunciar uma Venda") say("Escreva apenas o nome do item que quer vender") say("as suas caraterísticas e o preço.") say("A sua mensagem ficará no formato :") say_reward("Comércio : 'Nick' Vende 'Texto'.") if pc.gold >= 1000000 and pc . level >= 15 then pc.change_money(-1000000) local texto_venda = input () notice_all (""..pc.get_name().."Vende"..texto_venda.."") end end if menu == 2 then if pc . level < 15 then say("Você não possui nível suficiente") return end if pc . gold < 1000000 then say("Você não possui gold suficiente") return end say_title(" Anunciar uma Troca") say("Escreva apenas o nome do item que quer trocar") say("as suas caraterísticas e o item que quer obter.") say("A sua mensagem ficará no formato :") say_reward("Comércio : 'Nick' Troca 'Texto'.") if pc.gold >= 1000000 and pc.level >= 15 then pc.change_money(-1000000) local nome_o = input ( ) notice_all ("Comércio :"..pc.get_name().." Troca "..nome_o.."") end end if menu == 3 then if pc . level < 15 then say("Você não possui nível suficiente") return end if pc . gold < 1000000 then say("Você não possui gold suficiente") return end say_title(" Anunciar uma Compra") say("Escreva apenas o nome do item que quer comprar") say("as suas caraterísticas e quanto deseja por ele.") say("A sua mensagem ficará no formato :") say_reward("Comércio : 'Nick' Vende 'Texto'.") if pc.gold >= 1000000 and pc.level >= 15 then pc.change_money(-1000000) local nome_o = input () notice_all ("Comércio :"..pc.get_name().."Troca".. nome_o .."") end end if menu == 4 then say ("Obrigado pela sua visita ao Anunciador de Comércio") say ("Boa sorte no seu comércio : ") end end end end Fiz alguma modificações e deu certo, desse jeito , caso o player não tenha level ou gold , ele avisa antes de mostrar o texto completo e de prosseguir . cumprimentos . RenanHideki Edited June 22, 2017 by Renanhideki (see edit history) Share this post Link to post Share on other sites