metiu11
Member
- Joined
- Mar 26, 2011
- Messages
- 94
- Solutions
- 2
- Reaction score
- 5
Hello guys,
I want to create fast attack skill in my server.
So i was used this:
It works but i think its too slow. I got 190 FA skill. so its 2000- 190*10=2000-1900=100
I was change score to 1 and still too slow... I saw a lot of servers with faster AS.
Can i change it somewhere? to be faster? please help
I want to create fast attack skill in my server.
So i was used this:
Code:
uint32_t Player::getAttackSpeed()
{
uint32_t attackSpeed = vocation->getAttackSpeed();
uint32_t skilll = getSkill(SKILL_AXE, SKILL_LEVEL);
Item* weapon = getWeapon();
if(skilll > 190)
skilll = 190;
if(weapon && weapon->getAttackSpeed() != 0)
attackSpeed = weapon->getAttackSpeed();
return attackSpeed - (skilll * 10);
}
Code:
#define EVENT_CREATURECOUNT 1
#define EVENT_CREATURE_THINK_INTERVAL 100
It works but i think its too slow. I got 190 FA skill. so its 2000- 190*10=2000-1900=100
I was change score to 1 and still too slow... I saw a lot of servers with faster AS.
Can i change it somewhere? to be faster? please help