ʀąԲą7q 165 Posted March 3, 2013 oi eu queria uma quest para poder mudar o nome do cavalo se possivel pola no menu do cavalo a subtituir a cena do torrao de açucar ou seja sem pedir nada e a mudar o nomequem ajudar e +++++++++ claro Share this post Link to post Share on other sites
0 'PACI 2,317 Posted March 3, 2013 oi eu queria uma quest para poder mudar o nome do cavalo se possivel pola no menu do cavalo a subtituir a cena do torrao de açucar ou seja sem pedir nada e a mudar o nome quem ajudar e +++++++++ claro Isso de colocar no menu do cavalo, acho que já tens que mexer no questlib.lua... mas ainda assim deixo-te aqui a quest em NPC. Pode ser que resulte, mas não testei: quest cavalo beginstate start begin when idnpc.chat."Mudar o nome do cavalo" begin say("Queres mudar o nome ao cavalo?") local a = select ("Sim", "Não") if a == 1 then local b = input() if b == "" then say("Tens que colocar o nome..") else horse.set_name("..b..") end end endendend 1 ʀąԲą7q reacted to this Share this post Link to post Share on other sites
0 SINOLOGY 220 Posted March 3, 2013 horse_menu.quest quest horse_menu begin state start begin function horse_menu() if horse.is_mine() then say_title("O meu Cavalo") say("") local s = 6 if horse.is_dead() then s = select( "Recuperar o Cavalo", "Ele vai Voltar", "Cancelar") if s == 1 then s = 0 elseif s == 2 then s = 3 elseif s == 3 then return end else s = select( "Alimentar o Cavalo", "Montar o Cavalo", "Mandar embora o Cavalo", "Estado do Cavalo", "Dar nome ao Cavlo", "Fechar") end if s == 0 then horse.revive() elseif s == 1 then local food = horse.get_grade() + 50054 - 1 if pc.countitem(food) > 0 then pc.removeitem(food, 1) horse.feed() else say("Precisas de "..item_name(food)..".") say("") end elseif s == 2 then horse.ride() elseif s == 3 then horse.unsummon() elseif s == 4 then say_title("Estado do cavalo:") say("Vitalidade: "..horse.get_health_pct().."%") say("Resistência: "..horse.get_stamina_pct().."%") say("") elseif s == 5 then if pc.countitem("71110") == 200 then say("Precisas de "..item_name("71110")..".") say("") return end local old_horse_name = horse.get_name() ; say_title("Nome do Cavalo - Alteração") say("Podes alterar o nome do teu cavalo.") say("Boa sorte!") say("") if string.len(old_horse_name) == 0 then say_reward("Não podes dar nome ao teu cavalo.") else say_reward("O nome do cavalo agora é "..old_horse_name..".") end say("") say("Escreve aqui o novo nome:") say("") local horse_name = input() if string.len(horse_name) < 2 then say_title("Nome do Cavalo Alteração") say("O nome é muito curto.") say("") return elseif string.len(horse_name) > 12 then say_title("Nome do Cavalo Alteração") say("O nome é muito comprido.") say("") return end local ret = horse.set_name(horse_name) say_title("Nome do Cavalo Alteração") if ret == 0 then say_reward("Neste momento não tens cavalo?") say("") elseif ret == 1 then say_reward("Não podes utilizar este nome!") say("") elseif ret == 2 then pc.remove_item("71110") say("Foi dado um novo nome ao seu cavalo com sucesso!") say("") end end end end when 20030.click begin horse_menu.horse_menu() end when 20101.click begin horse_menu.horse_menu() end when 20102.click begin horse_menu.horse_menu() end when 20103.click begin horse_menu.horse_menu() end when 20104.click begin horse_menu.horse_menu() end when 20105.click begin horse_menu.horse_menu() end when 20106.click begin horse_menu.horse_menu() end when 20107.click begin horse_menu.horse_menu() end when 20108.click begin horse_menu.horse_menu() end when 20109.click begin horse_menu.horse_menu() end endend 1 ʀąԲą7q reacted to this Share this post Link to post Share on other sites
0 ʀąԲą7q 165 Posted March 3, 2013 boss tipo eu isso ja tenho soque o torrao ta bugado e nao da pacificador mete a quest ja num npc sff mete no ra paz do estabulo sff Share this post Link to post Share on other sites
0 SINOLOGY 220 Posted March 3, 2013 rafa7q eu editei a quest de maneira a não verificar se tens ou não o açucar. O pacificador foi deitar-se. Cumprimentos; BOSS. Share this post Link to post Share on other sites
0 ʀąԲą7q 165 Posted March 3, 2013 ah ok vou testar entao ja te comunico e sory pensei que era a mesma que eu ja tinha Share this post Link to post Share on other sites
0 SINOLOGY 220 Posted March 3, 2013 Está a funcionar, precisei também para o meu servidor, assim tira algumas complicações em jogo. Se estiver http://cyber-gamers.org/public/style_emoticons/default/451960.gif pff! :P Cumprimentos; BOSS. 1 ʀąԲą7q reacted to this Share this post Link to post Share on other sites
0 ʀąԲą7q 165 Posted March 4, 2013 obrigada pela a ajuda ja percebi que tenho mesmo de actualizar as minhas files mas levam +claro !!!!! Share this post Link to post Share on other sites
0 SINOLOGY 220 Posted March 4, 2013 Assim que atualizares e se tiveres algum problema, é só criar tópicos, estou cá para ajudar a todos. Cumprimentos; BOSS. Share this post Link to post Share on other sites
0 ʀąԲą7q 165 Posted March 4, 2013 eu bem tento actualizar mas da erro e nao chego a perceber o porque sinseramente que cena mais complicada Share this post Link to post Share on other sites
oi eu queria uma quest para poder mudar o nome do cavalo se possivel pola no menu do cavalo a subtituir a cena do torrao de açucar ou seja sem pedir nada e a mudar o nomequem ajudar e +++++++++ claro
Share this post
Link to post
Share on other sites