Ejemplo n.º 1
0
 public ItemRequest(int min, int max, int inc, int qnty, bool stack, AHItem itemdata)
 {
     Minimum = min;
     Maximum = max;
     Increment = inc;
     Quantity = qnty;
     Stack = stack;
     ItemData = itemdata;
     boughtCost = 0;
     boughtCount = 0;
 }
Ejemplo n.º 2
0
        //Will Not Work until MenuLength is restored and a resource parsing method restored.
        public bool TraverseMenu(String address)
        {
            GotoMenu(address);
            Thread.Sleep((int)CampahStatus.Instance.GlobalDelay);
            if (FFACE_INSTANCE.Instance.Menu.Selection == "Bid")
                return true;
            int max = AuctionHouse.MenuLength;

            for (int i = 1; i <= max; i++)
            {
                if (TraverseMenu(address + "," + i))
                {
                    int[] ids = ReadAHItems();
                    foreach (int id in ids)
                    {
                        //if (string.IsNullOrEmpty(FFACE.ParseResources.GetItemName(id)))
                        //MessageBox.Show(id + " : " + FFACE.ParseResources.GetItemName(id));
                        AHItem item = new AHItem(id, /*FFACE.ParseResources.GetItemName(id)*/id.ToString(), false, address + "," + i);
                        if ((item = AuctionHouse.Add(item)) != null)
                        {
                            item.Stackable = true;
                        }
                    }
                    AuctionHouse.MenuIndex = 1;
                }
            }
            return false;
        }
Ejemplo n.º 3
0
 //If duplicate found, returns duplicate
 public static AHItem Add(AHItem item)
 {
     if (items.ContainsKey(item.Name))
         return items[item.Name];
     items.Add(item.Name, item);
     return null;
 }