[Olympiad]

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Mage
Posts: 277
Joined: Fri Apr 17, 2009 2:29 pm

[Olympiad]

Post 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?
Forum rules: Please do not use or alter the official L2J Avatars/Signatures/Names for your personal use.
User avatar
Charus
L2j Veteran
L2j Veteran
Posts: 410
Joined: Thu Feb 16, 2006 1:24 pm

Re: [Olympiad]

Post by Charus »

It is retail information?
Mage
Posts: 277
Joined: Fri Apr 17, 2009 2:29 pm

Re: [Olympiad]

Post by Mage »

Charus wrote:It is retail information?
Yes, is my friend and plays in offi.
Forum rules: Please do not use or alter the official L2J Avatars/Signatures/Names for your personal use.
lion
L2j Veteran
L2j Veteran
Posts: 967
Joined: Sun Mar 11, 2007 7:49 pm
Location: Ukraine

Re: [Olympiad]

Post by lion »

if you can read russian, read this
Mage
Posts: 277
Joined: Fri Apr 17, 2009 2:29 pm

Re: [Olympiad]

Post by Mage »

Yes, i think that is this part "ну и максимально можно проигрывать 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.
User avatar
Charus
L2j Veteran
L2j Veteran
Posts: 410
Joined: Thu Feb 16, 2006 1:24 pm

Re: [Olympiad]

Post 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
Last edited by Charus on Wed Sep 16, 2009 5:26 pm, edited 2 times in total.
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: [Olympiad]

Post by _DS_ »

Use Math.min(points/3, 10);
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
User avatar
momo61
Posts: 1648
Joined: Fri Jun 06, 2008 2:05 pm
Location: Europe

Re: [Olympiad]

Post 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 ?
User avatar
Charus
L2j Veteran
L2j Veteran
Posts: 410
Joined: Thu Feb 16, 2006 1:24 pm

Re: [Olympiad]

Post by Charus »

Patch updates. Using Math now. What about momo's quest? Also max winning points are 10?
Behem0th
Posts: 6
Joined: Mon Jan 05, 2009 2:05 pm

Re: [Olympiad]

Post 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)
User avatar
momo61
Posts: 1648
Joined: Fri Jun 06, 2008 2:05 pm
Location: Europe

Re: [Olympiad]

Post 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
User avatar
Charus
L2j Veteran
L2j Veteran
Posts: 410
Joined: Thu Feb 16, 2006 1:24 pm

Re: [Olympiad]

Post by Charus »

Patch updated. Pls test.
User avatar
Gnacik
L2j Veteran
L2j Veteran
Posts: 925
Joined: Tue Dec 16, 2008 3:49 pm
Location: Wąchock ٩(̾●̮̮̃̾•̃̾)۶ Polska
Contact:

Re: [Olympiad]

Post by Gnacik »

Im not sure, but that information is in topic:
Размышление о корейском балвансе (часть 2). Азы олимпиады в Финале+
It means Final+ (Gracia+) ??
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: [Olympiad]

Post by _DS_ »

Yes, gracia final+.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
Post Reply