|
@@ -19,11 +19,10 @@ import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
|
|
|
|
|
public class ExGetOffAirShip extends L2GameServerPacket
|
|
|
{
|
|
|
-
|
|
|
private static final String _S__FE_63_EXGETOFFAIRSHIP = "[S] FE:63 ExGetOffAirShip";
|
|
|
|
|
|
private final int _playerId, _airShipId, _x, _y, _z;
|
|
|
-
|
|
|
+
|
|
|
public ExGetOffAirShip(L2PcInstance player, L2AirShipInstance ship, int x, int y, int z)
|
|
|
{
|
|
|
_playerId = player.getObjectId();
|
|
@@ -32,26 +31,26 @@ public class ExGetOffAirShip extends L2GameServerPacket
|
|
|
_y = y;
|
|
|
_z = z;
|
|
|
player.setXYZ(_x, _y, _z);
|
|
|
- if (player.getPet() != null && player.getPet().isDead())
|
|
|
+ if (player.getPet() != null)
|
|
|
player.getPet().teleToLocation(_x, _y, _z);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- protected void writeImpl()
|
|
|
- {
|
|
|
- writeC(0xfe);
|
|
|
- writeH(0x64);
|
|
|
-
|
|
|
- writeD(_playerId);
|
|
|
- writeD(_airShipId);
|
|
|
- writeD(_x);
|
|
|
- writeD(_y);
|
|
|
- writeD(_z);
|
|
|
+ protected void writeImpl()
|
|
|
+ {
|
|
|
+ writeC(0xfe);
|
|
|
+ writeH(0x64);
|
|
|
+
|
|
|
+ writeD(_playerId);
|
|
|
+ writeD(_airShipId);
|
|
|
+ writeD(_x);
|
|
|
+ writeD(_y);
|
|
|
+ writeD(_z);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String getType()
|
|
|
- {
|
|
|
- return _S__FE_63_EXGETOFFAIRSHIP;
|
|
|
- }
|
|
|
+ public String getType()
|
|
|
+ {
|
|
|
+ return _S__FE_63_EXGETOFFAIRSHIP;
|
|
|
+ }
|
|
|
}
|