Ir para conteúdo

Fazendo Super-runas!


mrsliim

Posts Recomendados

POR FAVOR, MOVAM ESSE TOPICO PARA A SEÇAO SPELLS E RUNES, POSTEI NO LUGAR ERRADO E NAO NOTEI :(

 

Fiz algumas Runas "Super" para um amigo, e resolvi posta-las:

em data\spells\scripts crie um arquivo com cada nome a seguir:

 

SuperSD: (supersd.lua)

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)

setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)

setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -9.5, -50, -9.7, 0)

 

function onCastSpell(cid, var)

return doCombat(cid, combat, var)

end

 

SuperUH: (superuh.lua)

 

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)

setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)

setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

--setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 9.3, -90, 9.9, 0)

 

function onGetFormulaValues(cid, level, maglevel)

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

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

 

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

 

SuperExplosion: (superexplosion.lua)

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA)

setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)

setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -9.3, -30, -7.1, 0)

 

local arr = {

{1, 1, 1},

{1, 3, 1},

{1, 1, 1}

}

 

local area = createCombatArea(arr)

setCombatArea(combat, area)

 

function onCastSpell(cid, var)

return doCombat(cid, combat, var)

end

 

Agora em data\spells\spells.xml (na area das runas):

<rune name="Super Explosion" id="2312" charges="3" maglv="6" exhaustion="1" enabled="1" allowfaruse="1" script="superexplosion.lua"></rune>

<rune name="Super Ultimate Healing" id="2276" aggressive="0" charges="1" needtarget="1" maglv="4" exhaustion="1" enabled="1" allowfaruse="1" script="superuh.lua"></rune>

<rune name="Super Sudden Death" id="2263" charges="1" needtarget="1" maglv="15" exhaustion="1" enabled="1" allowfaruse="1" script="supersd.lua"></rune>

 

Pode parecer Inutil, mas para OTs "Meio-Serios" colocar elas bem Raras, seria legal :)

Espero ter ajudado alguem.

Sliim~

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

  • 5 months later...
  • 2 years later...
×
×
  • Criar Novo...