SoIController.java 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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.SoIController;
  16. import vehicles.AirShipController;
  17. import com.l2jserver.gameserver.model.Location;
  18. import com.l2jserver.gameserver.model.VehiclePathPoint;
  19. public class SoIController extends AirShipController
  20. {
  21. private static final int DOCK_ZONE = 50600;
  22. private static final int LOCATION = 101;
  23. private static final int CONTROLLER_ID = 32604;
  24. private static final VehiclePathPoint[] ARRIVAL =
  25. {
  26. new VehiclePathPoint(-214422, 211396, 5000, 280, 2000),
  27. new VehiclePathPoint(-214422, 211396, 4422, 280, 2000)
  28. };
  29. private static final VehiclePathPoint[] DEPART =
  30. {
  31. new VehiclePathPoint(-214422, 211396, 5000, 280, 2000),
  32. new VehiclePathPoint(-215877, 209709, 5000, 280, 2000)
  33. };
  34. private static final VehiclePathPoint[][] TELEPORTS =
  35. {
  36. {
  37. new VehiclePathPoint(-214422, 211396, 5000, 280, 2000),
  38. new VehiclePathPoint(-215877, 209709, 5000, 280, 2000),
  39. new VehiclePathPoint(-206692, 220997, 3000, 0, 0)
  40. },
  41. {
  42. new VehiclePathPoint(-214422, 211396, 5000, 280, 2000),
  43. new VehiclePathPoint(-215877, 209709, 5000, 280, 2000),
  44. new VehiclePathPoint(-195357, 233430, 2500, 0, 0)
  45. }
  46. };
  47. private static final int[] FUEL =
  48. {
  49. 0, 50
  50. };
  51. public SoIController(int questId, String name, String descr)
  52. {
  53. super(questId, name, descr);
  54. addStartNpc(CONTROLLER_ID);
  55. addFirstTalkId(CONTROLLER_ID);
  56. addTalkId(CONTROLLER_ID);
  57. _dockZone = DOCK_ZONE;
  58. addEnterZoneId(DOCK_ZONE);
  59. addExitZoneId(DOCK_ZONE);
  60. _shipSpawnX = -212719;
  61. _shipSpawnY = 213348;
  62. _shipSpawnZ = 5000;
  63. _oustLoc = new Location(-213401, 210401, 4408);
  64. _locationId = LOCATION;
  65. _arrivalPath = ARRIVAL;
  66. _departPath = DEPART;
  67. _teleportsTable = TELEPORTS;
  68. _fuelTable = FUEL;
  69. _movieId = 1002;
  70. validityCheck();
  71. }
  72. public static void main(String[] args)
  73. {
  74. new SoIController(-1, SoIController.class.getSimpleName(), "vehicles");
  75. }
  76. }