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...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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