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

Spells

rglf

New Member
Joined
May 26, 2009
Messages
37
Reaction score
0
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.366, 0, -0.641, 0)

local area = createCombatArea(AREA_CIRCLE3X3)
setCombatArea(combat, area)

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

I need help to understand spell

How i get a low hits

-0,366, 0,-0.641, 0

what is it?
 
Code:
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.366, 0, -0.641, 0)

On that line, you choose the damage the spell is going to do depending on the Skills or Magic Level

Code:
COMBAT_FORMULA_LEVELMAGIC

Means it depend on the player magic level

Code:
COMAT_FORMULA_SKILL

Means it depend on the player weapon skill

Code:
-0.366, 0, -0.641, 0

By changing the values "-0.366" and "-0,641" you can change the damage the spell will do. If it's a "LEVELMAGIC" spell, you should use positive values over "0" like "1.2" or "1.4" and so. But always Positive.
If you are using "SKILL" formula, then choose negative values.

Hope it helps :)
 
example SUDDEN DEATH RUNE


local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.3, -30, -1.8, 0)

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




for less damage what i doing??
 
Default:
Code:
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -[COLOR="Red"][B]1.3[/B][/COLOR], -30, -[COLOR="red"][B]1.8[/B][/COLOR], 0)
Less:
Code:
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -[COLOR="Red"][B]1.2[/B][/COLOR], -30, -[COLOR="red"][B]1.7[/B][/COLOR], 0)
Lesser:
Code:
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -[COLOR="Red"][B]1.1[/B][/COLOR], -30, -[COLOR="red"][B]1.6[/B][/COLOR], 0)
Even lesser:
Code:
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -[COLOR="Red"][B]1.0[/B][/COLOR], -30, -[COLOR="red"][B]1.5[/B][/COLOR], 0)

I hope you get the point <_<
 
Back
Top