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

    • Dear partners! At the moment we are in great need of the following positions: — Snapchat old and new accounts | With snapscores | Geo: Europe/USA | Full access via email/phone number — Reddit old (brute or hacked origin, self-registered) accounts with post and comment karma from 100 to 100,000+ | Full email access included — LinkedIn old accounts with real connections | Geo: Europe/USA | Full email access + active 2FA password — Instagram old accounts (2010–2023) | Full email access (possibly with active 2FA password) — Facebook old accounts (2010–2023) | Full email access (possibly with active 2FA password) | With friends or without friends | Geo: Europe/USA/Asia — Threads accounts | Full email access (possibly with active 2FA password) — TikTok/Facebook/Google ADS Agency advertising accounts — Email accounts: mail.ru, yahoo.com, gazeta.pl, gmx.ch / gmx.de / gmx.net (BUT NOT gmx.com) — Google ADS Manual Farm accounts (verified via email and phone number) | GEO: USA/Europe, mostly USA. — WhatsApp OLD Accounts — Twitter accounts with followers and posts (old accounts) Contact us via the details below. We will be glad to cooperate! We are also ready to consider other partnership and collaboration options. Active links to our projects: Digital goods store (Website): Go to Store Telegram bot: Go to – convenient access to the store via the Telegram messenger. Virtual numbers service: Go to Telegram bot for purchasing Telegram Stars: Go to – fast and profitable purchase of Stars in Telegram. SMM Panel: Go to – promotion of your social media accounts. Contacts and support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Dear partners! At the moment we are in great need of the following positions: — Snapchat old and new accounts | With snapscores | Geo: Europe/USA | Full access via email/phone number — Reddit old (brute or hacked origin, self-registered) accounts with post and comment karma from 100 to 100,000+ | Full email access included — LinkedIn old accounts with real connections | Geo: Europe/USA | Full email access + active 2FA password — Instagram old accounts (2010–2023) | Full email access (possibly with active 2FA password) — Facebook old accounts (2010–2023) | Full email access (possibly with active 2FA password) | With friends or without friends | Geo: Europe/USA/Asia — Threads accounts | Full email access (possibly with active 2FA password) — TikTok/Facebook/Google ADS Agency advertising accounts — Email accounts: mail.ru, yahoo.com, gazeta.pl, gmx.ch / gmx.de / gmx.net (BUT NOT gmx.com) — Google ADS Manual Farm accounts (verified via email and phone number) | GEO: USA/Europe, mostly USA. — WhatsApp OLD Accounts — Twitter accounts with followers and posts (old accounts) Contact us via the details below. We will be glad to cooperate! We are also ready to consider other partnership and collaboration options. Active links to our projects: Digital goods store (Website): Go to Store Telegram bot: Go to – convenient access to the store via the Telegram messenger. Virtual numbers service: Go to Telegram bot for purchasing Telegram Stars: Go to – fast and profitable purchase of Stars in Telegram. SMM Panel: Go to – promotion of your social media accounts. Contacts and support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • 冬天是享受优惠、省钱的好时机。 首次下单时使用促销码 SOCNET 即可获得 15% 折扣 ,适用于全场商品! 前往商店(网站) 前往商店(Telegram 机器人)
    • Winter is the time to save with benefits. Activate the promo code SOCNET on your first order and get a 15% discount on the entire assortment! Go to the store (website) Go to the store (Telegram bot)
    • Winter is the time to save with benefits. Activate the promo code SOCNET on your first order and get a 15% discount on the entire assortment! Go to the store (website) Go to the store (Telegram bot)
  • Topics

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