• 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

New Member
Joined
Feb 27, 2011
Messages
172
Best answers
1
Reaction score
2
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;
    }
}
 

Dangara

Owner of Last World
Joined
Mar 12, 2011
Messages
73
Best answers
0
Reaction score
18
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;
    }
}
 
OP
115820

115820

New Member
Joined
Feb 27, 2011
Messages
172
Best answers
1
Reaction score
2
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!!!!
 
Top