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

formula calculating

Simonp1512

DBhispano
Joined
Feb 22, 2009
Messages
62
Reaction score
3
hi people
how can help me to explain how to calculate this formula?
Code:
return -(((skill * 50) / 3) + (level / 5)), -((skill * 50) + (level / 5))

thxx!

What is this formula for? min - max hit for a spell or what?
 
Last edited by a moderator:
it's simple math, you should be able to calculate it yourself
replace skill with the skill level of the player (skill uses the player's weapon to determine the type of skill level to get. aka using a bow, skill will be distance level, axe = axe skill, fist = fist skill, etc)
replace level with the level of the player
and yes, it is a min, max formula (see the comma between the two calculations, returns two values)
then in sources it uses that min, max and basically does math.random(min, max) for the damage value when you cast spell/use the weapon
 
Back
Top