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

How to change dmg on spells? I WILL GIVE REP!

zarw1337

Realera Hosting
Joined
Jun 22, 2008
Messages
66
Reaction score
0
Hello!


I want to get the SD dmg, just a littlebit higher, and Exura San so it heal just abit lower.. Can somebody help me? :)


Because pallys is insaine with the heal and the mages need some more sd dmg.

You will get my rep ofc! :)

EXURA SAN, HEAL:

Code:
:local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

function onGetFormulaValues(cid, level, maglevel)
	local min = (level * 3 + maglevel * 3) * 2.08
	local max = (level * 3 + maglevel * 3) * 2.7
	return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

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

Sudden Death rune!

Code:
 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.4, -30, -2.0, 0)

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

Thanks! :)
 
function onGetFormulaValues(cid, level, maglevel)
local min = (level * 3 + maglevel * 3) * 2.08
local max = (level * 3 + maglevel * 3) * 2.7
return min, max

the 2.08 and the 2.7

one is your max and one is your minimum... mit it like 1.80 and 2.4 and save it in LUA FORMAT

sorry and i just read it was your exura san so do the oposite and raise it.
 
Depends on how much the spell has to hit.

Code:
function onGetFormulaValues(cid, level, maglevel)
	local min = (level * 3 + maglevel * 3) * 2.08
	local max = (level * 3 + maglevel * 3) * 2.7
	return min, max
end

for hard dmg use this:
Code:
function onGetFormulaValues(cid, level, maglevel)
	local min = (level * 3 + maglevel * 3) * 4.5
	local max = (level * 3 + maglevel * 3) * 5.3
	return min, max
end

for a bit more dmg than your example use this:
Code:
function onGetFormulaValues(cid, level, maglevel)
	local min = (level * 3 + maglevel * 3) * 3.1
	local max = (level * 3 + maglevel * 3) * 3.9
	return min, max
end


Just change it in your script
 
Back
Top