KeucereusSouthController.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.KeucereusSouthController;
  16. import vehicles.AirShipController;
  17. import com.l2jserver.gameserver.model.Location;
  18. import com.l2jserver.gameserver.model.VehiclePathPoint;
  19. public class KeucereusSouthController extends AirShipController
  20. {
  21. private static final int DOCK_ZONE = 50603;
  22. private static final int LOCATION = 100;
  23. private static final int CONTROLLER_ID = 32517;
  24. private static final VehiclePathPoint[] ARRIVAL =
  25. {
  26. new VehiclePathPoint(-185312, 246544, 2500),
  27. new VehiclePathPoint(-185312, 246544, 1336)
  28. };
  29. private static final VehiclePathPoint[] DEPART =
  30. {
  31. new VehiclePathPoint(-185312, 246544, 1700, 280, 2000),
  32. new VehiclePathPoint(-186900, 251699, 1700, 280, 2000)
  33. };
  34. private static final VehiclePathPoint[][] TELEPORTS =
  35. {
  36. {
  37. new VehiclePathPoint(-185312, 246544, 1700, 280, 2000),
  38. new VehiclePathPoint(-186900, 251699, 1700, 280, 2000),
  39. new VehiclePathPoint(-186373, 234000, 2500, 0, 0)
  40. },
  41. {
  42. new VehiclePathPoint(-185312, 246544, 1700, 280, 2000),
  43. new VehiclePathPoint(-186900, 251699, 1700, 280, 2000),
  44. new VehiclePathPoint(-206692, 220997, 3000, 0, 0)
  45. },
  46. {
  47. new VehiclePathPoint(-185312, 246544, 1700, 280, 2000),
  48. new VehiclePathPoint(-186900, 251699, 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 KeucereusSouthController(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 = -184527;
  66. _shipSpawnY = 243611;
  67. _shipSpawnZ = 3000;
  68. _locationId = LOCATION;
  69. _arrivalPath = ARRIVAL;
  70. _departPath = DEPART;
  71. _teleportsTable = TELEPORTS;
  72. _fuelTable = FUEL;
  73. _oustLoc = new Location(-186148, 246296, 1360);
  74. _movieId = 1000;
  75. validityCheck();
  76. }
  77. public static void main(String[] args)
  78. {
  79. new KeucereusSouthController(-1, KeucereusSouthController.class.getSimpleName(), "vehicles");
  80. }
  81. }