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

Damage formula explaination?

Fragdonut

Banned User
Joined
Jul 27, 2009
Messages
2,606
Reaction score
0
Location
HDUXZZZ13387
How does these formulas works?
Code:
function onGetFormulaValues(cid, level, maglevel)
	min = -level/6  - maglevel*5.4-17
	max = -level/8 - maglevel*8.5-27
	
		return min, max
end
 
How does these formulas works?
Code:
function onGetFormulaValues(cid, level, maglevel)
	min = -level/6  - maglevel*5.4-17
	max = -level/8 - maglevel*8.5-27
	
		return min, max
end

Here is example:
(lvl*5)+(mag*8)
where is lvl, here is lvl of player, where is mag, here is magic lvl.
Then if we have player with lvl 50 and magic lvl 55 we can set:
(50*2)+(55*3)=265

Now if we have example we must set dmg to some spell.
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -4.2, -200, -4.6, -200)


setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, a, b, c, d)
Example for minimal:
a*+b
Example for maximum:
c*+d

If our spell must make dmg then, numbers A i C are in "-".
Numbers B and D can be "-" or "+".

Here is example:
MINI = -4,2 * 170 – 200 = - 514
MAX = -4,6 * 170 – 200 = - 599

Now server know how much dmg this spell should take
 
Thanks, but you didn't explain everything on my formula, you started to explain on some other one which I didn't ask about.

If I got it right you multiplies the level with the level formula, then you multiply the magic level formula and magic level, then you put these togheter and then you will have the damage. it's right?

but one thing which I doesn't understand what is this (the bold numbers)??
Code:
	min = -level/6  - maglevel*5.4[B]-17[/B]
	max = -level/8 - maglevel*8.5[B]-27[/B]
 
For example if u got :
Code:
	min = ([COLOR="DarkOrange"]level[/COLOR] * 1 + [COLOR="SeaGreen"]maglevel[/COLOR] * 4) * [B]2.08[/B]
	max = ([COLOR="DarkOrange"]level[/COLOR] * 1 + [COLOR="SeaGreen"]maglevel[/COLOR] * 4) * [B]2.7[/B]

Player lvl * 1 - If player lvl 80 then 80*1*2.08=166.4
Player Magic Level * 4 - If player lvl 100 then 100*4*2.7=1080

Now 166.4 + 1080 = 1246

The numbers 2.08 and 2.7 told us that : Rune adding health, dotnt make dmg cos dont have "-".

If u wanted to make better dmg from rune jus edit Level and Magic lvl numers.

You can use 1.3, 1.5 etc...
 
Last edited:
For example if u got :
Code:
	min = ([COLOR="DarkOrange"]level[/COLOR] * 1 + [COLOR="SeaGreen"]maglevel[/COLOR] * 4) * [B]2.08[/B]
	max = ([COLOR="DarkOrange"]level[/COLOR] * 1 + [COLOR="SeaGreen"]maglevel[/COLOR] * 4) * [B]2.7[/B]

Player lvl * 1 - If player lvl 80 then 80*1*2.08=166.4
Player Magic Level * 4 - If player lvl 100 then 100*4*2.7=1080

Now 166.4 + 1080 = 1246

The numbers 2.08 and 2.7 told us that : Rune adding health, dotnt make dmg cos dont have "-".

If u wanted to make better dmg from rune jus edit Level and Magic lvl numers.

You can use 1.3, 1.5 etc...

Thanks! I get it now ;)

@Nema
He talked about another formula setup before
 
Back
Top