Jump to content

Recommended Posts

Posted

###ti xriazomai??###  compile to pack...to simantikotero

 

BIMATA:

1.akoulou8iste aftin tin diadromi sto pack sas : .../java/net/sf/l2j/gameserver/skills/Formulas.java

2.Ctrl+F gia na vreite to lethal

3. kante delete apo afto:

 

 

apo edw:

/** Calcul value of lethal chance */

 

 

ews edw:

               else

            return false;

       

        return true;

    }

 

TWRA STIN THESI TOU COPY PASTE AFTON TON KWDIKA:

 

/** New Lethal System by PanKosTrelos*/

    public final boolean calcLethalHit(L2Character activeChar, L2Character target, L2Skill skill)

    {

        int chance1 = Rnd.get(200);

        int chance2 = Rnd.get(200);

        if (chance1 == chance2)

        {

        if (!target.isRaid()  //Make sure target is normal monster or player

                && !(target instanceof L2DoorInstance)

                && !(target instanceof L2NpcInstance && ((L2NpcInstance) target).getNpcId() == 35062))

        {

 

            {

            if (target instanceof L2NpcInstance)

            target.reduceCurrentHp(target.getCurrentHp() / 2, activeChar); // Half monsters HP

                else if (target instanceof L2PcInstance) // If is a active player set his HP to 1

                {

                    L2PcInstance player = (L2PcInstance) target;

                    if (!player.isInvul())

                    {

                        player.setCurrentHp(1);

                    }

                }

            }

        }

        }

        return false;

    }

                /**End New Lethal System by PanKosTrelos*

 

 

 

TWRA GIA NA ALLAKSETE TO % tis lethal (ennoeite pws me java gnoseis kaneis oti 8es kai fysika to share dn einai gia teleiws newbies) :

 

epeksergasia afton ton kwdika :

 

Rnd.get(100)

 

 

 

to 100 einai 1% nomizw

 

[move]good luck[/move]

 

 

yes credits to htttp://forum.ragezone.com

 

Posted

 

1.akoulou8iste aftin tin diadromi sto pack sas : .../java/net/sf/l2j/gameserver/skills/Formulas.java

 

 

Mipos ginete na to kaneis ligo pio analytiko gia emas tous teleiws newbies :D

 

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

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..