ah that's awkward, it's tagged as an object instead of a grounditem. i wasn't aware of that lol
@LagunaPreza here's something that works then
import org.osbot.rs07.api.model.RS2Object;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
import org.osbot.rs07.utility.ConditionalSleep;
import java.awt.*;
@ScriptManifest(name = "test", author = "Reminiscence", version = 1.0, info = "", logo = "")
public class test extends Script {
RS2Object net;
public int onLoop() throws InterruptedException {
net = objects.closestThatContains("Small fishing net");
if (net != null && !inventory.isFull() && map.canReach(net)) {
net.interact();
sleepy(2500, net == null);
}
if (net == null)
sleep(200);
return 100;
}
public void sleepy(int time, boolean until) {
new ConditionalSleep(time) {
@Override
public boolean condition() throws InterruptedException {
return until;
}
}.sleep();
}
}
since the object doesn't seem to disappear, i guess it makes no sense to have a conditionalsleep of this manner. you could just do a sleep(200) or something so it doesn't spam click like a typical bot would