Exemplo n.º 1
0
  private void prepareInstance(NornilsWorld world) {
    world.first_npc =
        addSpawn(18362, -109702, 74696, -12528, 49568, false, 0, false, world.getInstanceId());

    final L2DoorInstance door = getDoor(16200010, world.getInstanceId());
    if (door != null) {
      door.setTargetable(false);
      door.setMeshIndex(2);
    }
  }
Exemplo n.º 2
0
  private void spawn4(L2Character cha) {
    final InstanceWorld inst = InstanceManager.getInstance().getWorld(cha.getInstanceId());
    if (inst instanceof NornilsWorld) {
      final NornilsWorld world = ((NornilsWorld) inst);
      if (!world.spawned_4) {
        world.spawned_4 = true;

        for (int mob[] : _group_4) {
          addSpawn(mob[0], mob[1], mob[2], mob[3], mob[4], false, 0, false, world.getInstanceId());
        }
      }
    }
  }
Exemplo n.º 3
0
  private void spawn2(L2Npc npc) {
    final InstanceWorld inst = InstanceManager.getInstance().getWorld(npc.getInstanceId());
    if (inst instanceof NornilsWorld) {
      final NornilsWorld world = ((NornilsWorld) inst);
      if (!world.spawned_2) {
        world.spawned_2 = true;

        for (int mob[] : _group_2) {
          addSpawn(mob[0], mob[1], mob[2], mob[3], mob[4], false, 0, false, world.getInstanceId());
        }
      }
    }
  }