krycha511
New Member
- Joined
- Dec 24, 2015
- Messages
- 19
- Reaction score
- 0
Hello, I have this server
In creature.h I have this:
In player.cpp:
And attack speed still doesn't work.
What is wrong? When I add attack speed I see no diffrence.
In creature.h I have this:
Code:
#define EVENT_CREATURECOUNT 1
#define EVENT_CREATURE_THINK_INTERVAL 100
Code:
uint32_t Player::getAttackSpeed()
{
Item* weapon = getWeapon();
int32_t attackSpeedzik;
if(weapon && weapon->getAttackSpeed() != 0)
attackSpeedzik = vocation->getAttackSpeed() - (getSkill(SKILL_FIST, SKILL_LEVEL) * 20) - weapon->getAttackSpeed();
else
attackSpeedzik = vocation->getAttackSpeed() - (getSkill(SKILL_FIST, SKILL_LEVEL) * 20);
if(attackSpeedzik > 0)
return (uint32_t) attackSpeedzik;
else
return 1;
}
And attack speed still doesn't work.
What is wrong? When I add attack speed I see no diffrence.