Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
  • Random Items List (Bank, GE, Inventory, Equipment)


    VladX
     Share

    Recommended Posts

    Is there any chance to get valid list of items that hero posseses?

    Methods like:

    getBank().all()

    getInventory().all()

    etc. can return empty list, or only a part of items that really exists in specific location.

    That problem commonly occurs when world has changed but not only.

    ofcourse method usually works good but i can't rely on that results.

     

    How to check to be sure?

    How to handle it?

    Link to comment
    Share on other sites

    On 3/15/2020 at 7:38 PM, Pseudo said:

    Check the game status before parsing the item data? (I. E. Make sure you're in game before calling the methods). 

     

    Ty for your response. I'm sure that im logged into specific world (i made button that lists items for test).

    Link to comment
    Share on other sites

    • 5 weeks later...

    its 

    On 3/17/2020 at 12:51 PM, Pseudo said:

    Could you post the relevant portion of your code?

    It's simply: getBank().all()

    I noticed that can occur when item is changing atm like in GE

    example:

    I have offer:

    SELL OFFER - 100 QTY for price 10 gp  each (0 sold atm)

    When someone buy couple of my items i can recieve list without that item in my offers. Its last like 1-2 secs then offer appear again like follow:

    SELL OFFER - 100 QTY for price 10 gp  each (ex 10 pcs sold)

    im wonder that can i check it somehow that item is changing and then wait to valid list?

    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
     Share

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.