Jump to content
  • Bag.GetBagItem() | InBag


    TechMecca
    • Version: All Product: WRobot General Type: Bug Status: Fixed

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



    User Feedback

    Recommended Comments

    TechMecca

    Posted

    6 hours ago, Droidz said:

    Hello, in what version?

    3.3.5a

    TechMecca

    Posted

    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));
                            }
                        }
                    }
                }
            }

     

    Droidz

    Posted

    Hello, wait next update for the fix.

    By default, the bot and users use "ItemsManager.HasItemById(1234)" to check if the character has item.



    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...