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

Compiling Fix the paldins healing?

DextaaH

Member
Joined
Jul 24, 2011
Messages
335
Reaction score
7
In my ots people said the paladins heal was to weak and a lvl 30 with ml 31 healed almost the same as a lvl 200 paladin. The healing is about 700~
This is my script for divine healing. How to fix that because i dont have any experience to script spells.

PHP:
--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_AGGRESSIVE, FALSE)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)


function getCombatFormulas(cid, lv, maglv)
	local formula_min = ((lv*0.4 + maglv*3) * 4.1)
	local formula_max = ((lv*0.4 + maglv*3) * 4.6)

	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
 
You have to change those formulas to a higher value. Update your spellpack to a newer maybe?

Code:
    local formula_min = ((lv*0.4 + maglv*3) * 4.1)
    local formula_max = ((lv*0.4 + maglv*3) * 4.6)
 

Similar threads

Back
Top Bottom