Ir para conteúdo

(Resolvido)[Pedido] LIMIT NAS SKILLS, MENOS NA MAGIC, SOMENTE NAS SKILLS

Featured Replies

Postado

Galera, queria limitar, toda minhas skills, tem player com 500 de fist, alguem ajuda, ai faz uma script, para creaturescripts?

                                                        

Resolvido por tddf1995

Ir para solução
  • Respostas 6
  • Visualizações 1.1k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Testado e funcionando em TFS 0.3.6pl1 (8.54) Em data\creaturescripts\scripts,crie um arquivo chamado: skillblock.lua    

Postado
  • Autor

Sempre falam, em sources, minhas sources ,quando tento compilar da erro, mais antes eu tinha, tinha topico no tibiaking creio que tenha um scripter que possa me ajudar ;)

                                                        

Postado

faz a mesma coisa que eu te ensinei a fazer na magic, só que pra todas as outras skills '-'

Todos os meus trabalhos importantes estão na seção "Sobre mim" no meu perfil; Dá uma passada lá!

"Há três caminhos para o fracasso: não ensinar o que se sabe, não praticar o que se ensina, e não perguntar o que se ignora." - São Beda

I7Pm6ih.png

(obg ao @Beeny por fazer essa linda sign <3)

Postado
  • Solução

Testado e funcionando em TFS 0.3.6pl1 (8.54)

Em data\creaturescripts\scripts,crie um arquivo chamado: skillblock.lua
 

 


function onAdvance(cidskilloldLevelnewLevel)
    if 
skill == SKILL_SWORD then
        
if getPlayerSkillLevel(cidSKILL_SWORD) >= 171 then
                doPlayerSetRate
(cidSKILL_SWORD0.0)
        
end
    
    
elseif skill == SKILL_SWORD then
        
if getPlayerSkillLevel(cidSKILL_FIST) >= 171 then
                doPlayerSetRate
(cidSKILL_FIST0.0)
        
end    
    
return false
    
    
elseif skill == SKILL_AXE then
        
if getPlayerSkillLevel(cidSKILL_AXE) >= 171 then
                doPlayerSetRate
(cidSKILL_AXE0.0)
        
end    
    
return false
    
    
elseif skill == SKILL_CLUB then
        
if getPlayerSkillLevel(cidSKILL_CLUB) >= 171 then
                doPlayerSetRate
(cidSKILL_CLUB0.0)
        
end    
    
return false
    
    
elseif skill == SKILL_DISTANCE then
        
if getPlayerSkillLevel(cidSKILL_DISTANCE) >= 171 then
                doPlayerSetRate
(cidSKILL_DISTANCE0.0)
        
end    
    
return false
    
    
elseif skill == SKILL_SHIELD then
        
if getPlayerSkillLevel(cidSKILL_FIST) >= 171 then
                doPlayerSetRate
(cidSKILL_FIST0.0)
        
end    
    
return false
    
    
elseif skill == SKILL_FISH then
        
if getPlayerSkillLevel(cidSKILL_FISH) >= 171 then
                doPlayerSetRate
(cidSKILL_FISH0.0)
        
end    
    
return false
    
end
end
 
 

Em data/creaturescripts/scripts login.lua adicione essa linha:
 

E em data\creaturescripts em creaturescripts.xml adicione isso:
 

 
 
Creditos: Magoh (otland)

Editado por tddf1995 (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.7k

Informação Importante

Confirmação de Termo