Jump to content
  • 0

[Help]Problima Re-use Delay Stous Archer Se C6 L2J


Question

Posted

kalispera paidia...mias k eimai kainourios sto create enos server tha ithela tn boitheia sas...antimetwpizw ena problima edw k 4 meres k dn mporw na brw lysh...ayksanw to atk.speed genika g na dw mipws ayto htan to lathos sts archer(gnwrizontas oti tha anebei genika k se olous ts ypoloipous)xwris apotelesma omws...dld ti me 1300 atk.speed ti me 788 atk.speed exei to idio re -use delay mexri to epomeno hit...tha sas parakalousa ean kapios mporei na me boithisei as apantisei sto erwtima m...eyxaristw poly!!

Recommended Posts

  • 0
Posted

ontos......ara uparxi kamia lisi ?

Κανε Compile μονος σου ενα pack

 

        private boolean doAttackHitByBow(Attack attack, L2Character target, int sAtk, int reuse)

    {

        int damage1 = 0;

        boolean shld1 = false;

        boolean crit1 = false;

 

        // Calculate if hit is missed or not

        boolean miss1 = Formulas.getInstance().calcHitMiss(this, target);

 

        // Consumme arrows

        reduceArrowCount(false);

 

        _move = null;

 

        // Check if hit isn't missed

        if (!miss1)

        {

                        // Calculate if shield defense is efficient

            shld1 = Formulas.getInstance().calcShldUse(this, target);

 

            // Calculate if hit is critical

            crit1 = Formulas.getInstance().calcCrit(getStat().getCriticalHit(target, null));

 

            // Calculate physical damages

            damage1 = (int)Formulas.getInstance().calcPhysDam(this, target, null, shld1, crit1, false, attack.soulshot);

        }

 

        // Check if the L2Character is a L2PcInstance

        if (this instanceof L2PcInstance)

        {

            // Send a system message

            sendPacket(new SystemMessage(SystemMessageId.GETTING_READY_TO_SHOOT_AN_ARROW));

 

            // Send a Server->Client packet SetupGauge

            SetupGauge sg = new SetupGauge(SetupGauge.RED, sAtk+reuse);

            sendPacket(sg);

        }

 

        // Create a new hit task with Medium priority

        ThreadPoolManager.getInstance().scheduleAi(new HitTask(target, damage1, crit1, miss1, attack.soulshot, shld1), sAtk);

 

        // Calculate and set the disable delay of the bow in function of the Attack Speed

        _disableBowAttackEndTime = (sAtk+reuse)/GameTimeController.MILLIS_IN_TICK + GameTimeController.getGameTicks();

 

        // Add this hit to the Server-Client packet Attack

        attack.addHit(target, damage1, miss1, crit1, shld1);

 

        // Return true if hit isn't missed

        return !miss1;

Στο κοκκινο πρεπει να ειναι το λαθος σε εσενα..

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