SoIController.java 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /*
  2. * Copyright (C) 2004-2014 L2J DataPack
  3. *
  4. * This file is part of L2J DataPack.
  5. *
  6. * L2J DataPack is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * L2J DataPack is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. package gracia.vehicles.SoIController;
  20. import com.l2jserver.gameserver.model.Location;
  21. import com.l2jserver.gameserver.model.VehiclePathPoint;
  22. import gracia.vehicles.AirShipController;
  23. public final class SoIController extends AirShipController
  24. {
  25. private static final int DOCK_ZONE = 50600;
  26. private static final int LOCATION = 101;
  27. private static final int CONTROLLER_ID = 32604;
  28. private static final VehiclePathPoint[] ARRIVAL =
  29. {
  30. new VehiclePathPoint(-214422, 211396, 5000, 280, 2000),
  31. new VehiclePathPoint(-214422, 211396, 4422, 280, 2000)
  32. };
  33. private static final VehiclePathPoint[] DEPART =
  34. {
  35. new VehiclePathPoint(-214422, 211396, 5000, 280, 2000),
  36. new VehiclePathPoint(-215877, 209709, 5000, 280, 2000)
  37. };
  38. private static final VehiclePathPoint[][] TELEPORTS =
  39. {
  40. {
  41. new VehiclePathPoint(-214422, 211396, 5000, 280, 2000),
  42. new VehiclePathPoint(-215877, 209709, 5000, 280, 2000),
  43. new VehiclePathPoint(-206692, 220997, 3000, 0, 0)
  44. },
  45. {
  46. new VehiclePathPoint(-214422, 211396, 5000, 280, 2000),
  47. new VehiclePathPoint(-215877, 209709, 5000, 280, 2000),
  48. new VehiclePathPoint(-195357, 233430, 2500, 0, 0)
  49. }
  50. };
  51. private static final int[] FUEL =
  52. {
  53. 0,
  54. 50
  55. };
  56. public SoIController()
  57. {
  58. super(-1, SoIController.class.getSimpleName(), "gracia/vehicles");
  59. addStartNpc(CONTROLLER_ID);
  60. addFirstTalkId(CONTROLLER_ID);
  61. addTalkId(CONTROLLER_ID);
  62. _dockZone = DOCK_ZONE;
  63. addEnterZoneId(DOCK_ZONE);
  64. addExitZoneId(DOCK_ZONE);
  65. _shipSpawnX = -212719;
  66. _shipSpawnY = 213348;
  67. _shipSpawnZ = 5000;
  68. _oustLoc = new Location(-213401, 210401, 4408);
  69. _locationId = LOCATION;
  70. _arrivalPath = ARRIVAL;
  71. _departPath = DEPART;
  72. _teleportsTable = TELEPORTS;
  73. _fuelTable = FUEL;
  74. _movieId = 1002;
  75. validityCheck();
  76. }
  77. }