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 not working on windows client


    dalukas

    Recommended Posts

    Hi,

    I'm having a kind of a weird problem. My script I wrote runs perfectly on my dreambotclient on Mac OS but when I run the same script on a windows machine.
    It act's rather strange, all of a sudden can't detect what's in my inventory etc.
    Script runs flawlessly on Mac tho

    if (FallyBank.contains(myself) && !inv.contains("Rune essence")) {
                //open bank and grab them 
                log("banking");
                dobanking();
    }
    
    private void dobanking() {
            log("Checking To See If Banking Needed");
            NPC banker = getNpcs().closest(npc -> npc != null && npc.hasAction("Bank"));
            if (banker != null && banker.interact("Bank")) {
                if (sleepUntil(() -> getBank().isOpen(), 9000)) {
                    getBank().withdraw("Rune essence",27);
                    if (sleepUntil(() -> getInventory().contains("Rune essence"), 8000)) {
                        if (getBank().close()) {
                            sleepUntil(() -> !getBank().isOpen(), 8000);
                        }
                    }
                }
            }
        }
    

    These are the functions it keeps on banking over and over again. trying to find the banker through the banking screen.

    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.