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

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.



  • Posts

    • Okay, I understand. First, to get started by contributing to open projects and learning along the way. Then, when you mention starting my own project privately, do you mean taking a free datapack like L2jMobius and trying to make it functional for an online server? Great, thank you very much — all this information is really helpful. I’ve been reaching out to several server admins here in Argentina, but it seems like none of them have the time or interest to take on an intern or assistant. xd   P.S.: Are you the creator of Hopzone? Brings back memories of when I was a kid, downloading servers at the cyber café. For two dollars, I could spend the whole day playing and eating candy like crazy.   Another question: between L2jMobius, L2jServer, and aCis, which one has ALL of its code free? As you probably noticed, I'm using ChatGPT to help me translate things, lol, and it suggested the following: Project Status Open Source Accepts Juniors? Difficulty L2JMobius Very active Semi-closed Partially (with patches) Medium-High L2JServer Active Fully open Yes (directly on GitHub) Medium aCis Semi-active Unofficial Not very clear Low
    • @Logan22 Are you logan from mmo-dev forum?
    • That's exactly how it’s designed — everything important is handled on the API server side, for example, processing requests to the game server. Each website has its own token/key for authentication; without it, there will be no interaction with the game server. Some data can be stored both on my side and on the server side to avoid making frequent requests to the server, which is logical.   Yes, there’s a lot of old, unused code that just needs to be cleaned up. It was used before, but after major rewrites it was left lying around. It doesn’t interfere with anything — it’s just there and doesn’t affect the system's operation.   Beaver meme kurwa is my favorite. Unfortunately, you don't know Russian — otherwise, you would’ve spotted even more Easter eggs. 😂   I said it’s been installed over 250 times on different domains. You can join my Telegram, there are almost 200 people there — and those are just the ones who entered the chat — and we’ll have a good laugh together at your doubts! 😂😂😂
    • Discord : utchiha_market Telegram : https://t.me/utchiha_market Auto Buy Store : https://utchihamkt.mysellauth.com/ Join our server for more products : https://discord.gg/qtkJASMbKV https://campsite.bio/utchihaamkt  
  • Topics

×
×
  • Create New...