Jump to content
  • 0

Question

Posted

Kalispera.ekana ena new code.eukolo.alla thelo kapios dev sobaros,na m pi an exo 3exasi tpt h eine tpt lathos

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,29 @@
    {
        // Add karma to attacker and increase its PK counter
        setPvpKills(getPvpKills() + 1);
+        
+		// Give Skill for a pvp/pk kill
+		addSkill("Give",6392, this, true);
+		sendMessage("You take a Skill for a pvp kill!");

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

    /**
+	 * @param string
+	 * @param i
+	 * @param l2PcInstance
+	 * @param b
+	 */
+	private void addSkill(String string, int i, L2PcInstance l2PcInstance,
+			boolean b)
+	{
+		// TODO Auto-generated method stub
+		
+	}
+
+	/**
     * Increase pk count, karma and send the info to the player
     *
     * @param targLVL : level of the killed player
@@ -4498,7 +4515,12 @@
        // Add karma to attacker and increase its PK counter
        setPkKills(getPkKills() + 1);
        setKarma(getKarma() + newKarma);
+        
+        // Give Skill for a pvp/pk kill
+		addSkill("Give",6392, this, true);
+		sendMessage("You take a Skill for a pvp kill!");

+
        // 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,11 @@
    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_ID;
+    public static boolean   PVP_REWARD_SYSTEM;
+    public static int       PVP_REWARD_SKILL_ID;

    // Packet information
    /** Count the amount of packets per minute ? */
@@ -1858,6 +1863,11 @@
                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_ID                 = Integer.parseInt(L2JModSettings.getProperty("PkRewardSkillID", "6392"));
+                PVP_REWARD_SYSTEM                 = Boolean.parseBoolean(L2JModSettings.getProperty("PvPRewardSystem", "False"));
+                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,19 @@
# 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 Skill ID
+PkRewardSkillID = 6392
+
+# Enable PvP Reward System
+PvPRewardSystem = False
+
+# Reward Skill ID
+PvPRewardSkillID = 6392

Thanks.An mpori kapios as to test

Recommended Posts

Guest
This topic is now closed to further replies.


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