Examples of DomainArea


Examples of lineage2.gameserver.templates.mapregion.DomainArea

      if ((getNpcId() == 32484) && Config.ALT_KAMALOKA_NIGHTMARES_PREMIUM_ONLY && !player.hasBonus())
      {
        showChatWindow(player, "instance/soloKamaloka/32484-no.htm");
        return;
      }
      DomainArea domain = MapRegionManager.getInstance().getRegionData(DomainArea.class, this);
      String htmlpath = "instance/soloKamaloka/" + getNpcId();
      if (domain != null)
      {
        switch (domain.getId())
        {
          case 1:
            htmlpath += "-gludio";
            break;
          case 2:
View Full Code Here

Examples of lineage2.gameserver.templates.mapregion.DomainArea

        }
        if (territory == null)
        {
          throw new RuntimeException("DomainParser: empty territory!");
        }
        getHolder().addRegionData(new DomainArea(id, territory));
      }
    }
  }
View Full Code Here

Examples of lineage2.gameserver.templates.mapregion.DomainArea

    if ((seedId == 0) || (player.getInventory().getItemByItemId(item.getItemId()) == null))
    {
      player.sendPacket(SystemMsg.INCORRECT_ITEM_COUNT);
      return false;
    }
    final DomainArea domain = MapRegionManager.getInstance().getRegionData(DomainArea.class, player);
    final int castleId = domain == null ? 0 : domain.getId();
    if (Manor.getInstance().getCastleIdForSeed(seedId) != castleId)
    {
      player.sendPacket(SystemMsg.THIS_SEED_MAY_NOT_BE_SOWN_HERE);
      return false;
    }
View Full Code Here

Examples of lineage2.gameserver.templates.mapregion.DomainArea

        activeChar.sendMessage("Pos: " + pos);
        break;
      }
      case admin_domain:
      {
        DomainArea domain = MapRegionManager.getInstance().getRegionData(DomainArea.class, activeChar);
        Castle castle = domain != null ? ResidenceHolder.getInstance().getResidence(Castle.class, domain.getId()) : null;
        if (castle != null)
        {
          activeChar.sendMessage("Domain: " + castle.getName());
        }
        else
View Full Code Here

Examples of lineage2.gameserver.templates.mapregion.DomainArea

    {
      String var = player.getVar("backCoords");
      if ((var != null) && !var.isEmpty())
      {
        Location loc = Location.parseLoc(var);
        DomainArea domain = MapRegionManager.getInstance().getRegionData(DomainArea.class, loc);
        if (domain != null)
        {
          return ResidenceHolder.getInstance().getResidence(Castle.class, domain.getId());
        }
      }
      return super.getCastle();
    }
    return super.getCastle(player);
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.