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
  • Widget contains


    Bonnie

    Recommended Posts

    Cant really find a sinppet or example anywhere of what im looking for.

    dont get why this isnt work

     

    There is a widget that counts down from 5 and i want it to hop world 86 when timer hits 1 on the widget if it isnt already in 86

    Time remaining = 1

     

    p 58 c 3

        WidgetChild Ahmed = getWidgets().getChildWidget(324, 3);
            if(Ahmed != null) {
                if(getWidgets().getChildWidget(324, 3).getText().endsWith("1")) {
    if (!Client.getCurrentWorld.contains("386")){
                    getWorldHopper().hopWorld(386);
                }
            }
    
    Edited by Bonnie
    Link to comment
    Share on other sites

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