Proper ids for ExSetCompassZoneCode.
Thanks to aviengier.
This commit is contained in:
parent
63c6248cac
commit
35ff999706
@ -1860,12 +1860,12 @@ public class Player extends Playable
|
||||
}
|
||||
else if (isInsideZone(ZoneId.SIEGE))
|
||||
{
|
||||
if (_lastCompassZone == ExSetCompassZoneCode.SIEGEWARZONE2)
|
||||
if (_lastCompassZone == ExSetCompassZoneCode.SIEGEWARZONE)
|
||||
{
|
||||
return;
|
||||
}
|
||||
_lastCompassZone = ExSetCompassZoneCode.SIEGEWARZONE2;
|
||||
sendPacket(new ExSetCompassZoneCode(ExSetCompassZoneCode.SIEGEWARZONE2));
|
||||
_lastCompassZone = ExSetCompassZoneCode.SIEGEWARZONE;
|
||||
sendPacket(new ExSetCompassZoneCode(ExSetCompassZoneCode.SIEGEWARZONE));
|
||||
}
|
||||
else if (isInsideZone(ZoneId.PVP))
|
||||
{
|
||||
@ -1900,7 +1900,7 @@ public class Player extends Playable
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (_lastCompassZone == ExSetCompassZoneCode.SIEGEWARZONE2)
|
||||
if (_lastCompassZone == ExSetCompassZoneCode.SIEGEWARZONE)
|
||||
{
|
||||
updatePvPStatus();
|
||||
}
|
||||
|
@ -24,16 +24,13 @@ import org.l2jmobius.gameserver.network.OutgoingPackets;
|
||||
*/
|
||||
public class ExSetCompassZoneCode implements IClientOutgoingPacket
|
||||
{
|
||||
// TODO: Enum
|
||||
public static final int ALTEREDZONE = 0x08;
|
||||
public static final int SIEGEWARZONE1 = 0x0A;
|
||||
public static final int SIEGEWARZONE2 = 0x0B;
|
||||
public static final int PEACEZONE = 0x0C;
|
||||
public static final int SEVENSIGNSZONE = 0x0D;
|
||||
public static final int PVPZONE = 0x0E;
|
||||
public static final int GENERALZONE = 0x0F;
|
||||
// TODO: need to find the desired value
|
||||
public static final int NOPVPZONE = 0x0C;
|
||||
public static final int ALTEREDZONE = 7;
|
||||
public static final int SIEGEWARZONE = 10;
|
||||
public static final int PEACEZONE = 11;
|
||||
public static final int SEVENSIGNSZONE = 12;
|
||||
public static final int NOPVPZONE = 13;
|
||||
public static final int PVPZONE = 14;
|
||||
public static final int GENERALZONE = 15;
|
||||
|
||||
private final int _zoneType;
|
||||
|
||||
|
@ -1898,12 +1898,12 @@ public class Player extends Playable
|
||||
}
|
||||
else if (isInsideZone(ZoneId.SIEGE))
|
||||
{
|
||||
if (_lastCompassZone == ExSetCompassZoneCode.SIEGEWARZONE2)
|
||||
if (_lastCompassZone == ExSetCompassZoneCode.SIEGEWARZONE)
|
||||
{
|
||||
return;
|
||||
}
|
||||
_lastCompassZone = ExSetCompassZoneCode.SIEGEWARZONE2;
|
||||
sendPacket(new ExSetCompassZoneCode(ExSetCompassZoneCode.SIEGEWARZONE2));
|
||||
_lastCompassZone = ExSetCompassZoneCode.SIEGEWARZONE;
|
||||
sendPacket(new ExSetCompassZoneCode(ExSetCompassZoneCode.SIEGEWARZONE));
|
||||
}
|
||||
else if (isInsideZone(ZoneId.PVP))
|
||||
{
|
||||
@ -1938,7 +1938,7 @@ public class Player extends Playable
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (_lastCompassZone == ExSetCompassZoneCode.SIEGEWARZONE2)
|
||||
if (_lastCompassZone == ExSetCompassZoneCode.SIEGEWARZONE)
|
||||
{
|
||||
updatePvPStatus();
|
||||
}
|
||||
|
@ -24,16 +24,13 @@ import org.l2jmobius.gameserver.network.OutgoingPackets;
|
||||
*/
|
||||
public class ExSetCompassZoneCode implements IClientOutgoingPacket
|
||||
{
|
||||
// TODO: Enum
|
||||
public static final int ALTEREDZONE = 0x08;
|
||||
public static final int SIEGEWARZONE1 = 0x0A;
|
||||
public static final int SIEGEWARZONE2 = 0x0B;
|
||||
public static final int PEACEZONE = 0x0C;
|
||||
public static final int SEVENSIGNSZONE = 0x0D;
|
||||
public static final int PVPZONE = 0x0E;
|
||||
public static final int GENERALZONE = 0x0F;
|
||||
// TODO: need to find the desired value
|
||||
public static final int NOPVPZONE = 0x0C;
|
||||
public static final int ALTEREDZONE = 7;
|
||||
public static final int SIEGEWARZONE = 10;
|
||||
public static final int PEACEZONE = 11;
|
||||
public static final int SEVENSIGNSZONE = 12;
|
||||
public static final int NOPVPZONE = 13;
|
||||
public static final int PVPZONE = 14;
|
||||
public static final int GENERALZONE = 15;
|
||||
|
||||
private final int _zoneType;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user