Ejemplo n.º 1
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());
        }
      }
    }
  }
Ejemplo n.º 2
0
 @Override
 public String onEnterZone(L2Character character, L2ZoneType zone) {
   if ((character instanceof L2PcInstance)
       && !character.isDead()
       && !character.isTeleporting()
       && ((L2PcInstance) character).isOnline()) {
     final InstanceWorld tmpworld =
         InstanceManager.getInstance().getWorld(character.getInstanceId());
     if (tmpworld instanceof NornilsWorld) {
       for (int _auto[] : _auto_gates) {
         if (zone.getId() == _auto[0]) {
           openDoor(_auto[1], tmpworld.getInstanceId());
         }
         if (zone.getId() == 20111) {
           spawn3(character);
         } else if (zone.getId() == 20112) {
           spawn4(character);
         }
       }
     }
   }
   return super.onEnterZone(character, zone);
 }