Hello,
I want to make a script, which uses our fishing skill to reduce damage from all elements. For example: when I have 50 fishing skill it will reduce damage from elements for 50* 0,1% = 5%. When I wanted to make attack speed skill I have added in Players.cpp this function:
But I think it will be much more difficult. Please help.
I want to make a script, which uses our fishing skill to reduce damage from all elements. For example: when I have 50 fishing skill it will reduce damage from elements for 50* 0,1% = 5%. When I wanted to make attack speed skill I have added in Players.cpp this function:
Code:
uint32_t Player::getAttackSpeed() const
{
int32_t attkSpeed;
attkSpeed = vocation->getAttackSpeed() - (getSkillLevel(SKILL_AXE) * 10);
if(attkSpeed > 0)
return (uint32_t) attkSpeed;
else
return 1;
}