public Area closestBank = Bank.getClosestBank(this);;
You can't call API methods in class variable initializations or the constructor. Do it in onStart.
I guess I will actually introduce myself. My name is Matt and I am from the US. I am currently a junior in college majoring in comp sci and doing Air Force ROTC. I scripted for another bot from 2012-2013 when EOC was released and you could bot 24/7. I had a few script and a premium one, which was pretty successful. Those were the days.
The Memories of a better time:
Then bans happened and I quit. Now I am back and looking to script some more. Wish me luck.
P.S. also I am always willing to help other scripters, so feel free to ask me for help.
If you are still looking for a solution, this seems to work:
private boolean isInHouse() {
return getMap().isInHouse() && widgets.getWidgetContainingText("There's no place like home...") == null;
}
He means that this kind of "Anti-ban" will likely do nothing to lower the ban rate of the script.
Here is an old post by Alek about the topic: http://osbot.org/forum/topic/45618-preventing-rs-botting-bans/
In this run, randomNumber was 14, which is definitely not equal to 1 or 2 to activate your switch statement.
If you want to just randomly pick an antiban case, change switch(randomNumber) to switch(random(1,2)).
Just delete line 23, idk if there is a replacement, but that method is no more. You will just have to manually enable input on the client when you start the script.