Could you guys help me at another task. I'm trying to read chatbox when bird nest spawns to me
@Override
public void onMessage(Message message) throws java.lang.InterruptedException {
String txt = message.getMessage().toLowerCase();
if (txt.contains("nest")) {
nest++
}
}
but when i try to implement the method
onMessage();
i dont understand the (Message message) parameter.
Typeid ?, My osrs username?, the message like "nest"?
Could you give me little snippet, i have been trying to make it work 2 days now and i just dont know...I'm making this for my purposes, not for selling
Thank you for replying.
I ended up using:
RS2Object[] kivi = objects.getAll().stream().filter(o -> o.getId() == 11366 || o.getId() == 11367).toArray(RS2Object[]::new);
ekakivi = kivi[1];
tokakivi = kivi[2];
Like this
Hello,
I'm building a miningbot who mines coal at mining guild. It works perfectly but i cant get the next rock hoover while mining the first one.
So i want to hoover to next rock already when mining the other. Im only able to identify rocks by:
MethodProvider method = client.getMethods();
Entity rock = method.objects.closest(rockID1,
So how i can detect more rocks already and decide the next one and hoover the mouse already there?