just go to RequestRestartPoint.java (gameserver.network.clientpackets)
search for
if (activeChar.isInJail())
_requestedPointType = 27;
else if (activeChar.isFestivalParticipant())
_requestedPointType = 4;
make something like:
if (activeChar.isInJail())
_requestedPointType = 27;
else if (activeChar.isFestivalParticipant())
_requestedPointType = 4;
else if(activeChar.isInsideClanwarZone())
_requestedPointType = 372;
find
case 27: // to jail
if (!activeChar.isInJail())
return;
loc = new Location(-114356, -249645, -2984);
break;
add above your new switch case:
case 372:
if(activeChar.isInsideClanwarZone())
{
loc = new Location(yourlocx+rndshits, yourlocy+rndshits, yourlocz+rndshits);
}
break;