Page 1 of 1
[Olympiad]
Posted: Tue Sep 15, 2009 1:35 pm
by Mage
Hi,
A player said to me that the max point that a player can lost during a match in olympiad are 10.
Is it true?
Re: [Olympiad]
Posted: Tue Sep 15, 2009 4:35 pm
by Charus
It is retail information?
Re: [Olympiad]
Posted: Tue Sep 15, 2009 5:00 pm
by Mage
Charus wrote:It is retail information?
Yes, is my friend and plays in offi.
Re: [Olympiad]
Posted: Tue Sep 15, 2009 5:50 pm
by lion
if you can read russian, read
this
Re: [Olympiad]
Posted: Tue Sep 15, 2009 6:09 pm
by Mage
Yes, i think that is this part "ну и максимально можно проигрывать 10"
The Max of point that player can lost is 10.
Re: [Olympiad]
Posted: Tue Sep 15, 2009 10:00 pm
by Charus
Code: Select all
### Eclipse Workspace Patch 1.0#P L2jServerIndex: java/net/sf/l2j/gameserver/model/olympiad/OlympiadGame.java===================================================================--- java/net/sf/l2j/gameserver/model/olympiad/OlympiadGame.java (revision 3514)+++ java/net/sf/l2j/gameserver/model/olympiad/OlympiadGame.java (working copy)@@ -503,14 +503,14 @@ final int playerOnePoints = playerOneStat.getInteger(POINTS); final int playerTwoPoints = playerTwoStat.getInteger(POINTS);- final int pointDiff = Math.min(playerOnePoints, playerTwoPoints) / _div;+ final int pointDiff = Math.max(Math.min(playerOnePoints, playerTwoPoints) / _div, 10); // Check for if a player defaulted before battle started if (_playerOneDefaulted || _playerTwoDefaulted) { if (_playerOneDefaulted) {- final int lostPoints = playerOnePoints / 3;+ final int lostPoints = Math.min(playerOnePoints / 3, 10); playerOneStat.set(POINTS, playerOnePoints - lostPoints); Olympiad.updateNobleStats(_playerOneID, playerOneStat); SystemMessage sm = new SystemMessage(SystemMessageId.C1_HAS_LOST_S2_OLYMPIAD_POINTS);@@ -530,7 +530,7 @@ } if (_playerTwoDefaulted) {- final int lostPoints = playerTwoPoints / 3;+ final int lostPoints = Math.min(playerTwoPoints / 3, 10); playerTwoStat.set(POINTS, playerTwoPoints - lostPoints); Olympiad.updateNobleStats(_playerTwoID, playerTwoStat); SystemMessage sm = new SystemMessage(SystemMessageId.C1_HAS_LOST_S2_OLYMPIAD_POINTS);@@ -783,8 +783,8 @@ result = " tie"; _sm = new SystemMessage(SystemMessageId.THE_GAME_ENDED_IN_A_TIE); broadcastMessage(_sm, true);- int pointOneDiff = playerOnePoints / 5;- int pointTwoDiff = playerTwoPoints / 5;+ int pointOneDiff = Math.min(playerOnePoints / 5, 10);+ int pointTwoDiff = Math.min(playerTwoPoints / 5, 10); playerOneStat.set(POINTS, playerOnePoints - pointOneDiff); playerTwoStat.set(POINTS, playerTwoPoints - pointTwoDiff); playerOneStat.set(COMP_DRAWN, playerOneDrawn + 1);
Test pls
Re: [Olympiad]
Posted: Wed Sep 16, 2009 2:55 am
by _DS_
Use Math.min(points/3, 10);
Re: [Olympiad]
Posted: Wed Sep 16, 2009 4:17 am
by momo61
Mage wrote:Hi,
A player said to me that the max point that a player can lost during a match in olympiad are 10.
Is it true?
so if max loss is 10 points, then max win is also 10 points ?
Re: [Olympiad]
Posted: Wed Sep 16, 2009 4:45 am
by Charus
Patch updates. Using Math now. What about momo's quest? Also max winning points are 10?
Re: [Olympiad]
Posted: Wed Sep 16, 2009 5:57 am
by Behem0th
Mage wrote:Yes, i think that is this part "ну и максимально можно проигрывать 10"
The Max of point that player can lost is 10.
Yes, more complete description: "ограничив максимальный выигрыш в 10 балов (ну и максимально можно проигрывать 10)"
The Max of point that player can win is 10 (and the Max of point that player can lost is 10)
Re: [Olympiad]
Posted: Wed Sep 16, 2009 7:06 am
by momo61
Behem0th wrote:Mage wrote:Yes, i think that is this part "ну и максимально можно проигрывать 10"
The Max of point that player can lost is 10.
Yes, more complete description: "ограничив максимальный выигрыш в 10 балов (ну и максимально можно проигрывать 10)"
The Max of point that player can win is 10 (and the Max of point that player can lost is 10)
hmm ... this makes things kinda ... boring :S
Imo. there should be some kind of config for this. To set max. points lost/won
Re: [Olympiad]
Posted: Wed Sep 16, 2009 5:27 pm
by Charus
Patch updated. Pls test.
Re: [Olympiad]
Posted: Wed Sep 30, 2009 1:34 pm
by Gnacik
Im not sure, but that information is in topic:
Размышление о корейском балвансе (часть 2). Азы олимпиады в Финале+
It means Final+ (Gracia+) ??
Re: [Olympiad]
Posted: Wed Sep 30, 2009 2:39 pm
by _DS_
Yes, gracia final+.