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
  • 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);
                }
            }
    
    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.