Ir para conteúdo
  • 0

Como mudar as skills iniciais de todas as vocações 8.60?


ravely13

Pergunta

5 respostass a esta questão

Posts Recomendados

  • 0

Abra a pasta data/XML e abra o arquivo vocations.xml

Este é um exemplo informativo para você editar os skills de uma vocation:

 

<vocation id="8" name="Elite Knight" description="an elite knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="250" gainmanaticks="4" gainmanaamount="150" manamultiplier="3.0" attackspeed="590" soulmax="200" gainsoulticks="15" fromvoc="4" lessloss="30">

<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>

<skill fist="1.1" club="1.1" sword="1.3" axe="1.1" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>

 

Legendas

First Fighting

Club

Sword

Axe

Distance

Shielding

Fishing

Experience

Apenas modifique, o valor máximo é 100 para cada um dos skills da vocation.

Link para o comentário
Compartilhar em outros sites

  • 0

Vá na pasta data/creaturescripts/scripts crie um arquivo chamado startskills.lua, adicione isso dentro:

 

function onLogin(cid)
local playerVoc = getPlayerVocation(cid)
local reqTries = getPlayerRequiredSkillTries
local skillStor = 56364
local gotSkills = getPlayerStorageValue(cid, 56364)


if playerVoc == 1 or 5 and gotSkills == -1 then
doPlayerAddSkillTry(cid, SKILL_SHIELD, reqTries(cid, SKILL_SHIELD, 80))
doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,80)))
setPlayerStorageValue(cid, skillStor, 1)

elseif playerVoc == 2 or 6 and gotSkills == -1 then
doPlayerAddSkillTry(cid, SKILL_SHIELD, reqTries(cid, SKILL_SHIELD, 80))
doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,80)))
setPlayerStorageValue(cid, skillStor, 1)

elseif playerVoc == 3 or 7 and gotSkills == -1 then
doPlayerAddSkillTry(cid, SKILL_DISTANCE, reqTries(cid, SKILL_DISTANCE, 115))
doPlayerAddSkillTry(cid, SKILL_SHIELD, reqTries(cid, SKILL_SHIELD, 90))
doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,30)))
setPlayerStorageValue(cid, skillStor, 1)

elseif playerVoc == 4 or 8 and gotSkills == -1 then
doPlayerAddSkillTry(cid, SKILL_AXE, reqTries(cid, SKILL_AXE, 100))
doPlayerAddSkillTry(cid, SKILL_SWORD, reqTries(cid, SKILL_SWORD, 100))
doPlayerAddSkillTry(cid, SKILL_CLUB, reqTries(cid, SKILL_CLUB, 100))
doPlayerAddSkillTry(cid, SKILL_SHIELD, reqTries(cid, SKILL_SHIELD, 100))
doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,10)))
setPlayerStorageValue(cid, skillStor, 1)

end
return TRUE
end

 

Agora adicione essa tag no arquivo creaturescripts.xml:

 

<event type="login" name="StartSkills" event="script" value="startskills.lua"/>

 

HidekiTy, oque você postou não seria para balancear as vocations? Seria os rates do Skill UP creio eu!

Editado por Roksas
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...