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


    theknig
     Share

    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.

    Edited by theknig
    Found solution
    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.