Jump to content

Recommended Posts

Posted

as the tiulo already says is just a setting for the buffs of the Olympics.

 

aCis/java/net/sf/l2j/gameserver/model/olympiad/AbstractOlympiadGame.java
@@ -4,6 +4,7 @@

import net.sf.l2j.commons.logging.CLogger;

+ import net.sf.l2j.Config;
  import net.sf.l2j.gameserver.data.SkillTable;
  import net.sf.l2j.gameserver.data.xml.MapRegionData;
  import net.sf.l2j.gameserver.enums.MessageType;
  @@ -360,21 +371,11 @@ protected static final void removals(Player player, boolean removeParty)
	 */
	protected static final void buffPlayer(Player player)
	{
-		L2Skill skill = SkillTable.getInstance().getInfo(1204, 2); // Windwalk 2
-		if (skill != null)
-		{
-			skill.getEffects(player, player);
-			player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT).addSkillName(1204));
-		}
-
-		if (!player.isMageClass())
+		for (IntIntHolder buffs : player.isMageClass() ? Config.OLY_BUFF_MAGE : Config.OLY_BUFF_WARRIOR)
		{
-			skill = SkillTable.getInstance().getInfo(1086, 1); // Haste 1
+			final L2Skill skill = buffs.getSkill();
			if (skill != null)
-			{
				skill.getEffects(player, player);
-				player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT).addSkillName(1086));
-			}
		}
	}
aCis/java/net/sf/l2j/Config.java
@@ -145,6 +150,19 @@
public static boolean OLY_ANNOUNCE_GAMES;
+	public static IntIntHolder[] OLY_BUFF_MAGE;
+	public static IntIntHolder[] OLY_BUFF_WARRIOR;
+
@@ -756,6 +924,8 @@ private static final void loadEvents()
		OLY_ANNOUNCE_GAMES = events.getProperty("OlyAnnounceGames", true);
+		OLY_BUFF_WARRIOR = events.parseIntIntList("OlyWarriorBuffs", "0-0");
+		OLY_BUFF_MAGE = events.parseIntIntList("OlyMageBuffs", "0-0");
+
aCis/config/events.properties
@@ -84,6 +84,82 @@ OlyAnnounceGames = True
OlyDividerClassed = 3
OlyDividerNonClassed = 5
+
+ # Configure buff for olympiad participants. Format= BuffId-BuffLevel;
+ OlyWarriorBuffs = 1204-2;1086-1
+ OlyMageBuffs = 1204-2;1085-1

 

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...