• 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 increment power to this spells?

Sublime

11.12.11
Joined
Mar 18, 2010
Messages
1,427
Reaction score
61
Location
Mexico
As the title says, how can i increment the power about this spells

Exana Mort (I want it to heals like 2,000 in lvl like 250~)
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)
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 11, 15)

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


Exori Gran ( the normal exori gran attack like 400 hp to players, i want to hit that like 600 or 700 ~ )

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
setCombatParam(combat, COMBAT_PARAM_USECHARGES, true)

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

function onGetFormulaValues(cid, level, skill, attack, factor)
	local skillTotal, levelTotal = skill + attack * 2, level / 5
	return -(skillTotal * 3.0 + levelTotal), -(skillTotal * 5 + levelTotal)
end

setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end

UH ( Make it Stronger healing )
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_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 10, 12)

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

Ultimate Healing Potion (Make it Stronger healing )
Were is it? and how can make it steronget ?


THANKS! :thumbup:^_^
PD: ill rep+ the person who help me with this ;)
 
Yes i know, the problem is that i don't know what are the meaning of that numbers, i know that are of the attack, but i don't know what number i need to modify :S
 
local skillTotal, levelTotal = skill + attack * 2, level / 5
return -(skillTotal * 3.0 + levelTotal), -(skillTotal * 5 + levelTotal)

in this one the 3.0, 2 and second 5 + and first 5 - to make it stronger

setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 10, 12)

on this one all numbers + to make it stronger

setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 11, 15)

this one all numbers + to make it stronger

remember simple maths
 
This is formula:
Code:
MinDmg = (Level + ML * 4) * MinA + MinB
MaxDmg = (Level + ML * 4) * MaxA + MaxB
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, MinA, MinB, MaxA, MaxB)

I think that for Healing it's the same
 
Back
Top