NonTalkingNpcs.java 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 ai.group_template;
  20. import ai.npc.AbstractNpcAI;
  21. import com.l2jserver.gameserver.model.actor.L2Npc;
  22. /**
  23. * AI for handle Non-Talking NPCs.
  24. * @author St3eT
  25. */
  26. public final class NonTalkingNpcs extends AbstractNpcAI
  27. {
  28. // @formatter:off
  29. private static final int[] NONTALKINGNPCS =
  30. {
  31. 18684, 18685, 18686, // Red Star Stone
  32. 18687, 18688, 18689, // Blue Star Stone
  33. 18690, 18691, 18692, // Green Star Stone
  34. 18848, 18849, 18926, // Jinia Guild
  35. 18927, // Fire
  36. 18933, // Fire Feed
  37. 31202, 31203, 31204, 31205, 31206, 31207, 31208, 31209, 31266, 31593, 31758, 31955, // Town pets
  38. 31557, // Mercenary Sentry
  39. 31606, // Alice de Catrina
  40. 31671, 31672, 31673, 31674, // Patrol
  41. 32026, // Hestui Guard
  42. 32030, // Garden Sculpture
  43. 32031, // Ice Fairy Sculpture
  44. 32032, // Strange Machine
  45. 32306, // Native's Corpse
  46. 32619, 32620, 32621, // NPC's without name
  47. 32715, 32716, 32717, // Lilith's group
  48. 32718, 32719, 32720, 32721, // Anakim's group
  49. 18839, // Wild Maguen
  50. 18915, // Divine Furnace
  51. };
  52. // @formatter:on
  53. public NonTalkingNpcs()
  54. {
  55. super(NonTalkingNpcs.class.getSimpleName(), "ai/group_template");
  56. addSpawnId(NONTALKINGNPCS);
  57. }
  58. @Override
  59. public String onSpawn(L2Npc npc)
  60. {
  61. npc.setTalking(false);
  62. return super.onSpawn(npc);
  63. }
  64. public static void main(String[] args)
  65. {
  66. new NonTalkingNpcs();
  67. }
  68. }