antiblock
https://arwen2.global/
  • Chatbox

    Did you check out our Discord? https://discord.gg/FFdvMjk9xA
    You don't have permission to chat.
    Load More
Sign in to follow this  
DarkShadowAngel

[Resolvido]2 Problemas Para Resolver Se Poderem Ajudar

10 posts in this topic

Boas a todos/as.Depois de ter criado um tópico com a explicar que tinha problemas em war, as respostas ajudaram me e agora já da para entrar nas wars.Mas agora tenho +2 problemas que são eles:1º Quando tem war em arena/bandeira. não da para ir ver a war como espectador no beleguim.2º As pedras da alma usando uma com rank neutro é como se usasse 2 e passa de G1 para G3, G3 para G5 e assim sucessivamente.Alguma solução? muito obrigado

Share this post


Link to post
Share on other sites
antiblock
diamwall

Alguem me pode ajudar sff? ou indicarme um --> training_grandmaster_skill.quest sem bugs obrigado.

Share this post


Link to post
Share on other sites

Quest:

quest training_grandmaster_skill begin    state start beginwhen 50513.use begin   say_title("Pedra de Alma")   if pc.get_skill_group() == 0 thensay("Não tens Habilidades "..pc.get_skill_group())return   end   if get_time() < pc.getqf("next_time") then -- and not is_test_server() thenif pc.is_skill_book_no_delay() then   say ( "Com esta Pedra Podes" )    say ( "Perfecionar as tuas habilidades." )    wait()   say_title ( "Que Habilidade Queres Melhorar? " ) else   say ( "Tens que esperar um dia para voltares a ler uma" ) say ( "pedra de alma, ou podes ler um pergaminho de" )say ( "exorcismo para poder continuar o treino." )   returnend   end   local result = training_grandmaster_skill.BuildGrandMasterSkillList(pc.get_job(), pc.get_skill_group())   local vnum_list = result[1]   local name_list = result[2]   if table.getn(vnum_list) == 0 thensay ( "Não há habilidades que se possam melhorar." ) return   end   say ( "Escolhe a habilidade que queres melhorar:" )    say("")   local menu_list = {}   table.foreach(name_list, function(i, name) table.insert(menu_list, name) end)   table.insert(menu_list, "Cancelar")    local s=select_table(menu_list)   if table.getn(menu_list) == s thenreturn   end   local skill_name=name_list[s]   local skill_vnum=vnum_list[s]   local skill_level = pc.get_skill_level(skill_vnum)   local cur_alignment = pc.get_real_alignment()   local need_alignment = 1000+800*(skill_level-30)   test_chat("Karma atual: "..cur_alignment)   test_chat("Precisas de: "..need_alignment)   local title = string . format ( "%s Nivel:  %d de Perfeção" , skill_name , skill_level - 30 + 1 )    say_title(title)   say ( "Estás num processo de melhoramento de habilidades." )    say ( "Recordo que deves ter karma negativo. " )    say("")   if cur_alignment<-19000+need_alignment thensay_reward ( "Os teus pontos de karma são demasiado baixos para continuar." ) return   end   if cur_alignment<0 thensay_reward ( string . format ( "Pontos de Karma: %d -> %d" , need_alignment , need_alignment * 2 ) ) say_reward ( "Mantém-te Dentro dos Limítes Para Obter Maior Probabilidade de Éxito." ) need_alignment=need_alignment*2   elseif cur_alignment<need_alignment thensay_reward ( string . format ( "Pontos de Karma Necessários: %d" , need_alignment ) ) say_reward ( "Em qualquer caso, o teu karma diminuirá." )    elsesay_reward ( string . format ( "Pontos necessários de karma: %d" , need_alignment ) )    end   say("")   local s = select ( "Aceitar" , "Cancelar" )    if s==2 thenreturn   end   if cur_alignment>=0 and cur_alignment<need_alignment thensay_title ( string . format ( "%s Estado" , title ) ) say ( "Tens Pouco Karma" ) say ( "para ler a pedra de alma," ) say ( "Precisas um maior número de karma." ) say("")say_reward ( "Melhorar habilidades'" ) say("")say ( "Queres?" ) local s=input()if s!="Sim" then   returnend   end   if get_time() < pc.getqf("next_time") then -- and not is_test_server() thenif pc.is_skill_book_no_delay() then   pc.remove_skill_book_no_delay()else   say ( "[d: restante" )    returnend   end   pc.setqf("next_time", get_time()+time_hour_to_sec(number(8, 12)))   if need_alignment>0 thenif pc.learn_grand_master_skill(skill_vnum) then   pc.change_alignment(-need_alignment)   say_title ( string . format ( "%s Completada" , title ) )    if 40 == pc.get_skill_level(skill_vnum) thensay(string.format("%s Já esteve Perfeito", skill_name))   elsesay ( string . format ( "[°ª¯Åµ¥¯Å]Subiu %s Até ao Nível %d ." , skill_name , skill_level - 30 + 1 + 1 ) )    end   say("")   say_reward ( "Treino de melhoramento de habilidades com sucesso!" )    say_reward ( string . format ( "Karma perdido: %d " , need_alignment ) )    say("")else   say_title ( string . format ( "%s A Decorrer" , title ) )    say ( "Que dia tão agotador!." )    say("")   say_reward ( "Treino Falhado." )    say("")   pc.change_alignment(-number(need_alignment/3, need_alignment/2))end   end   item.remove()endfunction BuildGrandMasterSkillList(job, group)   GRAND_MASTER_SKILL_LEVEL = 30   PERFECT_MASTER_SKILL_LEVEL = 40   local skill_list = special.active_skill_list[job+1][group]   local ret_vnum_list = {}   local ret_name_list = {}   -- test_chat(string.format("job=%d, group=%d", job, group))   table.foreach(skill_list,    function(i, skill_vnum) local skill_level = pc.get_skill_level(skill_vnum)-- test_chat(string.format("[%d]=%d", skill_vnum, skill_level))if skill_level >= GRAND_MASTER_SKILL_LEVEL and skill_level < PERFECT_MASTER_SKILL_LEVEL then   table.insert(ret_vnum_list, skill_vnum)   local name=locale.GM_SKILL_NAME_DICT[skill_vnum]   if name == nil then name=skill_vnum end   table.insert(ret_name_list, name)end   end)   return {ret_vnum_list, ret_name_list}   --return {ret_vnum_list, ret_name_list}end    endend
Créditos Pacificador.

Share this post


Link to post
Share on other sites

muito obrigado. Em relação ao outro problema alguma solução?-> "Quando tem war em arena/bandeira. não da para ir ver a war como espectador no beleguim."Obrigado

Share this post


Link to post
Share on other sites

O problema da alma foi resolvido mas agora preciso mesmo de conseguir por bem as wars com o problema que tenho nelas.problema --> Quando tem war em arena/bandeira. não da para ir ver a war como espectador no beleguim.alguma solução sff?

Share this post


Link to post
Share on other sites

Está usando as files do Rancoroso?Se for, o locale.lua e questlib.lua estão imcompletos.E o arquivo Game tem alguns bugs. Arrume esses arquivos e consiguirá entrar como espectador nas Guerras.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this