Examples of spawnAction()


Examples of lineage2.gameserver.model.entity.events.impl.ClanHallMiniGameEvent.spawnAction()

      }
      String arenaName = "arena_" + i;
      SpawnExObject spawnEx = miniGameEvent.getFirstObject(arenaName);
      RainbowYetiInstance yetiInstance = (RainbowYetiInstance) spawnEx.getSpawns().get(0).getFirstSpawned();
      yetiInstance.teleportFromArena();
      miniGameEvent.spawnAction(arenaName, false);
    }
  }
 
  /**
   * Method onDecay.
View Full Code Here

Examples of lineage2.gameserver.model.entity.events.impl.ClanHallMiniGameEvent.spawnAction()

      return;
    }
    List<CMGSiegeClanObject> attackers = miniGameEvent.getObjects(SiegeEvent.ATTACKERS);
    int index = attackers.indexOf(_winner);
    String arenaName = "arena_" + index;
    miniGameEvent.spawnAction(arenaName, false);
    SpawnExObject spawnEx = miniGameEvent.getFirstObject(arenaName);
    Spawner spawner = spawnEx.getSpawns().get(0);
    Location loc = (Location) spawner.getCurrentSpawnRange();
    miniGameEvent.removeBanishItems();
    final NpcInstance npc = NpcUtils.spawnSingle(35600, loc.x, loc.y, loc.z, 0);
View Full Code Here

Examples of lineage2.gameserver.model.entity.events.impl.FortressSiegeEvent.spawnAction()

    FortressSiegeEvent siegeEvent = getEvent(FortressSiegeEvent.class);
    if (siegeEvent == null)
    {
      return;
    }
    siegeEvent.spawnAction(FortressSiegeEvent.IN_POWER_UNITS, false);
    siegeEvent.barrackAction(3, true);
    siegeEvent.broadcastTo(SystemMsg.THE_BARRACKS_HAVE_BEEN_SEIZED, SiegeEvent.ATTACKERS, SiegeEvent.DEFENDERS);
    onDecay();
    siegeEvent.checkBarracks();
  }
View Full Code Here

Examples of lineage2.gameserver.model.entity.events.impl.FortressSiegeEvent.spawnAction()

    {
      if (player.consumeItem(ITEM_ID, 1))
      {
        FortressSiegeEvent event = getEvent(FortressSiegeEvent.class);
        event.doorAction(FortressSiegeEvent.MACHINE_DOORS, true);
        event.spawnAction(FortressSiegeEvent.OUT_POWER_UNITS, false);
      }
      else
      {
        showChatWindow(player, "residence2/fortress/fortress_controller002.htm");
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.