One alternative to Intellij-specific configurations would be to do the following
(This assumes you are using Maven, and that you rename the downloaded jar to osbot.jar and put it in the base directory of your project)
<dependency>
<groupId>org.osbot.rs07</groupId>
<artifactId>osbot</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/osbot.jar</systemPath>
</dependency>
oh really?? I'm just getting back into scripting after a year and a half, so that's really cool to hear. will play around with upgrading my jdk tomorrow
So I am attempting to complete Ernest the chicken, but I am unable to get past the book case
Optional<RS2Object> bookCase = baseFunctionality.getObjects().getAll().stream().filter(rs2Object -> rs2Object.getName().equalsIgnoreCase("Bookcase")).findFirst();
bookCase.ifPresent(RS2Object::interact);
baseFunctionality.sleepAndLogException(2000);
Running this thing in debug mode with a breakpoint at the sleep function and evaluating bookCase.isPresent() returns true
When I broke this code down a bit further it showed that bookcase.get().interact() was returning false
Anyone have any idea why I am unable to interact with the bookcase here?
I have also tried
bookCase.ifPresent(bc -> bc.interact("Search"));
with no luck
This is Java 8. Function<> is a data type now. You can easily do currying. glad you're having fun with this, but I'm not sure how well you have explored Java
So not an answer to your topic, but an alternate suggestion. Why not run your bots in AWS or some other cloud provider? no up front costs, and infinite scalability.
Hi all, I have been creating scripts using OSBOT for a while, but I'm finally getting more serious about my botfarm
I am a big CLI user, but I can't seem to find anything about configuring breaks through the cli. I'm wondering if I am missing something, or if this is just not an option through the CLI
edit: never mind, I am a big dumb that just found this:
great to hear! Just curious, as I am somewhat newer here, is there anything I can do in the mean time, or just hold tight and wait for the next release? Not a big deal right now, but moreso curious about how to handle this class of potential issues
So I normally start my bots with the following cli command
java -jar *pathToJar*\ 2.6.48.jar -proxy ::: -allow reflection,lowcpu -login *redacted* -world 563 -bot *redacted*
This has worked fine until the latest jar I downloaded. Now I get logged in to any random world.
Not sure what changed, and I don't get any errors output
Only other useful info I have is that I am running this on my laptop, OS is Ubuntu 20.04