Players with Karma unable to go back to castle?
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- ShinichiYao
- Advanced User
- Posts: 262
- Joined: Tue Jan 12, 2016 3:53 am
Players with Karma unable to go back to castle?
using scrolls of escape: castle
- ShinichiYao
- Advanced User
- Posts: 262
- Joined: Tue Jan 12, 2016 3:53 am
Re: Players with Karma unable to go back to castle?
After looking into the code of MapRegionManager.java
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
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?
Code: Select all
if (player.getKarma() > 0)
{
return castle.getResidenceZone().getChaoticSpawnLoc();
}
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();
}
}
}