KeucereusNorthController.java 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /*
  2. * This program is free software: you can redistribute it and/or modify it under
  3. * the terms of the GNU General Public License as published by the Free Software
  4. * Foundation, either version 3 of the License, or (at your option) any later
  5. * version.
  6. *
  7. * This program is distributed in the hope that it will be useful, but WITHOUT
  8. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  9. * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  10. * details.
  11. *
  12. * You should have received a copy of the GNU General Public License along with
  13. * this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. package vehicles.KeucereusNorthController;
  16. import vehicles.AirShipController;
  17. import com.l2jserver.gameserver.model.Location;
  18. import com.l2jserver.gameserver.model.VehiclePathPoint;
  19. public class KeucereusNorthController extends AirShipController
  20. {
  21. private static final int DOCK_ZONE = 50602;
  22. private static final int LOCATION = 100;
  23. private static final int CONTROLLER_ID = 32606;
  24. private static final VehiclePathPoint[] ARRIVAL =
  25. {
  26. new VehiclePathPoint(-183218, 239494, 2500, 280, 2000),
  27. new VehiclePathPoint(-183218, 239494, 1336, 280, 2000)
  28. };
  29. private static final VehiclePathPoint[] DEPART =
  30. {
  31. new VehiclePathPoint(-183218, 239494, 1700, 280, 2000),
  32. new VehiclePathPoint(-181974, 235358, 1700, 280, 2000)
  33. };
  34. private static final VehiclePathPoint[][] TELEPORTS =
  35. {
  36. {
  37. new VehiclePathPoint(-183218, 239494, 1700, 280, 2000),
  38. new VehiclePathPoint(-181974, 235358, 1700, 280, 2000),
  39. new VehiclePathPoint(-186373, 234000, 2500, 0, 0)
  40. },
  41. {
  42. new VehiclePathPoint(-183218, 239494, 1700, 280, 2000),
  43. new VehiclePathPoint(-181974, 235358, 1700, 280, 2000),
  44. new VehiclePathPoint(-206692, 220997, 3000, 0, 0)
  45. },
  46. {
  47. new VehiclePathPoint(-183218, 239494, 1700, 280, 2000),
  48. new VehiclePathPoint(-181974, 235358, 1700, 280, 2000),
  49. new VehiclePathPoint(-235693, 248843, 5100, 0, 0)
  50. }
  51. };
  52. private static final int[] FUEL =
  53. {
  54. 0, 50, 100
  55. };
  56. public KeucereusNorthController(int questId, String name, String descr)
  57. {
  58. super(questId, name, descr);
  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 = -184145;
  66. _shipSpawnY = 242373;
  67. _shipSpawnZ = 3000;
  68. _oustLoc = new Location(-183900, 239384, 1320);
  69. _locationId = LOCATION;
  70. _arrivalPath = ARRIVAL;
  71. _departPath = DEPART;
  72. _teleportsTable = TELEPORTS;
  73. _fuelTable = FUEL;
  74. _movieId = 1001;
  75. validityCheck();
  76. }
  77. public static void main(String[] args)
  78. {
  79. new KeucereusNorthController(-1, KeucereusNorthController.class.getSimpleName(), "vehicles");
  80. }
  81. }