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

  • Sign in to follow this  

    [TBC] GetItemCountByNameLUA returning 0


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

    Hey,

    sometimes ItemsManager.GetItemCountByNameLUA seems to return 0 even though the count isnt 0. Not sure what is causing this


    Sign in to follow this  


    User Feedback

    Recommended Comments

    Hello, this can happen sometimes, if you can add 2 check like:

                if (Conditions.InGameAndConnected && ItemsManager.GetItemCountByNameLUA("item name") == 0)
                {
                    System.Threading.Thread.Sleep(200);
                    if (Conditions.InGameAndConnected &&  ItemsManager.GetItemCountByNameLUA("item name") == 0)
                        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.

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