switch(MoveType)
{
case 4: // AirShipTeleport
int dockID = readD();
int currentDockNpcId = airship.getCurrentDockNpcId();
AirShipDock curAD = AirShipDocksTable.getInstance().getAirShipDockByNpcId(currentDockNpcId);
if(curAD.getId() == dockID)
{
airship.SetTrajet1(curAD.getDepartureTrajetId(), 0, null, null);
airship._cycle = 1;
airship.begin();
}
else
{
airship.SetTrajet1(curAD.getDepartureTrajetId(), 0, null, null);
L2VehiclePoint bp = new L2VehiclePoint();
bp.speed1 = airship._speed1;
bp.speed2 = airship._speed2;
AirShipDock destAD = AirShipDocksTable.getInstance().getAirShipDock(dockID);
bp.x = destAD.getLoc().x;
bp.y = destAD.getLoc().y;
bp.z = destAD.getLoc().z;
bp.teleport = 1;
if(airship.getFuel() < destAD.getFuel())
{
activeChar.sendMessage("Not enough EP."); // TODO правильное сообщение
return;
}
airship.getTrajet1().addPathPoint(bp);
airship._cycle = 1;
airship.begin();
airship.setFuel(airship.getFuel() - destAD.getFuel());
}
break;
case 0: // Free move
if(airship.isDocked() || !airship.isArrived())
{