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.


  • Posts

    • Hi, as the title says I am looking for l2off developer to help me preparing advext64 H5 files.   We can discuss what I need on discord and set final price for everything.   Please contact me on discord : xdark0    
    • The Time Has Come!    Tomorrow, L2DoubleDamage officially launches! Get ready for epic PvP battles, legendary rewards, and tons of action-packed features!    Opening Date: February 28, 2025  Opening Time by Country:  Greece: 20:00  Brazil: 15:00  Russia (Moscow): 21:00  Argentina: 15:00  Important Note: The donation weapons, armors, and jewelry will be closed for 2 days for the donors.   Key Features:  100% PvP Full Balance – No Pay to Win!  Ultra Stable – No Wipes, Long-Term Project!  Siege Castles: Giran, Aden, Rune  Giran Siege Reward: 100€ Real Money! (Every week after: 50€)  VIP Autofarm: x2 Drop & Name Color Change  6 Grand Bosses & 6 Special Grand Bosses!  Casino – Try Your Luck & Win Big!  Daily PvP Events – Show off your skills!  Enchant Rates: Safe +6, Max +25  JOIN NOW and prepare for the ultimate PvP experience! Check out the official links below:    Website: L2DoubleDamage  Discord: Join Here  Instagram: Follow Us  YouTube: Watch the Trailer  Facebook: Like Our Page  Get ready! The adventure begins tomorrow!    🚀 JOIN NOW & Experience the Best PvP Gameplay Ever! 🚀 🌐 Website: http://www.l2doubledamage.com/ 💬 Discord: https://discord.gg/l2doubledamage 📷 Instagram: https://www.instagram.com/l2doubledamage/ 📘 Facebook: https://www.facebook.com/profile.php?id=61573159438765&sk=about_contact_and_basic_info 📺 YouTube:  
  • Topics

×
×
  • Create New...