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
  • getGrandExchange().buyItem() doesn't scroll to item


    RetroBot
     Share

    Recommended Posts

    When trying to buy a knife in the GE it wont scroll to the item to purchase it. After I manually scroll it will pick back up and continue like normal.

    Link to comment
    Share on other sites

    Pass the item's name through the buy command. (Providing you are trying to buy a specific item)

    getGrandExchange().searchItem("Bronze pickaxe");
    getGrandExchange().buyItem("Bronze pickaxe", <Quantity>, <Buy Price>);

    Link to comment
    Share on other sites

    41 minutes ago, PhilBox said:

    Pass the item's name through the buy command. (Providing you are trying to buy a specific item)

    getGrandExchange().searchItem("Bronze pickaxe");
    getGrandExchange().buyItem("Bronze pickaxe", <Quantity>, <Buy Price>);

    It searches the item and buys the item just fine with getGrandExchange().buyItem("Knife", 1,  200) it just wont scroll to the item;  . 6udqRcp.gif

    Edited by RetroBot
    Link to comment
    Share on other sites

    @RetroBot
    Ahh I see your problem, I'm gonna do some testing.

    EDIT: Have you tried getGrandExchange().scrollToItem(Widget)? You'd have to scan through all the widgets on the page which could be resource intensive, but I believe that is the only way.

    Edited by PhilBox
    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.