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

[REQUEST/QUESTION] Changing damage.

Filipeck

New Member
Joined
Sep 14, 2008
Messages
6
Reaction score
0
I want to change damage formula to:

min = ((lvl + (skill * 1,5)) * (weapon atk/25))
max = (((lvl*1,5) + (skill * 1,8)) * (weapon atk/20))

I was trying to do it on my own but I'm just a beginer in programming. If anyone can tell me how I can change it I would be thnakful. (I think it's in combat.cpp below magic lvl formula, but everything I tried failed).
 
Open combat.cpp and press CTRL + F (Search), and type:
Code:
switch(formulaType)
Then, you will be in 78 code line. Under this line are placed formulas for levelmagic, skill and value (I don't know this formula). Just change one of this line:
Code:
				min = (int32_t)((player->getLevel() * 2 + player->getMagicLevel() * 3) * 1. * mina + minb);
				max = (int32_t)((player->getLevel() * 2 + player->getMagicLevel() * 3) * 1. * maxa + maxb);
if you want change LEVELMAGIC formula,
Code:
max = (int32_t)(weapon->getWeaponDamage(player, target, tool, true) * maxa + maxb);
if you want to change SKILL formula. I don't know VALUE formula, so I won't give you how to change (because I don't know :p).


Yours,
Gelio

@down
Sorry, I'm learning english only 1 year.
 
Last edited:
Back
Top