• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

make the ethereal spear work like explosion rune?

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
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
 
Well. Learn to read. Then you will be able.
Some hints?
* AREA_CROSS1X1
* setCombatArea(combat, area)
 
Back
Top