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
  On 10/8/2008 at 4:04 PM, pankostrelos said:

 

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

 

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
Reply to this topic...

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

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