Package lineage2.gameserver.templates.mapregion

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


    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

        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

    {
      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

   * @param template NpcTemplate
   */
  public Kama26BossInstance(int objectId, NpcTemplate template)
  {
    super(objectId, template);
    getMinionList().addMinion(new MinionData(18556, 1));
  }
View Full Code Here

    ThreadPoolManager.getInstance().schedule(new RunnableImpl()
    {
      @Override
      public void runImpl()
      {
        final NpcTemplate template = NpcHolder.getInstance().getTemplate(18602);
        if (template != null)
        {
          final NpcInstance a = template.getNewInstance();
          a.setCurrentHpMp(a.getMaxHp(), a.getMaxMp());
          a.spawnMe(actor.getLoc());
        }
      }
    }, 10000L);
View Full Code Here

      {
        player.sendPacket(Msg.YOU_CANNOT_TELEPORT_TO_A_VILLAGE_THAT_IS_IN_A_SIEGE);
        return;
      }
    }
    final Location pos = Location.findPointToStay(x, y, z, 50, 100, player.getGeoIndex());
    if (price > 0)
    {
      player.reduceAdena(price, true);
    }
    player.teleToLocation(pos);
View Full Code Here

      player.sendPacket(SystemMessage2.removeItems(item, count));
    }
    final int x = Integer.parseInt(param[0]);
    final int y = Integer.parseInt(param[1]);
    final int z = Integer.parseInt(param[2]);
    final Location pos = Location.findPointToStay(x, y, z, 20, 70, player.getGeoIndex());
    player.teleToLocation(pos);
  }
View Full Code Here

      return;
    }
    final String var = player.getVar("DCBackCoords");
    if ((var == null) || var.isEmpty())
    {
      player.teleToLocation(new Location(43768, -48232, -800), 0);
      return;
    }
    player.teleToLocation(Location.parseLoc(var), 0);
    player.unsetVar("DCBackCoords");
  }
View Full Code Here

    }
    for (Player player : World.getAroundPlayers(actor, 200, 200))
    {
      if (player != null)
      {
        player.teleToLocation(new Location(207559, 86429, -1000));
      }
    }
    return true;
  }
View Full Code Here

TOP

Related Classes of lineage2.gameserver.templates.mapregion.DomainArea

Copyright © 2018 www.massapicom. 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.