You could use the SEARCH button before posting things already answered, http://maxcheaters.com/forum/index.php?topic=283284.0
gameserver/network/clientpackets/RequestRestartPoint.java
After Castle check, probably u haven't it equal.
Castle castle = CastleManager.getInstance().getCastle(activeChar.getX(), activeChar.getY(), activeChar.getZ());
if ((castle != null) && castle.getSiege().getIsInProgress())
{
if ((activeChar.getClan() != null) && castle.getSiege().checkIsAttacker(activeChar.getClan()))
{
// Schedule respawn delay for attacker
ThreadPoolManager.getInstance().scheduleGeneral(new DeathTask(activeChar), castle.getSiege().getAttackerRespawnDelay());
if (castle.getSiege().getAttackerRespawnDelay() > 0)
{
activeChar.sendMessage("You will be re-spawned in " + (castle.getSiege().getAttackerRespawnDelay() / 1000) + " seconds");
}
return;
}
}
just add:
activeChar.teleToLocation(x,y,z;
If he wants to teleport when the user press "To Village" button is from requestrestartpoint :troll: