Jump to content
  • 0

need fix change weapon to weapon bug atk spd


Question

Posted (edited)

 

Hi people,add these two codes, but my problem is as follows, he could fix the error of atk spd. It only appears when changing from weapon to weapon, for example the bow is equipped, they attack, and they change to a blade and the bug is executed. What I need is that when there is a weapon exchange, it has a certain hit delay.I have flood protector for movements,only this bug remains.I use jfrozen.



useitem.java

//Eliminando Bug Attack Speed
            if (item.isEquipped())
            {
                activeChar.abortAttack();
                //AGREGAR UN DELAY QUE FUNCIONE
            }
            //Eliminado Bug de Attack Speed
            if (activeChar.isAttackingNow())
            {
              return;
            }

Edited by guishermo15

1 answer to this question

Recommended Posts

  • 0
Posted (edited)

Regular L2J / retail way is to delay the item equip. Simply add it, it's already implemented on L2J. Search for "ThreadPool", you would eventually found it on UseItem.

 

Instead of return when if (activeChar.isAttackingNow()) , you simply have to generate task to do the initial operation. Basically you queue the task of equipping the item.

Edited by Tryskell

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock