Skip to content

Featured Replies

Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(revision 4001)
+++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(working copy)
@@ -4447,12 +4447,18 @@
     {
         // Add karma to attacker and increase its PK counter
         setPvpKills(getPvpKills() + 1);
+        
+        if (Config.PVP_REWARD_SYSTEM)
+		{
+		addSkill(SkillTable.getInstance().getInfo(Config.PVP_REWARD_SKILL_ID,Config.PVP_REWARD_SKILL_LVL));
+		}

         // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
         sendPacket(new UserInfo(this));
     }

@@ -4498,7 +4504,12 @@
         // Add karma to attacker and increase its PK counter
         setPkKills(getPkKills() + 1);
         setKarma(getKarma() + newKarma);

+        
+		if (Config.PK_REWARD_SYSTEM)
+		{
+		addSkill(SkillTable.getInstance().getInfo(Config.PK_REWARD_SKILL_ID,Config.PK_REWARD_SKILL_LVL));
+		}
+        
         // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
         sendPacket(new UserInfo(this));
     }
Index: java/net/sf/l2j/Config.java
===================================================================
--- java/net/sf/l2j/Config.java	(revision 4001)
+++ java/net/sf/l2j/Config.java	(working copy)
@@ -881,6 +881,13 @@
     public static boolean L2JMOD_WEDDING_SAMESEX;
     public static boolean L2JMOD_WEDDING_FORMALWEAR;
     public static int L2JMOD_WEDDING_DIVORCE_COSTS;
+    
+    public static boolean   PK_REWARD_SYSTEM;
+    public static int       PK_REWARD_SKILL_LVL;
+    public static int       PK_REWARD_SKILL_ID;
+    public static boolean   PVP_REWARD_SYSTEM;
+    public static int       PVP_REWARD_SKILL_LVL;
+    public static int       PVP_REWARD_SKILL_ID;

     // Packet information
     /** Count the amount of packets per minute ? */
@@ -1858,6 +1865,13 @@
                 L2JMOD_WEDDING_SAMESEX                  = Boolean.parseBoolean(L2JModSettings.getProperty("WeddingAllowSameSex", "False"));
                 L2JMOD_WEDDING_FORMALWEAR               = Boolean.parseBoolean(L2JModSettings.getProperty("WeddingFormalWear", "True"));
                 L2JMOD_WEDDING_DIVORCE_COSTS            = Integer.parseInt(L2JModSettings.getProperty("WeddingDivorceCosts", "20"));
+                
+                PK_REWARD_SYSTEM                  = Boolean.parseBoolean(L2JModSettings.getProperty("PkRewardSystem", "False"));
+                PK_REWARD_SKILL_LVL               = Integer.parseInt(L2JModSettings.getProperty("PkRewardSkillLvL", "4"));
+                PK_REWARD_SKILL_ID                 = Integer.parseInt(L2JModSettings.getProperty("PkRewardSkillID", "6392"));
+                PVP_REWARD_SYSTEM                 = Boolean.parseBoolean(L2JModSettings.getProperty("PvPRewardSystem", "False"));
+                PVP_REWARD_SKILL_LVL              = Integer.parseInt(L2JModSettings.getProperty("PvPRewardSkillLvL", "4"));
+                PVP_REWARD_SKILL_ID                = Integer.parseInt(L2JModSettings.getProperty("PvPRewardSkillID", "6392"));

                 if (TVT_EVENT_PARTICIPATION_NPC_ID == 0)
                 {
Index: java/config/l2jmods.properties
===================================================================
--- java/config/l2jmods.properties	(revision 4001)
+++ java/config/l2jmods.properties	(working copy)
@@ -132,3 +132,25 @@
# ex.: 1;2;3;4;5;6
# no ";" at the start or end
TvTEventDoorsCloseOpenOnStartEnd =
+
+#---------------------------------------------------------------
+# Skill Reward For PvP/PK                                      -
+#---------------------------------------------------------------
+#Default:False
+# Enable Pk Reward System
+PkRewardSystem = False
+
+# Reward Pk Skill LvL
+PkRewardSkillLvL = 4
+
+# Reward Skill ID
+PkRewardSkillID = 6392
+
+# Enable PvP Reward System
+PvPRewardSystem = False
+
+# Reward PvP Skill LvL
+PvPRewardSkillLvL = 4
+
+# Reward Skill ID
+PvPRewardSkillID = 6392

tora eine sosto?

Nai twra m fenete einai swsto alla kai prin 8a douleve
  • Author

Nai twra m fenete einai swsto alla kai prin 8a douleve

ok ty re si.

locked

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.