Olympiad Token reward

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
Gries
Posts: 307
Joined: Fri Jun 17, 2011 9:45 am

Olympiad Token reward

Post by Gries »

I saw there are a configs in Olympiad.properties files about the Olympiad Tokens given once the period ends. However i cannot recognize what these numbers stand for.

That's the part i am talking about:

Code: Select all

# Rate to exchange points to reward item.# Default: 1000AltOlyGPPerPoint = 1000 # Noblesse points awarded to Heros.# Default: 200AltOlyHeroPoints = 200 # Noblesse points awarded to Rank 1 members.# Default: 100AltOlyRank1Points = 100 # Noblesse points awarded to Rank 2 members.# Default: 75AltOlyRank2Points = 75 # Noblesse points awarded to Rank 3 members.# Default: 55AltOlyRank3Points = 55 # Noblesse points awarded to Rank 4 members.# Default: 40AltOlyRank4Points = 40 # Noblesse points awarded to Rank 5 members.# Default: 30AltOlyRank5Points = 30
Also, little typo in the line n.5 (Heros -> Heroes)
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7008
Joined: Tue Aug 11, 2009 3:36 am

Re: Olympiad Token reward

Post by Zoey76 »

Fixed the typo few commits ago, about the configs, I recommend you to follow them inside the core and check what they do, maybe we can improve it's documentation.
Powered by Eclipse 4.34 🌌 | Eclipse Temurin 21 ☕ | MariaDB 11.3.2 🗃️ | L2J Server 2.6.3.0 - High Five 🚀

🔗 Join our Discord! 🎮💬
User avatar
Gries
Posts: 307
Joined: Fri Jun 17, 2011 9:45 am

Re: Olympiad Token reward

Post by Gries »

Code: Select all

		final int rank = _noblesRank.get(objId);
		int points = (player.isHero() ? Config.ALT_OLY_HERO_POINTS : 0);
		switch (rank)
		{
			case 1:
				points += Config.ALT_OLY_RANK1_POINTS;
				break;
			case 2:
				points += Config.ALT_OLY_RANK2_POINTS;
				break;
			case 3:
				points += Config.ALT_OLY_RANK3_POINTS;
				break;
			case 4:
				points += Config.ALT_OLY_RANK4_POINTS;
				break;
			default:
				points += Config.ALT_OLY_RANK5_POINTS;
		}
		
		if (clear)
		{
			noble.set(POINTS, 0);
		}
		points *= Config.ALT_OLY_GP_PER_POINT;
		return points;
	}
Basicly,
Olympiad Points + Config.ALT_OLY_RANK1_POINTS1/2/3/4/5.
The result * AltOlyGPPerPoint = Olympiad Tokens awarded

Is this correct?
Post Reply