SoDController.java 2.3 KB

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