Index: java/com/l2jserver/Config.java
===================================================================
--- java/com/l2jserver/Config.java (revision 4422)
+++ java/com/l2jserver/Config.java (working copy)
@@ -544,6 +544,7 @@
public static TIntArrayList LIST_OLY_RESTRICTED_ITEMS;
public static int ALT_OLY_ENCHANT_LIMIT;
public static byte ALT_OLY_WAIT_TIME;
+ public static boolean ALT_OLY_SEND_TD;
public static int ALT_MANOR_REFRESH_TIME;
public static int ALT_MANOR_REFRESH_MIN;
public static int ALT_MANOR_APPROVE_TIME;
@@ -2538,6 +2539,7 @@
ALT_OLY_ENCHANT_LIMIT = Integer.parseInt(olympiad.getProperty("AltOlyEnchantLimit","-1"));
ALT_OLY_WAIT_TIME = Byte.parseByte(olympiad.getProperty("AltOlyWaitTime","120"));
if (ALT_OLY_WAIT_TIME != 120 && ALT_OLY_WAIT_TIME != 60 && ALT_OLY_WAIT_TIME != 30 && ALT_OLY_WAIT_TIME != 15 && ALT_OLY_WAIT_TIME != 5) ALT_OLY_WAIT_TIME = 120;
+ ALT_OLY_SEND_TD = Boolean.parseBoolean(olympiad.getProperty("AltOlySendTD", "false"));
}
catch (Exception e)
{
Index: java/com/l2jserver/gameserver/model/olympiad/OlympiadGame.java
===================================================================
--- java/com/l2jserver/gameserver/model/olympiad/OlympiadGame.java (revision 4422)
+++ java/com/l2jserver/gameserver/model/olympiad/OlympiadGame.java (working copy)
@@ -856,6 +856,14 @@
if (Config.DEBUG)
_log.info("Olympia Result: " + _playerOneName + " vs " + _playerTwoName + " ... " + result);
+ if (Config.ALT_OLY_SEND_TD && _playerOne != null && _playerTwo != null)
+ {
+ _playerOne.sendMessage("Your total damage on " + _playerTwo.getName() + " is " + _damageP1 + ", the total damage of " + _playerTwo.getName() + " on you is " + _damageP2 + ".");
+ _playerTwo.sendMessage("Your total damage on " + _playerOne.getName() + " is " + _damageP2 + ", the total damage of " + _playerOne.getName() + " on you is " + _damageP1 + ".");
+ }
+
playerOneStat.set(COMP_DONE, playerOnePlayed + 1);
playerTwoStat.set(COMP_DONE, playerTwoPlayed + 1);
Index: java/config/olympiad.properties
===================================================================
--- java/config/olympiad.properties (revision 4422)
+++ java/config/olympiad.properties (working copy)
@@ -116,4 +116,9 @@
# Possible choices are: 120, 60, 30, 15, or 5.
# If any other number is entered, the time will be set to 120 seconds.
# Default: 120
-AltOlyWaitTime = 120
\ No newline at end of file
+AltOlyWaitTime = 120
+
+# Send 'total damage' value to Olympiad Games' competitors.
+# Example: "Your total damage on PlayerTwo is td-value."
+# Default: False
+AltOlySendTD = False
\ No newline at end of file