
navegador
Membro
-
Registro em
-
Última visita
Histórico de Curtidas
-
navegador deu reputação a Dean183 em Aumentando attackspeed por fist(sem usar sources)mudar a arma pra fist é só pra o player conseguir treinar dito atributo na velocidade correta, se vc tiver uma arma de axe que dá mais 50 do skill fist ela vai bater mais rápido sim
-
navegador deu reputação a MaXwEllDeN em Spell Info ao avançar o levelBem, pessoal. O script foi criado a partir do pedido do membro loreal:
Sem mais delongas, para instalar é simples:
Crie o arquivo creaturescripts/scripts/advancespells.lua e adicione o seguinte conteúdo:
function onAdvance(cid, skill, oldLevel, newLevel) if skill == SKILL__LEVEL then local spells = {} for index = 0, getPlayerInstantSpellCount(cid) - 1 do local spell = getPlayerInstantSpellInfo(cid, index) if spell.level > oldLevel and spell.level <= newLevel then table.insert(spells, " [".. spell.name .."] \"".. spell.words .. "\" Mana[".. spell.mana .."]") end end if #spells > 0 then doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, "You have just advanced to level ".. newLevel .." and learned new spells!") for _, v in pairs(spells) do doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, v) end end end return true end No arquivo creaturescripts/creaturescripts.xml adicione a tag:
<event type="advance" name="AdvLevelSpells" event="script" value="advancespells.lua" /> No seu arquivo creaturescripts/scritps/login.lua adicione a seguinte linha ANTES DO ÚLTIMO return true:
registerCreatureEvent(cid, "AdvLevelSpells") Exemplo:
registerCreatureEvent(cid, "AdvLevelSpells") return true end