Jump to content
  • 0

PvP Skill Reward System


Question

Posted

Καλησπέρα παιδιά έχει δει κανένας PvP Skill Reward System εδώ μέσα ?

Αν ναι ας μου το στείλει Interlude Client !!!

Thanks !

5 answers to this question

Recommended Posts

  • 0
Posted

http://maxcheaters.com/forum/index.php?topic=253165.0 Ένα σύστημα λίγο παραπάνω από pvpSkillReward system αλλά δες αν θα σε βόλευε.

και

http://maxcheaters.com/forum/index.php?topic=221916.0

  • 0
Posted

http://maxcheaters.com/forum/index.php?topic=253165.0 Ένα σύστημα λίγο παραπάνω από pvpSkillReward system αλλά δες αν θα σε βόλευε.

και

http://maxcheaters.com/forum/index.php?topic=221916.0

 

Κάτι αντίστοιχο έχω ...

 

head-src

### Eclipse Workspace Patch 1.0
Index: head-src/com/l2jfrozen/Config.java
===================================================================
--- head-src/com/l2jfrozen/Config.java	(revision 1004)
+++ head-src/com/l2jfrozen/Config.java	(working copy)
@@ -2561,6 +2561,17 @@
	public static int TITLE_COLOR_FOR_PK_AMOUNT3;
	public static int TITLE_COLOR_FOR_PK_AMOUNT4;
	public static int TITLE_COLOR_FOR_PK_AMOUNT5;
+	
+	public static boolean PVP_SKILLREWARD_ENABLED;
+	public static int PVP_SKILLREWARD1;
+	public static int PVP_SKILLREWARD2;
+	public static int PVP_FORSKILL1;
+	public static int PVP_FORSKILL2;
+	public static int PVP_SKILLLVL1;
+	public static int PVP_SKILLLVL2;
+	
	public static boolean PVP_REWARD_ENABLED;
	public static int PVP_REWARD_ID;
	public static int PVP_REWARD_AMOUNT;
@@ -2689,6 +2700,16 @@
			TITLE_COLOR_FOR_PK_AMOUNT3 = Integer.decode("0x" + pvpSettings.getProperty("TitleForAmount3", "00FF00"));
			TITLE_COLOR_FOR_PK_AMOUNT4 = Integer.decode("0x" + pvpSettings.getProperty("TitleForAmount4", "00FF00"));
			TITLE_COLOR_FOR_PK_AMOUNT5 = Integer.decode("0x" + pvpSettings.getProperty("TitleForAmount5", "00FF00"));
+			
+			PVP_SKILLREWARD_ENABLED = Boolean.parseBoolean(pvpSettings.getProperty("EnablePvPSkillReward", "false"));
+			PVP_SKILLREWARD1 = Integer.parseInt(pvpSettings.getProperty("SkillID1", "1"));
+			PVP_SKILLREWARD2 = Integer.parseInt(pvpSettings.getProperty("SkillID2", "2"));
+			PVP_FORSKILL1 = Integer.parseInt(pvpSettings.getProperty("PvPsForSkillID1", "100"));
+			PVP_FORSKILL2 = Integer.parseInt(pvpSettings.getProperty("PvPsForSkillID2", "200"));
+			PVP_SKILLLVL1 = Integer.parseInt(pvpSettings.getProperty("SkillLvL1", "1"));
+			PVP_SKILLLVL2 = Integer.parseInt(pvpSettings.getProperty("SkillLvL2", "1"));

			FLAGED_PLAYER_USE_BUFFER = Boolean.valueOf(pvpSettings.getProperty("AltKarmaFlagPlayerCanUseBuffer", "false"));

Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/EnterWorld.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/network/clientpackets/EnterWorld.java	(revision 1004)
+++ head-src/com/l2jfrozen/gameserver/network/clientpackets/EnterWorld.java	(working copy)
@@ -271,6 +271,10 @@
	// Send packets info
	sendPacket(new ClientSetTime()); // SetClientTime
	sendPacket(new UserInfo(activeChar)); //
	sendPacket(new HennaInfo(activeChar));
	sendPacket(new FriendList(activeChar));
	sendPacket(new ItemList(activeChar, false));
	sendPacket(new ShortCutInit(activeChar));
+		if(Config.PVP_SKILLREWARD_ENABLED)
+		{
+		    activeChar.PvPSkillReward();
+		}

		// Send all skills to char
		activeChar.sendSkillList(); 
Index: head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java	(revision 1004)
+++ head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java	(working copy)
@@ -3672,6 +3672,37 @@
public void setPvpKills(int pvpKills)
{
	_pvpKills = pvpKills;

	 /*// Set hero mxc if pvp kills > 100
	 if (pvpKills > 100)
	 {
	 isPermaHero = true;
	 setHeromxc(true);
	 }*/ 
}
+	public void PvPSkillReward()
+	{
+		if (getPvpKills() == Config.PVP_FORSKILL1)
+		{	
+			addSkill(SkillTable.getInstance().getInfo(Config.PVP_SKILLREWARD1, Config.PVP_SKILLLVL1));
+		}
+		if (getPvpKills() == Config.PVP_FORSKILL2)
+		{	
+			addSkill(SkillTable.getInstance().getInfo(Config.PVP_SKILLREWARD2, Config.PVP_SKILLLVL2));
+		}
+	}
+   public void SkillTime(int H)
+	{
+		try
+		{
+			Thread.sleep(H * 60000);
+		}
+		catch(Exception e){
+			e.printStackTrace();
+		}
+	}

	/**
	 * Return the ClassId object of the L2PcInstance contained in L2PcTemplate.<BR>

 

config

### Eclipse Workspace Patch 1.0
Index: config/functions/pvp.properties
===================================================================
--- config/functions/pvp.properties	(revision 1004)
+++ config/functions/pvp.properties	(working copy)
@@ -124,8 +124,28 @@

# Settings For Ammount 5.
PkAmount5 = 5000
-TitleForAmount5 = 00FF00
+TitleForAmount5 = 00FF00

+# -------------------------------------------
+#       PvP Skill System By AbSoLuTePoWeR   #
+# -------------------------------------------
+# Each A-beep-t will give you a skill for few minutes!.
+# Example: PvPsForSkillID1 = 5000, when a character's PvP counter reaches 5000
+# their will get a skill for few minutes(you can change the minutes from SkillTime = 3)
+EnablePvPSkillReward = false
+
+# PvpKills & Skill,level1.
+PvPsForSkillID1 = 100
+SkillID1 = 1
+SkillLvL1 = 1
+
+# PvpKills & Skill,level2.
+PvPsForSkillID2 = 200
+SkillID2 = 2
+SkillLvL2 = 1
+

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..