Jump to content
  • [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



    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;

     

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