Players with Karma unable to go back to castle?

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
ShinichiYao
Advanced User
Advanced User
Posts: 262
Joined: Tue Jan 12, 2016 3:53 am

Players with Karma unable to go back to castle?

Post by ShinichiYao »

using scrolls of escape: castle
User avatar
ShinichiYao
Advanced User
Advanced User
Posts: 262
Joined: Tue Jan 12, 2016 3:53 am

Re: Players with Karma unable to go back to castle?

Post by ShinichiYao »

After looking into the code of MapRegionManager.java

Code: Select all

		if (player.getKarma() > 0)
		{
			return castle.getResidenceZone().getChaoticSpawnLoc();
		}
But in "\game\data\zones\castle_hall.xml" chaotic type spawn points are far away from the castle.
So yes they won't go back to their castle.

And I've got another question in MapRegionManager.java

Code: Select all

	// Checking if needed to be respawned in "far" town from the castle;
	castle = CastleManager.getInstance().getCastle(player);
	if (castle != null)
	{
		if (castle.getSiege().isInProgress())
		{
			// Check if player's clan is participating
			if ((castle.getSiege().checkIsDefender(player.getClan()) || castle.getSiege().checkIsAttacker(player.getClan())) && (SevenSigns.getInstance().getSealOwner(SevenSigns.SEAL_STRIFE) == SevenSigns.CABAL_DAWN))
			{
				return castle.getResidenceZone().getOtherSpawnLoc();
			}
		}
	}
According to this code both Defender and Attacker will respawn far from the castle if Dawn side win the Strife Seal. Shouldn't it be only Attacker?
Post Reply