Jump to content
  • 0

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


mpafopaido

Question

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

Link to comment
Share on other sites

Recommended Posts

  • 0

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;

Στο κοκκινο πρεπει να ειναι το λαθος σε εσενα..
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...