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
  • How to check Grand Exchange Slot for name,price,offer type?


    theknig

    Recommended Posts

    I want when my script starts to check each slot indiviually and see their names, how much the offer is for, and if it is a sell or buy offer. 

    I tried to open the slot using 

     

    GrandExchange.openSlotInterface(1);
    sleep(1000);
    MethodProvider.log(GrandExchange.getCurrentChosenItemID());


    but its returning -1 it only works when I am creating an offer not when an offer is already placed. I would appreciate any help in this.

    Edit:
    I found the solution

     

            GrandExchangeItem[] ge = GrandExchange.getItems();
    
            for (int i = 0; i<ge.length;i++){
                MethodProvider.log(ge[i].getName());
            }

    Will go through each slot and get their names.

    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.