Exemplo n.º 1
0
        public Auction(Mobile owner, AuctionSafe safe)
        {
            Safe  = safe;
            Owner = owner;
            Bids  = new List <BidEntry>();

            Duration = DefaultDuration;
        }
Exemplo n.º 2
0
        public BaseAuctionGump(PlayerMobile p, AuctionSafe safe)
            : base(100, 100)
        {
            Safe    = safe;
            Auction = safe.Auction;
            User    = p;

            AddGumpLayout();
        }
Exemplo n.º 3
0
        public Auction(AuctionSafe safe, GenericReader reader)
        {
            Safe = safe;

            int version = reader.ReadInt();

            Owner       = reader.ReadMobile();
            AuctionItem = reader.ReadItem();
            CurrentBid  = reader.ReadLong();
            StartBid    = reader.ReadLong();
            Buyout      = reader.ReadLong();
            Description = reader.ReadString();
            Duration    = reader.ReadInt();
            StartTime   = reader.ReadDateTime();
            OnGoing     = reader.ReadBool();

            Bids = new List <BidEntry>();

            int count = reader.ReadInt();

            for (int i = 0; i < count; i++)
            {
                PlayerMobile m     = reader.ReadMobile() as PlayerMobile;
                BidEntry     entry = new BidEntry(m, reader);

                if (m != null)
                {
                    Bids.Add(entry);

                    if (entry.CurrentBid > 0 && (HighestBid == null || entry.CurrentBid > HighestBid.CurrentBid))
                    {
                        HighestBid = entry;
                    }
                }
            }

            count = reader.ReadInt();

            if (count > 0)
            {
                BidHistory = new List <HistoryEntry>();
            }

            for (int i = 0; i < count; i++)
            {
                BidHistory.Add(new HistoryEntry(reader));
            }

            if (HasBegun)
            {
                Auctions.Add(this);
            }
        }
Exemplo n.º 4
0
            public override void GetProperties(ObjectPropertyList list)
            {
                base.GetProperties(list);

                AuctionSafe safe = this.Addon as AuctionSafe;

                if (safe != null && safe.Auction != null)
                {
                    if (safe.Auction.OnGoing)
                    {
                        if (!safe.Auction.InClaimPeriod)
                        {
                            list.Add(1156440); // Auction Pending
                        }
                        else
                        {
                            list.Add(1156438); // Auction Ended
                        }
                    }
                }
            }
Exemplo n.º 5
0
 public AuctionBidGump(PlayerMobile pm, AuctionSafe safe)
     : base(pm, safe)
 {
 }
Exemplo n.º 6
0
 public AuctionOwnerGump(PlayerMobile pm, AuctionSafe safe)
     : base(pm, safe)
 {
     Owner = true;
 }