Jump to content
  • Bag.GetBagItem() | InBag


    Nax
    • Version: All Product: WRobot General Type: Bug Status: Fixed
     Share

    Hey for some reason the boolean InBag is returning false if its in bag. (Not equipped.) Bug ?


     Share


    User Feedback

    Recommended Comments

    My Code 

    nternal static void SearchForBags()
            {
                BagIndex.Clear();
                foreach (var item in Bag.GetBagItem())
                {
                    if(item.Type == WoWObjectType.Container)
                    {
                        if(item.InBag)
                        {
                            Int32[] s = Bag.GetItemContainerBagIdAndSlot(item.Entry).ToArray();
                            if (s != null && !BagIndex.Exists(x => x.Name == item.Name))
                            {
                                var Name = item.Name;
                                var Slots = BagSlotReader(s[0], s[1]);
                                var entry = item.Entry;
                                BagIndex.Add(new BagClass(Name, Slots, entry, s));
                            }
                        }
                    }
                }
            }

     

    Link to comment
    Share on other sites



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...