Jump to content

Recommended Posts

Posted
Index: java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java

===================================================================

--- java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java   (revision 4194)

+++ java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java   (working copy)

@@ -178,6 +179,7 @@

import com.l2jserver.gameserver.network.serverpackets.ExOlympiadUserInfo;

import com.l2jserver.gameserver.network.serverpackets.ExPrivateStoreSetWholeMsg;

import com.l2jserver.gameserver.network.serverpackets.ExSetCompassZoneCode;

+import com.l2jserver.gameserver.network.serverpackets.ExShowScreenMessage;

import com.l2jserver.gameserver.network.serverpackets.ExSpawnEmitter;

import com.l2jserver.gameserver.network.serverpackets.ExStartScenePlayer;

import com.l2jserver.gameserver.network.serverpackets.ExStorageMaxCount;

@@ -313,6 +315,10 @@

   public static final int STORE_PRIVATE_BUY = 3;

   public static final int STORE_PRIVATE_MANUFACTURE = 5;

   public static final int STORE_PRIVATE_PACKAGE_SELL = 8;

+  

+   /** Kill for Hero System */

+   private static int KillsForAddHero = 0;

+   private static int KillsForRemoveHero = 0;

 

   /** The table containing all minimum level needed for each Expertise (None, D, C, B, A, S, S80, S84)*/

    private static final int[] EXPERTISE_LEVELS =

@@ -5596,6 +5608,9 @@

      // calculate death penalty buff

      calculateDeathPenaltyBuffLevel(killer);

     

+      if (Config.TEAMSRV_HERO_ENABLED)

+         KillsForHero(false);

+      

      stopRentPet();

      stopWaterTask();

     

@@ -5803,6 +5818,9 @@

      {

         // Add karma to attacker and increase its PK counter

         setPvpKills(getPvpKills() + 1);

+        

+         if (Config.TEAMSRV_HERO_ENABLED)

+            KillsForHero(true);

 

         // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter

         sendPacket(new UserInfo(this));

@@ -5867,11 +5885,49 @@

      if (target instanceof L2PcInstance

            && AntiFeedManager.getInstance().check(this, target))

         setPkKills(getPkKills() + 1);

+      

+      if (Config.TEAMSRV_HERO_ENABLED)

+         KillsForHero(true);

 

      // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter

      sendPacket(new UserInfo(this));

      sendPacket(new ExBrExtraUserInfo(this));

   }

+  

+   private void KillsForHero(boolean b)

+    {

+      

+   /**

+    * @author -hyon-

+    * @web www.maxcheaters.com

+    * @version 2.0

+    *

+    */

+      

+      if(isHero() && !b)

+         ++KillsForRemoveHero;

+      

+      if (!isHero() && b)

+         ++KillsForAddHero;

+  

+      if (KillsForAddHero >= Config.TEAMSRV_HERO_KILLS)

+      {

+         setHero(true);

+         broadcastUserInfo();

+         KillsForAddHero = 0;

+         sendPacket(new ExShowScreenMessage("Congratulations! You killed " + Config.TEAMSRV_HERO_KILLS + " player! You gived Hero status!", 5000));

+         Announcements.getInstance().announceToAll("Congratulations "+ getName()+"! gived hero status.");

+      }

+        

+      if(KillsForRemoveHero >= Config.TEAMSRV_HERO_REMOVE)

+      {

+         setHero(false);

+         broadcastUserInfo();

+         KillsForRemoveHero = 0;

+         sendPacket(new ExShowScreenMessage("Sorry! You died " + Config.TEAMSRV_HERO_REMOVE + "x. Hero Status Removed.", 5000));

+         Announcements.getInstance().announceToAll("Sorry "+ getName()+"! removed hero status.");

+      }

+    }

 

   public int calculateKarmaLost(long exp)

   {

 

java/config/l2jmods.properties

 

# Mana Potion (item ID 728), using skill ID 9008.

EnableManaPotionSupport = False

 

+# ---------------------------------------------- #

+# Hero Status (until restart) for kills System [Author: -hyon]

+# ---------------------------------------------- #

+# Enabled Hero status for kills? (Default: False)

+HeroStatusForKills = False

+# Kills (PvP+PK) for Hero Status (Default: 20)

+HeroStatusForKillsCount = 20

+# Death for removed Hero Status (Default: 2)

+DeleteHeroStatusDeathCount = 2

 

net/sf/l2j/Config.java

 

               L2JMOD_ENABLE_MANA_POTIONS_SUPPORT = Boolean.parseBoolean(L2JModSettings.getProperty("EnableManaPotionSupport", "false"));

+               TEAMSRV_HERO_ENABLED = Boolean.parseBoolean(L2JModSettings.getProperty("HeroStatusForKills", "False"));

+   TEAMSRV_HERO_KILLS = Integer.parseInt(L2JModSettings.getProperty("HeroStatusForKillsCount", "10"));

+   TEAMSRV_HERO_REMOVE = Integer.parseInt(L2JModSettings.getProperty("DeleteHeroStatusDeathCount", "10"));

            }

            catch (Exception e)

Posted

Already Share

 

+   /**
+    * @author -hyon-
+    * @web www.maxcheaters.com
+    * @version 2.0
+    *
+    */

 

You make this share??? loool is Mentor from teamsrv sorry man you steal this share

 

WRONG CREDIT

Posted

Already Share

 

+   /**
+    * @author -hyon-
+    * @web www.maxcheaters.com
+    * @version 2.0
+    *
+    */

 

You make this share??? loool is Mentor from teamsrv sorry man you steal this share

 

WRONG CREDIT

he cp around 3-4 topics already

Guest
This topic is now closed to further replies.


  • Posts

    • ➡ Discount for your purchase: APRIL (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • ➡ Discount for your purchase: APRIL (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • 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?
  • Topics

×
×
  • Create New...