Examples of ItemAuctionInstance


Examples of lineage2.gameserver.instancemanager.itemauction.ItemAuctionInstance

    if (activeChar == null)
    {
      return;
    }
    activeChar.getAndSetLastItemAuctionRequest();
    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;
    }
    activeChar.sendPacket(new ExItemAuctionInfo(true, auction, instance.getNextAuction()));
  }
View Full Code Here

Examples of lineage2.gameserver.instancemanager.itemauction.ItemAuctionInstance

    ItemInstance adena = activeChar.getInventory().getItemByItemId(57);
    if ((_bid < 0) || (_bid > adena.getCount()))
    {
      return;
    }
    final ItemAuctionInstance instance = ItemAuctionManager.getInstance().getManagerInstance(_instanceId);
    NpcInstance broker = activeChar.getLastNpc();
    if ((broker == null) || (broker.getNpcId() != _instanceId) || (activeChar.getDistance(broker.getX(), broker.getY()) > Creature.INTERACTION_DISTANCE))
    {
      return;
    }
    if (instance != null)
    {
      final ItemAuction auction = instance.getCurrentAuction();
      if (auction != null)
      {
        auction.registerBid(activeChar, _bid);
      }
    }
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.