Fast Attack depends FirstSkill TFS 1.x

115820

New Member
Joined
Feb 27, 2011
Messages
137
Best answers
1
Reaction score
0
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
16
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
137
Best answers
1
Reaction score
0
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