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:
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; }}