Tofame
Intermediate OT User
Hi,
I've found this thread:
I changed:
for
My tfs is 1.4.2 and I got errors during compilation:
Any solution?
I've found this thread:
Fast Attack depends FirstSkill TFS 1.x
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 uint32_t Player::getAttackSpeed() const { int32_t SpeedAttack; SpeedAttack = vocation->getAttackSpeed() - (getSkill(SKILL_FIST, SKILL_LEVEL) * 10); if (SpeedAttack < 500) {...
otland.net
Lua:
uint32_t getAttackSpeed() const;
Code:
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;
}
}
Any solution?