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
  • Script selector remains open


    Kristoffer

    Recommended Posts

    When I add 

    if (!gui.getStart()) return 2000;
    
    

    in my loop the script selector remains open when I press start, so I'm guessing because my gui doesn't open the start boolean remains false so the script doesn't start. I use the same method on another client and it works so I guess this client works differently.

     

    Any suggestions on how I should go about this? If you need to see any code let me know.

    Link to comment
    Share on other sites

    It's showing you have an initializer exception, show me GUI.java line 40 :)

    barTypeJCB.setModel(new DefaultComboBoxModel<Object>(Data.bars));
    

    and this is barTypeJCB:

    private static JComboBox<Object> barTypeJCB;
    
    Link to comment
    Share on other sites

    barTypeJCB.setModel(new DefaultComboBoxModel<Object>(Data.bars));
    

    and this is barTypeJCB:

    private static JComboBox<Object> barTypeJCB;
    

     

    Are you initializing that combobox anywhere?

    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.