Advertisement
Fabbian

evento

Dec 21st, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.71 KB | None | 0 0
  1. public static void main(String[] args)
  2. {
  3.  
  4. _log.info("Spawn Events Managers");
  5. if (Config.BIGSQUASH_SPAWN)
  6. {
  7. _log.info(" - Big Squash");
  8. L2NpcTemplate template;
  9. template = NpcTable.getInstance().getTemplate(31255);
  10. L2NpcInstance santa1 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  11. L2NpcInstance santa2 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  12. L2NpcInstance santa3 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  13. L2NpcInstance santa4 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  14. L2NpcInstance santa5 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  15. L2NpcInstance santa6 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  16. santa1.spawnMe(148482, 27925, -2266);
  17. santa2.spawnMe(82207, 148713, -3460);
  18. santa3.spawnMe(80688, 55712, -1550);
  19. santa4.spawnMe(16257, 142756, -2700);
  20. santa5.spawnMe(-14734, 122624, -3110);
  21. santa6.spawnMe(-82724, 151681, -3123);
  22.  
  23. }
  24. if (Config.CRISTMAS_SPAWN)
  25. {
  26. _log.info(" - Christmas event");
  27. L2NpcTemplate template;
  28. template = NpcTable.getInstance().getTemplate(31864);
  29. L2NpcInstance santa1 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  30. L2NpcInstance santa2 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  31. L2NpcInstance santa3 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  32. L2NpcInstance santa4 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  33. L2NpcInstance santa5 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  34. L2NpcInstance santa6 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  35. santa1.spawnMe(148482, 27861, -2266);
  36. santa2.spawnMe(82207, 148602, -3460);
  37. santa3.spawnMe(80688, 55629, -1550);
  38. santa4.spawnMe(16175, 142756, -2700);
  39. santa5.spawnMe(-14734, 122689, -3110);
  40. santa6.spawnMe(-82660, 151678, -3123);
  41. }
  42. if (Config.MEDAL_SPAWN)
  43. {
  44. _log.info(" - Medals event");
  45. L2NpcTemplate template1;
  46. L2NpcTemplate template2;
  47. L2NpcTemplate template3;
  48. template1 = NpcTable.getInstance().getTemplate(31228);
  49. template2 = NpcTable.getInstance().getTemplate(31229);
  50. template3 = NpcTable.getInstance().getTemplate(31230);
  51. for (int i = 0; i < 9; i++)
  52. {
  53. L2NpcInstance medalNpc1 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template1);
  54. medalNpc1.spawnMe(LOC1[i][0], LOC1[i][1], LOC1[i][2]);
  55. L2NpcInstance medalNpc2 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template2);
  56. medalNpc2.spawnMe(LOC2[i][0], LOC2[i][1], LOC2[i][2]);
  57. }
  58. L2NpcInstance medalRandomNpc = new L2NpcInstance(IdFactory.getInstance().getNextId(), template3);
  59. int i = Rnd.get(9);
  60. medalRandomNpc.spawnMe(LOCL[i][0], LOCL[i][1], LOCL[i][2]);
  61. L2NpcTemplate template;
  62. template = NpcTable.getInstance().getTemplate(32130);
  63. L2NpcInstance EvManager1 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  64. L2NpcInstance EvManager2 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  65. L2NpcInstance EvManager3 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  66. L2NpcInstance EvManager4 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  67. L2NpcInstance EvManager5 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  68. L2NpcInstance EvManager6 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  69. EvManager1.spawnMe(148482, 27861, -2266);
  70. EvManager2.spawnMe(82207, 148602, -3460);
  71. EvManager3.spawnMe(80688, 55629, -1550);
  72. EvManager4.spawnMe(16175, 142756, -2700);
  73. EvManager5.spawnMe(-14734, 122689, -3110);
  74. EvManager6.spawnMe(-82660, 151678, -3123);
  75. }
  76. if (Config.STAR_SPAWN)
  77. {
  78. _log.info(" - Starlight festival");
  79. L2NpcTemplate template;
  80. template = NpcTable.getInstance().getTemplate(31855);
  81. L2NpcInstance manager1 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  82. L2NpcInstance manager2 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  83. L2NpcInstance manager3 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  84. L2NpcInstance manager4 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  85. L2NpcInstance manager5 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  86. L2NpcInstance manager6 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  87. manager1.spawnMe(148482, 27861, -2266);
  88. manager2.spawnMe(82207, 148602, -3460);
  89. manager3.spawnMe(80688, 55629, -1550);
  90. manager4.spawnMe(16175, 142756, -2700);
  91. manager5.spawnMe(-14734, 122689, -3110);
  92. manager6.spawnMe(-82660, 151678, -3123);
  93. }
  94. if (Config.L2DAY_SPAWN)
  95. {
  96. L2NpcTemplate template;
  97. template = NpcTable.getInstance().getTemplate(32130);
  98. L2NpcInstance EvManager1 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  99. L2NpcInstance EvManager2 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  100. L2NpcInstance EvManager3 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  101. L2NpcInstance EvManager4 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  102. L2NpcInstance EvManager5 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  103. L2NpcInstance EvManager6 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
  104. EvManager1.spawnMe(148482, 27861, -2266);
  105. EvManager2.spawnMe(82207, 148602, -3460);
  106. EvManager3.spawnMe(80688, 55629, -1550);
  107. EvManager4.spawnMe(16175, 142756, -2700);
  108. EvManager5.spawnMe(-14734, 122689, -3110);
  109. EvManager6.spawnMe(-82660, 151678, -3123);
  110. }
  111. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement