Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args)
- {
- _log.info("Spawn Events Managers");
- if (Config.BIGSQUASH_SPAWN)
- {
- _log.info(" - Big Squash");
- L2NpcTemplate template;
- template = NpcTable.getInstance().getTemplate(31255);
- L2NpcInstance santa1 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- L2NpcInstance santa2 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- L2NpcInstance santa3 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- L2NpcInstance santa4 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- L2NpcInstance santa5 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- L2NpcInstance santa6 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- santa1.spawnMe(148482, 27925, -2266);
- santa2.spawnMe(82207, 148713, -3460);
- santa3.spawnMe(80688, 55712, -1550);
- santa4.spawnMe(16257, 142756, -2700);
- santa5.spawnMe(-14734, 122624, -3110);
- santa6.spawnMe(-82724, 151681, -3123);
- }
- if (Config.CRISTMAS_SPAWN)
- {
- _log.info(" - Christmas event");
- L2NpcTemplate template;
- template = NpcTable.getInstance().getTemplate(31864);
- L2NpcInstance santa1 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- L2NpcInstance santa2 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- L2NpcInstance santa3 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- L2NpcInstance santa4 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- L2NpcInstance santa5 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- L2NpcInstance santa6 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- santa1.spawnMe(148482, 27861, -2266);
- santa2.spawnMe(82207, 148602, -3460);
- santa3.spawnMe(80688, 55629, -1550);
- santa4.spawnMe(16175, 142756, -2700);
- santa5.spawnMe(-14734, 122689, -3110);
- santa6.spawnMe(-82660, 151678, -3123);
- }
- if (Config.MEDAL_SPAWN)
- {
- _log.info(" - Medals event");
- L2NpcTemplate template1;
- L2NpcTemplate template2;
- L2NpcTemplate template3;
- template1 = NpcTable.getInstance().getTemplate(31228);
- template2 = NpcTable.getInstance().getTemplate(31229);
- template3 = NpcTable.getInstance().getTemplate(31230);
- for (int i = 0; i < 9; i++)
- {
- L2NpcInstance medalNpc1 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template1);
- medalNpc1.spawnMe(LOC1[i][0], LOC1[i][1], LOC1[i][2]);
- L2NpcInstance medalNpc2 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template2);
- medalNpc2.spawnMe(LOC2[i][0], LOC2[i][1], LOC2[i][2]);
- }
- L2NpcInstance medalRandomNpc = new L2NpcInstance(IdFactory.getInstance().getNextId(), template3);
- int i = Rnd.get(9);
- medalRandomNpc.spawnMe(LOCL[i][0], LOCL[i][1], LOCL[i][2]);
- L2NpcTemplate template;
- template = NpcTable.getInstance().getTemplate(32130);
- L2NpcInstance EvManager1 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- L2NpcInstance EvManager2 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- L2NpcInstance EvManager3 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- L2NpcInstance EvManager4 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- L2NpcInstance EvManager5 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- L2NpcInstance EvManager6 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- EvManager1.spawnMe(148482, 27861, -2266);
- EvManager2.spawnMe(82207, 148602, -3460);
- EvManager3.spawnMe(80688, 55629, -1550);
- EvManager4.spawnMe(16175, 142756, -2700);
- EvManager5.spawnMe(-14734, 122689, -3110);
- EvManager6.spawnMe(-82660, 151678, -3123);
- }
- if (Config.STAR_SPAWN)
- {
- _log.info(" - Starlight festival");
- L2NpcTemplate template;
- template = NpcTable.getInstance().getTemplate(31855);
- L2NpcInstance manager1 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- L2NpcInstance manager2 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- L2NpcInstance manager3 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- L2NpcInstance manager4 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- L2NpcInstance manager5 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- L2NpcInstance manager6 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- manager1.spawnMe(148482, 27861, -2266);
- manager2.spawnMe(82207, 148602, -3460);
- manager3.spawnMe(80688, 55629, -1550);
- manager4.spawnMe(16175, 142756, -2700);
- manager5.spawnMe(-14734, 122689, -3110);
- manager6.spawnMe(-82660, 151678, -3123);
- }
- if (Config.L2DAY_SPAWN)
- {
- L2NpcTemplate template;
- template = NpcTable.getInstance().getTemplate(32130);
- L2NpcInstance EvManager1 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- L2NpcInstance EvManager2 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- L2NpcInstance EvManager3 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- L2NpcInstance EvManager4 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- L2NpcInstance EvManager5 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- L2NpcInstance EvManager6 = new L2NpcInstance(IdFactory.getInstance().getNextId(), template);
- EvManager1.spawnMe(148482, 27861, -2266);
- EvManager2.spawnMe(82207, 148602, -3460);
- EvManager3.spawnMe(80688, 55629, -1550);
- EvManager4.spawnMe(16175, 142756, -2700);
- EvManager5.spawnMe(-14734, 122689, -3110);
- EvManager6.spawnMe(-82660, 151678, -3123);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement