andu
Sold 649 scripts, 25 maps and 9 events!
Found sth like this:
But, what is the value of getWeaponDamage? Where I can find it?
Code:
case COMBAT_FORMULA_SKILL: {
Item* tool = player->getWeapon();
const Weapon* weapon = g_weapons->getWeapon(tool);
if (weapon) {
damage.primary.value = normal_random(
static_cast<int32_t>(minb),
static_cast<int32_t>(weapon->getWeaponDamage(player, target, tool, true) * maxa + maxb)
);
...
But, what is the value of getWeaponDamage? Where I can find it?