Jump to content

Recommended Posts

Posted

What this does is it makes ALL skills lethal at a % that you set. By ALL skills I mean mage and physical skills that deal damage. A lethal on a monster = halves it's current HP. A lethal on a player = Ignores CP and sets players current HP to 1.

 

No, I'm not going to create a patch. Why?

1. I don't want to.

2. If your server is good enough, it has a good developer who can implement this with the steps I'm about to give you.

 

 

STEPS:

1. Go into your pre-compiled project and open this file... /java/net/sf/l2j/gameserver/skills/Formulas.java

 

2. Ctrl+F and search for lethal.

Delete all the way from

 

/** Calcul value of lethal chance */

 

 

 

to

       else

           return false;

       

       return true;

   }

 

 

Now, in it's place, put this code:

 

/** New Lethal System by Newface*/

   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  Newface*/

 

 

Now, to change % of lethal, see this?:

Rnd.get(100)

 

 

 

That 500 means that the lethal chance is 1%

100 means its 1%

200 means its .5%

500 means its .2%

1000 means its .1%

 

Make sure to change it in BOTH places! Enjoy all.

 

Now, you may be asking... why was this done? Well, I run a PvP server and the lethal system is bad for a place where you can get all skills / best items / best buffs really easily. So, I decided, that instead of disabling lethal system, I changed it. I made it so everyone has the same, small, % to lethal.

 

credits:Newface*

  • 1 month later...
Posted

petmezis wraia ola afta ala pes kiolas pos pame sto /java/net/sf/l2j/gameserver/skills/Formulas.java

 

paparas eisai? valto kapou!

[gr]eleos xazoi iste? otan milate elinika na bazete Gr Tags . kai btw ti pos pane sto java/net/sf/l2j/gameserver/skills/Formulas.java mathe java kai tha dis pos pane :) xriazese eclipse search button ftw ? .
Posted

[gr]eleos xazoi iste? otan milate elinika na bazete Gr Tags . kai btw ti pos pane sto java/net/sf/l2j/gameserver/skills/Formulas.java mathe java kai tha dis pos pane :) xriazese eclipse search button ftw ? .

ELA RE DARKSLAYER paLkaR

giati na koumposoume tagkies?siga to prama =X

Posted

That 500 means that the lethal chance is 1%

100 means its 1%

200 means its .5%

500 means its .2%

1000 means its .1%

 

dont' change with enchant level?

 

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


  • Posts

    • Hello everyone, We’re happy to announce that Top.MaxCheaters.com has officially opened! Top.MaxCheaters.com is a brand-new Lineage 2 Top Listing website, created to give L2 servers a clean, fair, and simple way to gain visibility. 🔹 What we offer Lineage 2–focused top listing Simple and fast server submission Clean and modern design No voting system Equal exposure for all servers The project is part of the MaxCheaters.com network and is built specifically for the Lineage 2 community. All Lineage 2 servers are welcome — including Interlude, High Five, Classic, Essence, and custom projects. 🔗 Website 👉 https://Top.MaxCheaters.com This is just the beginning. Improvements and new features will be added over time. Thank you for your support, MaxCheaters.com Team
    • Hello everyone, We’re happy to announce that Top.MaxCheaters.com has officially opened! Top.MaxCheaters.com is a brand-new Lineage 2 Top Listing website, created to give L2 servers a clean, fair, and simple way to gain visibility. 🔹 What we offer Lineage 2–focused top listing Simple and fast server submission Clean and modern design No voting system Equal exposure for all servers The project is part of the MaxCheaters.com network and is built specifically for the Lineage 2 community. All Lineage 2 servers are welcome — including Interlude, High Five, Classic, Essence, and custom projects. 🔗 Website 👉 https://Top.MaxCheaters.com This is just the beginning. Improvements and new features will be added over time. Thank you for your support, MaxCheaters.com Team  
    • Sharing https://iperfect.dev/ <div><h1>⚠️ DevTools Detected</h1><p>Please close developer tools to view this page.</p></div> who does that // Console warning message console.clear(); console.log('%câš ï¸� STOP!', 'color: red; font-size: 48px; font-weight: bold;'); console.log('%cThis is a protected website. Unauthorized copying is prohibited.', 'color: #333; font-size: 16px;'); console.log('%c© iPerfect — All rights reserved', 'color: #666; font-size: 12px;'); you open the website means (you copy his files in your browser) you are right away tresspassing    https://maxcheaters.com/search/?q=iperfect&quick=1      https://limewire.com/d/CqJOa#weyDvJazQ1    why robbing people from ctrl+u? whats wrong with you  
    • TILL OPENING LEFT -  3 DAYS ! NEW SEASON STARTS FROM - 23/01/2026, FRIDAY, 20:00 +3 GMT !
  • Topics

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

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