Is nor only client you need core support for the new button.
make something like that for now and test;
default:
loc = MapRegionTable.getInstance().getTeleToLocation(activeChar, MapRegionTable.TeleportWhereType.random);
break;
Index: java/com/l2jserver/gameserver/datatables/MapRegionTable.java
Fortress,
+ random
}
public static MapRegionTable getInstance()
@@ -350,7 +351,7 @@
public Location getTeleToLocation(L2Character activeChar, TeleportWhereType teleportWhere)
{
- int[] coord;
+ int[] coord = null;
if (activeChar instanceof L2PcInstance)
{
@@ -415,6 +416,16 @@
return fort.getFortZone().getSpawnLoc();
}
+ if (teleportWhere == TeleportWhereType.random)
+ {
+ @SuppressWarnings({ "null", "unused" })
+ int coordinateX = coord[0];
+ @SuppressWarnings("unused")
+ int coordinateY = coord[1];
+ @SuppressWarnings("unused")
+ int coordinateZ = coord[2];
+ }
+
// If teleport to SiegeHQ
if (teleportWhere == TeleportWhereType.SiegeFlag)
{
I Don't tested.