Ir para conteúdo

Featured Replies

Postado

Nossa tava precisando^^.. Rep++, :-), tem como por limite nos outros skills nesse mesmo script, ou teria que fazer um para cada? Obrigado.

logo.png

sabestudo.com | Em Breve..

 

Gostou? Considere..:   (y)

ou  Donate
  • Respostas 7
  • Visualizações 1.4k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • MaxSword.lua function onLogin(cid) if getPlayerSkillLevel(cid, 0) >= 35 then doPlayerSetRate(cid, 0, 0) end return true end function onAdvance(cid, skill, oldlevel, newlevel) if getPlayerSkil

  • SKILL_FIST = 0 SKILL_CLUB = 1 SKILL_SWORD = 2 SKILL_AXE = 3 SKILL_DISTANCE = 4 SKILL_SHIELD = 5 SKILL_FISHING = 6 SKILL__MAGLEVEL = 7 SKILL__LEVEL = 8

Postado

O tópico foi movido para a área correta, preste mais atenção da próxima vez!

Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680

Este tópico foi movido:

De: "OTServScriptingCreatureScripts, GlobalEvents e MoveMents"

Para: "OTServSuporte OTServSuporte de Scripts"

Postado
tem como por limite nos outros skills nesse mesmo script, ou teria que fazer um para cada?

Basta configurar como sendo true, caso queira o limite em determinado skill. Senão, false.

local skills = {
-- [skill number] = {bvalue = true/false, max = skillLevel}
    [0] = {bvalue = false, max = 115}, -- fist
    [1] = {bvalue = true, max = 115}, -- club
    [2] = {bvalue = true, max = 115}, -- sword
    [3] = {bvalue = true, max = 115}, -- axe
    [4] = {bvalue = true, max = 115}, -- distance
    [5] = {bvalue = true, max = 115}, -- shielding
    [6] = {bvalue = false, max = 115}, -- fishing
    [7] = {bvalue = true, max = 115}, -- magic level
    [8] = {bvalue = false, max = 115} -- level
}

function onAdvance(cid, skill, oldLevel, newLevel)
    local s = skills[skill]
    
    if s and s.bvalue and newLevel >= s.max then return false end
    return true
end

The corrupt fear us.

The honest support us.

The heroic join us.

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