dalukas 0 Share Posted November 3, 2018 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.