SoDController.java 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /*
  2. * Copyright (C) 2004-2015 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.SoDController;
  20. import gracia.vehicles.AirShipController;
  21. import com.l2jserver.gameserver.model.Location;
  22. import com.l2jserver.gameserver.model.VehiclePathPoint;
  23. public final class SoDController extends AirShipController
  24. {
  25. private static final int DOCK_ZONE = 50601;
  26. private static final int LOCATION = 102;
  27. private static final int CONTROLLER_ID = 32605;
  28. private static final VehiclePathPoint[] ARRIVAL =
  29. {
  30. new VehiclePathPoint(-246445, 252331, 4359, 280, 2000),
  31. };
  32. private static final VehiclePathPoint[] DEPART =
  33. {
  34. new VehiclePathPoint(-245245, 251040, 4359, 280, 2000)
  35. };
  36. private static final VehiclePathPoint[][] TELEPORTS =
  37. {
  38. {
  39. new VehiclePathPoint(-245245, 251040, 4359, 280, 2000),
  40. new VehiclePathPoint(-235693, 248843, 5100, 0, 0)
  41. },
  42. {
  43. new VehiclePathPoint(-245245, 251040, 4359, 280, 2000),
  44. new VehiclePathPoint(-195357, 233430, 2500, 0, 0)
  45. }
  46. };
  47. private static final int[] FUEL =
  48. {
  49. 0,
  50. 100
  51. };
  52. public SoDController()
  53. {
  54. super(-1, SoDController.class.getSimpleName(), "gracia/vehicles");
  55. addStartNpc(CONTROLLER_ID);
  56. addFirstTalkId(CONTROLLER_ID);
  57. addTalkId(CONTROLLER_ID);
  58. _dockZone = DOCK_ZONE;
  59. addEnterZoneId(DOCK_ZONE);
  60. addExitZoneId(DOCK_ZONE);
  61. _shipSpawnX = -247702;
  62. _shipSpawnY = 253631;
  63. _shipSpawnZ = 4359;
  64. _oustLoc = new Location(-247746, 251079, 4328);
  65. _locationId = LOCATION;
  66. _arrivalPath = ARRIVAL;
  67. _departPath = DEPART;
  68. _teleportsTable = TELEPORTS;
  69. _fuelTable = FUEL;
  70. _movieId = 1003;
  71. validityCheck();
  72. }
  73. }