[Olympiad]
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 277
- Joined: Fri Apr 17, 2009 2:29 pm
[Olympiad]
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?
A player said to me that the max point that a player can lost during a match in olympiad are 10.
Is it true?
Forum rules: Please do not use or alter the official L2J Avatars/Signatures/Names for your personal use.
- Charus
- L2j Veteran
- Posts: 410
- Joined: Thu Feb 16, 2006 1:24 pm
Re: [Olympiad]
It is retail information?
-
- Posts: 277
- Joined: Fri Apr 17, 2009 2:29 pm
Re: [Olympiad]
Yes, is my friend and plays in offi.Charus wrote:It is retail information?
Forum rules: Please do not use or alter the official L2J Avatars/Signatures/Names for your personal use.
-
- L2j Veteran
- Posts: 967
- Joined: Sun Mar 11, 2007 7:49 pm
- Location: Ukraine
Re: [Olympiad]
if you can read russian, read this
-
- Posts: 277
- Joined: Fri Apr 17, 2009 2:29 pm
Re: [Olympiad]
Yes, i think that is this part "ну и максимально можно проигрывать 10"
The Max of point that player can lost is 10.
The Max of point that player can lost is 10.
Forum rules: Please do not use or alter the official L2J Avatars/Signatures/Names for your personal use.
- Charus
- L2j Veteran
- Posts: 410
- Joined: Thu Feb 16, 2006 1:24 pm
Re: [Olympiad]
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);
Last edited by Charus on Wed Sep 16, 2009 5:26 pm, edited 2 times in total.
-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: [Olympiad]
Use Math.min(points/3, 10);
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;
- momo61
- Posts: 1648
- Joined: Fri Jun 06, 2008 2:05 pm
- Location: Europe
Re: [Olympiad]
so if max loss is 10 points, then max win is also 10 points ?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?
- Charus
- L2j Veteran
- Posts: 410
- Joined: Thu Feb 16, 2006 1:24 pm
Re: [Olympiad]
Patch updates. Using Math now. What about momo's quest? Also max winning points are 10?
-
- Posts: 6
- Joined: Mon Jan 05, 2009 2:05 pm
Re: [Olympiad]
Yes, more complete description: "ограничив максимальный выигрыш в 10 балов (ну и максимально можно проигрывать 10)"Mage wrote:Yes, i think that is this part "ну и максимально можно проигрывать 10"
The Max of point that player can lost is 10.
The Max of point that player can win is 10 (and the Max of point that player can lost is 10)
- momo61
- Posts: 1648
- Joined: Fri Jun 06, 2008 2:05 pm
- Location: Europe
Re: [Olympiad]
hmm ... this makes things kinda ... boring :SBehem0th wrote:Yes, more complete description: "ограничив максимальный выигрыш в 10 балов (ну и максимально можно проигрывать 10)"Mage wrote:Yes, i think that is this part "ну и максимально можно проигрывать 10"
The Max of point that player can lost is 10.
The Max of point that player can win is 10 (and the Max of point that player can lost is 10)
Imo. there should be some kind of config for this. To set max. points lost/won
- Charus
- L2j Veteran
- Posts: 410
- Joined: Thu Feb 16, 2006 1:24 pm
Re: [Olympiad]
Patch updated. Pls test.
- Gnacik
- L2j Veteran
- Posts: 925
- Joined: Tue Dec 16, 2008 3:49 pm
- Location: Wąchock ٩(̾●̮̮̃̾•̃̾)۶ Polska
- Contact:
Re: [Olympiad]
Im not sure, but that information is in topic:
It means Final+ (Gracia+) ??Размышление о корейском балвансе (часть 2). Азы олимпиады в Финале+
-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: [Olympiad]
Yes, gracia final+.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;