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

[Spell]setHealingFormula

Peacy

Member
Joined
Mar 20, 2008
Messages
488
Reaction score
10
Location
The Netherlands
Hi,

I was hoping that someone could show to to calculate the min/max damage of this formula.

Level: 15
Mag level: 3

setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 1.795, 11, 1.4, 8)



Kind regards,
Peacy
 
//setCombatFormula(combat, type, mina, minb, maxa, maxb[, minl, maxl[, minm, maxm[, minc[, maxc]]]])

Code:
min = (int32_t)((player->getLevel() / minl + player->getMagicLevel() * minm) * 1. * mina + minb);
max = (int32_t)((player->getLevel() / maxl + player->getMagicLevel() * maxm) * 1. * maxa + maxb);

Code:
mina = 1.795
minb = 11
maxa = 1.4
maxb = 8

so it should be something like this since there is no minm & maxm so i think they should be = 1 or idk

Code:
min = 15 / 1 + 3 * 1) * 1 * 1.795 + 11); = 43
max = 15 / 1 + 3 * 1) * 1 * 1.4 + 8); = 33

dno if its right but iam trying to understand Formula too cuz it annoys me :S
 
I switched the min and the max

COMBAT_FORMULA_LEVELMAGIC, 1.4, 8, 1.795, 11

Now it's working a little bit better but sometimes I heal still 22 or something?

Code:
min = 15 / 1 + 3 * 1) * 1 * 1.4 + 8); = 33

max = 15 / 1 + 3 * 1) * 1 * 1.795 + 11); = 43



Edit
-- Sorry for double post.
 
didn't i explain this already:)
Code:
15/1.795+3*1.4
	12.556545961002785515320334261838
15/11+3*8
	25.363636363636363636363636363636
the formula doesn't make much sense

(17:00:08) <Peacy> I calculate that, and it wasnt anything near my amout of healing
 
didn't i explain this already:)
Code:
15/1.795+3*1.4
    12.556545961002785515320334261838
15/11+3*8
    25.363636363636363636363636363636
the formula doesn't make much sense

(17:00:08) <Peacy> I calculate that, and it wasnt anything near my amout of healing

Ok so now I have a level 40 RP with magic level 3, according to the formula of you I should heal with a maximum of

Code:
(40/11)+(3*8)

	27.63636363636364

But sometimes I heal ~35, ~34 etc so it's not correct?
 
Back
Top