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


    RetroBot

    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

    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.

    Link to comment
    Share on other sites

    Archived

    This topic is now archived and is closed to further replies.

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