Ir para conteúdo

Exura Gran Mana


Animal Pak

Posts Recomendados

Na pasta data/spells/scripts/healing crie um arquivo exura gran mana.lua e dentro cole:

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_MANADRAIN)

setCombatParam(combat, COMBAT_PARAM_EFFECT, 37)

setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)

setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

--setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 1.2, -30, 1.6, 0)

 

function onGetFormulaValues(cid, level, maglevel)

min = (level * 2 + maglevel * 3) * 2.2 - 25

max = (level * 2 + maglevel * 3) * 2.5

 

if min < 250 then

min = 250

end

 

return min, max

end

 

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

 

function onCastSpell(cid, var)

return doCombat(cid, combat, var)

end

 

Na pasta data/spells/ adicione no spells.xml :

<instant name="Mana Healing" words="exura gran mana" lvl="350" mana="500" aggressive="0" selftarget="1" exhaustion="800" needlearn="0" script="healing/exura gran mana.lua">
  <vocation name="Sorcerer" />
  <vocation name="Druid" />
  <vocation name="Paladin" />
  <vocation name="Knight" />
  <vocation name="Master Sorcerer" />
  <vocation name="Elder Druid" />
  <vocation name="Royal Paladin" />
  <vocation name="Elite Knight" />
	</instant>

 

Resultado:

6705202.png

 

Créditos:

Sokix

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

  • 1 month later...
×
×
  • Criar Novo...