antiblock
Cyphriun
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
ʀąԲą7q

Quest Para Mudar O Nome Do Cavalo

Question

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

9 answers to this question

  • 0

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

Share this post


Link to post
Share on other sites
antiblock
Elveron
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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

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

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

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

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this