• 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 Balancing Spell >.<

bolero

MikeHere
Joined
Apr 13, 2009
Messages
1,146
Reaction score
12
Location
Venezuela
I have spell and it's healing to mage's Humm... 1500+ 2000+ hp :S
And paladin's only healing 600 max :S? wtf!

Lua:
--Calculed by ta4e--
--For tibia 8.22--
--Made in 12/09/08--
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

function getCombatFormulas(cid, lv, maglv)
	local formula_min = ((lv*0.25 + maglv*3) * 3.8)
	local formula_max = ((lv*0.25 + maglv*3) * 4.2)

	if(formula_max < formula_min) then
		local tmp = formula_max
		formula_max = formula_min
		formula_min = tmp
	end
	return formula_min, formula_max
end


setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "getCombatFormulas")


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

Help Please. :)
 
Read your formula, its using magiclevel x 3 to boost the amount healed for higher magic levels. Paladins have lower magiclevel then sorcerers, so they will receive a penalty for less mlvl. try something like
Code:
        local formula_min = ((lv*0.25 + maglv*1) * 7.8)
        local formula_max = ((lv*0.25 + maglv*1) * 8.2)
 
Back
Top Bottom