• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

C++ Fast Attack

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:
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 :)
 
Solution
If you want it faster just put:

#define EVENT_CREATURE_THINK_INTERVAL 50

Put your axe skill 150 and test it.

Remember to put your vocation attack speed 2000.
If you want it faster just put:

#define EVENT_CREATURE_THINK_INTERVAL 50

Put your axe skill 150 and test it.

Remember to put your vocation attack speed 2000.
 
Last edited:
Solution
wow it works now xD I was change my source to another and its ok but... If i shoot with distance weapon and used potions he stop shooting like 1 sec and start again shooting. Its seems like exhaust blocked distance shots ?
 
Back
Top