• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[TFS 1.2] Absorb Skill instead of fishing.

qeeq22

New Member
Joined
Oct 31, 2009
Messages
4
Reaction score
0
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:

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;
}
But I think it will be much more difficult. Please help.
 
Back
Top