• 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

Arrish

New Member
Joined
May 28, 2009
Messages
320
Reaction score
1
Location
Sweden
My question is simple how can i do the paladin spell "exura san" weaker than it is ? here is lua and code in spell.xml
Lua:
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

Code in spells :
<instant name="Divine Healing" words="exura san" lvl="35" mana="210" prem="0" selftarget="1" aggressive="0" exhaustion="1000" needlearn="0" script="healing/divine healing.lua">
What should i change for it to heal less?

i give rep
 
Change these lines:

LUA:
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

:)

(To a lower value...)
 
Back
Top