Examples of ItemAuction


Examples of lineage2.gameserver.instancemanager.itemauction.ItemAuction

    final ItemAuctionInstance instance = ItemAuctionManager.getInstance().getManagerInstance(_instanceId);
    if (instance == null)
    {
      return;
    }
    final ItemAuction auction = instance.getCurrentAuction();
    NpcInstance broker = activeChar.getLastNpc();
    if ((auction == null) || (broker == null) || (broker.getNpcId() != _instanceId) || (activeChar.getDistance(broker.getX(), broker.getY()) > Creature.INTERACTION_DISTANCE))
    {
      return;
    }
View Full Code Here

Examples of lineage2.gameserver.instancemanager.itemauction.ItemAuction

    {
      return;
    }
    if (instance != null)
    {
      final ItemAuction auction = instance.getCurrentAuction();
      if (auction != null)
      {
        auction.registerBid(activeChar, _bid);
      }
    }
  }
View Full Code Here

Examples of lineage2.gameserver.instancemanager.itemauction.ItemAuction

          catch (NumberFormatException e)
          {
            e.printStackTrace();
            return;
          }
          final ItemAuction auction = _instance.getAuction(auctionId);
          if (auction != null)
          {
            auction.cancelBid(player);
          }
          else
          {
            player.sendPacket(Msg.THERE_ARE_NO_FUNDS_PRESENTLY_DUE_TO_YOU);
          }
        }
        else
        {
          final ItemAuction[] auctions = _instance.getAuctionsByBidder(player.getObjectId());
          for (final ItemAuction auction : auctions)
          {
            auction.cancelBid(player);
          }
        }
      }
      else if (params[1].equals("show"))
      {
        final ItemAuction currentAuction = _instance.getCurrentAuction();
        final ItemAuction nextAuction = _instance.getNextAuction();
        if (currentAuction == null)
        {
          player.sendPacket(Msg.IT_IS_NOT_AN_AUCTION_PERIOD);
          if (nextAuction != null)
          {
            player.sendMessage("The next auction will begin on the " + fmt.format(new Date(nextAuction.getStartingTime())) + ".");
          }
          return;
        }
        if (!player.getAndSetLastItemAuctionRequest())
        {
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.