Jump to content

Bank withdraw Mode snippet


Joseph

Recommended Posts

created my own method, because the osbot api once is bugged.

	public boolean bankWithdrawModeAsItem()	{
		return script.configs.get(115) == 0;
	}
	
	public boolean setBankWithdrawMode(boolean asItem)	{
		if (script.bank.isOpen())	{
			int parent = 12;
			int child = asItem ? 19: 21;
			
			if (script.interfaces.getChild(parent, child) != null)
				return script.interfaces.getChild(parent, child).interact("item", "note");
		}
		return false;
		
	}

Edited by josedpay
  • Like 1
Link to comment
Share on other sites

Slightly modded this (ChildInterface is a custom class):

	public static boolean setBankWithdrawMode(Script script, boolean asItem) throws InterruptedException {
		ChildInterface modeInterface = new ChildInterface(script, 12, asItem ? 19 : 21);
		if (modeInterface.exists() && modeInterface.interact(null)) {
			MethodProvider.sleep(MethodProvider.random(300, 600));
			return asItem ? BankingMethods.isBankWithdrawModeItem(script) : !BankingMethods.isBankWithdrawModeItem(script);
		}
		return false;
	}
  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...