Ir para conteúdo

(Resolvido)(PEDIDO/DÚVIDA SCRIPTING) Sobre a mensagem que aparece após o personagem upar tal skill.

Featured Replies

  • Respostas 7
  • Visualizações 535
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Em creaturescripts/scripts cria algum arquivo LUA e coloca isso dentro: local skillMsgs = {     [SKILL_FIST] = "You advanced in fist fighting.",     [SKILL_CLUB] = "You advanced in club fighting.",

  • Ta aí amigo, espero ter ajudado   local skillMsgs = { [SKILL_FIST] = "You advanced in fist fighting. ["..getPlayerSkill(cid, SKILL_FIST).."]", [SKILL_CLUB] = "You advanced in club fighting

Postado
  • Solução

Ta aí amigo, espero ter ajudado

 

local skillMsgs = {
    [SKILL_FIST] = "You advanced in fist fighting. ["..getPlayerSkill(cid, SKILL_FIST).."]",
    [SKILL_CLUB] = "You advanced in club fighting. ["..getPlayerSkill(cid, SKILL_CLUB).."]",
    [SKILL_SWORD] = "You advanced in sword fighting. ["..getPlayerSkill(cid, SKILL_SWORD).."]",
    [SKILL_AXE] = "You advanced in axe fighting. ["..getPlayerSkill(cid, SKILL_AXE).."]",
    [SKILL_DISTANCE] = "You advanced in distance fighting. ["..getPlayerSkill(cid, SKILL_DISTANCE).."]",
    [SKILL_SHIELD] = "You advanced in shielding. ["..getPlayerSkill(cid, SKILL_SHIELD).."]",
    [SKILL_FISHING] = "You advanced in fishing. ["..getPlayerSkill(cid, SKILL_FISHING).."]",
    [SKILL__MAGLEVEL] = "You advanced in magic level. ["..getPlayerMagLevel(cid).."]"
}

function onAdvance(cid, skill, oldlevel, newlevel)
    if(skillMsgs[skill]) then
        doCreatureSay(cid, skillMsgs[skill], TALKTYPE_MONSTER)
    end
    return true
end

Editado por xBen (veja o histórico de edições)

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo