• 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!

-

  • Thread starter Thread starter Emky
  • Start date Start date
just burst arrows or all ammo? Change the interruptSwing to True in config.lua for all ammo.. just burst arrows is a source edit
 
k... create a new instance for the burst arrow to interruptSwing

not at home computer but you fix it here player.cpp I believe

Code:
void Player::doAttacking(uint32_t interval)
{
    if(lastAttack == 0){
        // - 1 to compensate for timer resolution etc.
        lastAttack = OTSYS_TIME() - getAttackSpeed() - 1;
    }

    // Can't attack while pacified
    if(hasCondition(CONDITION_PACIFIED))
    {
        return;
    }

    if((OTSYS_TIME() - lastAttack) >= getAttackSpeed() ){
        Item* tool = getWeapon();
        bool result = false;
        const Weapon* weapon = g_weapons->getWeapon(tool);
        if(weapon){
            if(!weapon->interruptSwing()){
                result = weapon->useWeapon(this, tool, attackedCreature);
            }
            else if(!canDoAction()){
                uint32_t delay = getNextActionTime();
                SchedulerTask* task = createSchedulerTask(delay, boost::bind(&Game::checkCreatureAttack,
                    &g_game, getID()));
                setNextActionTask(task);
            }
            else {
                // If the player is not exhausted OR if the player's weapon
                // does not have hasExhaust, use the weapon.
                if(!hasCondition(CONDITION_EXHAUST_COMBAT))
                {
                    result = weapon->useWeapon(this, tool, attackedCreature);
                }
            }
        }
        else{
            result = Weapon::useFist(this, attackedCreature);
        }

        if(result){
            lastAttack = OTSYS_TIME();
        }
    }
}


EDIT: Il fix your problem if you have the code for parcel stack block xD
 
Back
Top