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

C++ Attack speed on sources

DimitriKovarsk

New Member
Joined
Jun 19, 2016
Messages
26
Reaction score
0
Hello everyone. I got a code that makes attack speed faster based on player's fist fighting skill. The problem is, my server is a TFS 1.2 and the code isn't made for 1.2.

I don't know how to make conversions, so I'm asking for your help.

The codes can be found on player.cpp and they need to be replaced like these:

C++:
uint32_t PlayergetAttackSpeed() const


C++:
uint32_t PlayergetAttackSpeed() const{    int32_t SpeedAttack;    SpeedAttack = vocation->getAttackSpeed() - (getSkill(SKILL_FIST, SKILL_LEVEL) * 10);    if (SpeedAttack < 500) {        return 500;    } else {        return (uint32_t) SpeedAttack;    }}
 
Back
Top