Jump to content
This site uses cookies! Learn More

This site uses cookies!

By continuing to use this site, you agree to allow us to store cookies on your computer. :)

  • GetItemCountByNameLUA Coming back with items on character the

    • Version: All Product: WRobot General Type: Bug Status: Not a Bug


    today while i was working on my Dk plugin to help make it easy to level a dk, ive found that "ItemsManager.GetItemCountByNameLUA" counts items on the character and in there bags.

    public static void Equipe()
            foreach (var item in Itemlist())
                if (!ItemsManager.HasItemById(39418) && ItemsManager.GetItemCountByNameLUA(item) >= 1)
                    Logging.Write("Item Manager(Item Equiped): " + item);


    User Feedback

    Recommended Comments


    GetItemCountByNameLua call lua api https://wowwiki.fandom.com/wiki/API_GetItemCount

    HasItemById use objectmanager and return true

                    var items = ObjectManager.ObjectManager.GetObjectWoWItem();
                    foreach (var woWItem in items)
                        if (woWItem.Entry == itemId && woWItem.Owner == ObjectManager.ObjectManager.Me.Guid)
                            return true;
                    return false;


    Share this comment

    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Add a comment...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...