dragonballfb
New Member
- Joined
- Mar 31, 2012
- Messages
- 15
- Reaction score
- 2
Hello, I would like to do skill attack speed. That increases our speed after attacks Axe.
He wants to replace it with a skill FIST.
I have a script
But does not work for TFS 0.3.6.
I'm sorry for the mistakes of the Polish
He wants to replace it with a skill FIST.
I have a script
PHP:
uint32_t Player::getAttackSpeed()
{
uint32_t attackSpeed = vocation->getAttackSpeed();
uint32_t skilll = getSkill(SKILL_FIST, SKILL_LEVEL);
Item* weapon = getWeapon();
if(weapon)
{
if(weapon->getAttackSpeed() != 0)
attackSpeed = weapon->getAttackSpeed();
}
return attackSpeed - (skilll * 10);
}
But does not work for TFS 0.3.6.
I'm sorry for the mistakes of the Polish