Magictibiaman
New Member
- Joined
- May 25, 2009
- Messages
- 371
- Reaction score
- 0
how do i make the ethereal spear spell work like the explosion rune.
where there are 5 hits. 1 north, 1 south, 1 east , 1 west, 1 in the middle (or some form similar to this)
ethereal spear code
explosion rune code
where there are 5 hits. 1 north, 1 south, 1 east , 1 west, 1 in the middle (or some form similar to this)
ethereal spear code
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, true)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ETHEREALSPEAR)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, -20, 0.8, 0)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
explosion rune code
Code:
local combat = createCombatObject()
local area = createCombatArea(AREA_CROSS1X1)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_EXPLOSION)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.5, 0, -0.9, 0)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end