• 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!

Damage enemy spell

Santy

Member
Joined
Aug 14, 2007
Messages
654
Reaction score
22
This is a spell like exura sio, only that it attacks Oo

Code:
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)
function onGetFormulaValues(cid, level, maglevel)
	min = -(level * 30) / 5
	max = -(level * 50) / 5
	
	return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end

Put this in spells.xml
Code:
<instant name="Damage Enemy" words="exevo dam" aggressive="1" params="1" needtarget="1" lvl="55" maglv="55" mana="420" soul="0" exhaustion="1" prem="0" enabled="1" script="damage enemy.lua"><vocation id="1"/><vocation id="2"/><vocation id="5"/><vocation id="6"/></instant>

P.S: You may want to change the dmg..
 
yup thanks i used this spell in my server ... rox =D
 
Back
Top