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

Fast Attack depends FirstSkill TFS 1.x

115820

Member
Joined
Feb 27, 2011
Messages
193
Solutions
1
Reaction score
5
Location
London, England
I want make fast attack depends from First Skill. In TFS 0.3.7 have this code.
But i want change in TFS 1.2

Code:
uint32_t Player::getAttackSpeed() const
{
    int32_t SpeedAttack;
    SpeedAttack = vocation->getAttackSpeed() - (getSkill(SKILL_FIST, SKILL_LEVEL) * 10);

    if (SpeedAttack < 500) {
        return 500;
    } else {
        return (uint32_t) SpeedAttack;
    }
}
 
This is what I would first try and check the errors if some appear..
C++:
uint32_t getAttackSpeed() const {
    int32_t SpeedAttack;
    SpeedAttack = vocation->getAttackSpeed() - (getSkill(SKILL_FIST, SKILL_LEVEL) * 10);

    if (SpeedAttack < 500) {
        return 500;
    } else {
        return (uint32_t) SpeedAttack;
    }
}
Oh thanks, but i already done. THANKS SO MUCH!!!!
 
Back
Top