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

Lua New spell formulas

Demonkil

Beginner Mapper
Joined
Dec 21, 2007
Messages
468
Reaction score
12
Well i just noticed as i update my ot to 8.54 the spell damages are really bad, so i had a look at the spells and seen it had changed. could some one please tell me what to change or what they mean.
This is my old sd:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
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.2, -30, -1.4, 0)

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


This is the new sd:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
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, -60, -1, -60, 5, 5, 4, 7)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
 
min: (a/5) + (b*c)
max: (a/5) + (b*d)

a = Character's Level
b = Character's Magic Level
c = Multiplier for min of the desired attack spell/rune
d = Multiplier for max of the desired attack spell/rune

Means:
1, -60, -1, -60, 5, 5, 4, 7
c= 4 d= 7
The 5'es are always in the formula
The 1, -60 is the minimum extra damage (damage + 60)
The other is the max extra damage (damge + 60)
 
Back
Top