try this
### Eclipse Workspace Patch 1.0
#P aCis_gameserver
Index: java/net/sf/l2j/gameserver/network/clientpackets/RequestRestartPoint.java
===================================================================
--- java/net/sf/l2j/gameserver/network/clientpackets/RequestRestartPoint.java (revision 54)
+++ java/net/sf/l2j/gameserver/network/clientpackets/RequestRestartPoint.java (working copy)
@@ -56,6 +56,8 @@
_requestedPointType = 27;
else if (activeChar.isFestivalParticipant())
_requestedPointType = 4;
+ else if (activeChar.isInsideRadius(x1, y1, rad, true));
+ _requestedPointType = 26;
switch (_requestedPointType)
{
@@ -130,7 +132,9 @@
}
loc = new Location(activeChar.getX(), activeChar.getY(), activeChar.getZ()); // spawn them where they died
break;
-
+ case 26:
+ loc.setXYZ(x2, y2, z2);
+ break;
case 27: // to jail
if (!activeChar.isInJail())
return;
where:
x1 = the center of Pi X
y1 = the center of Pi Y
rad = the distance you want to cover, 100 is about 1 metter
x2 = the x where you want to be teleported
y2 = the y where you want to be teleported
z2 = the z where you want to be teleported
you will find this numbers using /loc IG
GL