roriscrave
Advanced OT User
- Joined
- Dec 7, 2011
- Messages
- 1,188
- Solutions
- 34
- Reaction score
- 200
Hi bro, i'm starting to study C/C++, what this code means?
I know player->getLevel() = player Level
attackSkill = player skill (in this case distance)
attackValue (attack of weapon)
and attackFactor (depends if players have full attack/full def. etc)
My doubt is, how this script calculate? Because i tested with a character:
and i printed maxValue, it print "8391"
so i dont understand how this formula calculate
C++:
int32_t maxValue = static_cast<int32_t>(Weapons::getMaxWeaponDamage(player->getLevel(), attackSkill, attackValue, attackFactor) * player->getVocation()->distDamageMultiplier);
I know player->getLevel() = player Level
attackSkill = player skill (in this case distance)
attackValue (attack of weapon)
and attackFactor (depends if players have full attack/full def. etc)
My doubt is, how this script calculate? Because i tested with a character:
Code:
Level: 410
attackSkill: 40
Attack weapon: 2200
Attackvalue:1
distDamageMultiplier:1
so i dont understand how this formula calculate