To dsd into this I'd reccomend reading http://osbot.org/forum/topic/58775-a-beginners-guide-to-writing-osbot-scripts-where-to-get-started-by-apaec/. Definatly will give you a big helping hand. I'd get used to the format that script uses using states. Will make things a lot easier/cleaner to read.
if (!LEVERAREA.contains(myPlayer()))
localWalker.walkPath(TOLEVER);
if (LEVERAREA.contains(myPlayer()))
lever.interact("Pull");
if (dialogues.isPendingContinuation())
dialogues.clickContinue();
if (dialogues.isPendingOption())
dialogues.selectOption("Yes I'm brave.");
if (players.myPlayer().isAnimating())
sleep(random(1000,1500));
I could be wrong, but these are all nested if statements. Try spreading them out how I have it and see if that works.
If he doesn't have much experience, though, reading the api might be an issue. Sometimes little kickstarts like that can lead to the whole engine being turned on. (awful analogy I know)
if (bank.isOpen()) {
bank.withdraw("Waterskin(4)", 20);
break;
} else {
bank.open();
}
it will open the bank, but once it gets to withdraw, it will crash, and give me the error.
va.lang.NullPointerException at org.osbot.rs07.api.Widgets.getWidgets(bk:272) at org.osbot.rs07.api.Widgets.getAll(bk:172) at org.osbot.rs07.api.filter.FilterAPI.filter(rh:259) at org.osbot.rs07.api.Widgets.containingText(bk:455) at org.osbot.rs07.api.Widgets.containingText(bk:381) at org.osbot.rs07.api.Bank.getParent(ue:260) at org.osbot.rs07.api.Bank.getInterfaceId(ue:328) at org.osbot.rs07.api.Bank.isOpen(ue:473) at TwinGranite.onLoop(TwinGranite.java:82) at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(ok:252) at java.lang.Thread.run(Unknown Source)
That's the error im getting, but im not sure if it's on my end or osbot's end.
It says file is not found, i'm not sure if he removed it or what
How does it work, does it work like local walker except it generates a path to the point in one go?
Hmm, I had to manually interact and tell dr.jerkyll or whatever to piss off. Does it only dismiss randoms that turn aggressive? or is there no point in dismissing them anymore?
It handles an inventory fine, it gets it from the sack, deposits and banks all good.
It seems to work after depositing a full inventory, although it's really sluggish with clicking on paydirt, not sure if that was intentional or not.