alkku15
Members-
Posts
36 -
Joined
-
Last visited
-
Feedback
0%
Everything posted by alkku15
-
thankkkkkkkkkkkkkk u
-
aye bois, im making a simple combat script (basically just afks & eats if hp above 75%), but i ran into a trouble when i wanted the bot to make the npcs agro again. (for example : rock crabs)... How can i check if my player has not been in combat for a minute, then it would run the part of the code where it runs away and comes back to make them agro again... Hopefully you understood (sorry poor english). Thanks!
-
guys my fishing script cant interact with the fishing spot, when is this client going to get an update? aka fix?
-
ah alright thanks my man
-
hey bois, so i made my barbarian fisher & cooker script a day ago, then i used it for the night, everything worked well. I went to sleep and the next day started my script but this time it just did not want to fish? "interact with the fishing spot". i was like hmmm i didnt change anything before going to sleep... i tried few things in my script, but just for some reason couldnt get it to work. 10min ago i made a new script what simply clicks the fishing spot... import org.osbot.rs07.api.model.NPC; import org.osbot.rs07.api.model.RS2Object; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import java.awt.*; @ScriptManifest(author = "gay", info = " ", name = " ", version = 0, logo = "") public class main extends Script { @Override public void onStart() { } private enum State { FISH, WAIT }; private State getState() { if (!myPlayer().isAnimating() && (!inventory.isFull())) return State.FISH; return State.WAIT; } @Override public int onLoop() throws InterruptedException { switch (getState()) { case FISH: //RS2Object fishingspot = getObjects().closest(1526); NPC fishspot = npcs.closest(1526); if (fishspot != null) { sleep(random(200, 1000)); fishspot.interact("Lure"); } break; case WAIT: break; } return random(200, 300); } @Override public void onExit() { } @Override public void onPaint(Graphics2D g) { } } but no! still doesnt work???, when i run this script it just stands there. does nothing???
-
thanks to both of ya
-
whats the command for that? for example for inventory its just "inventory.contains(1412581285712857)". Whats the command for interfaces ty
-
aye i'm currently making a fisher / cooker bot, but i ran into this trouble when writing my script. How can i check if this interface is there in the chatbox and when its not? should i search for strings or something? or just get the interface id? and if one of those, can you possibly give me an example. Thanks!
-
using only this causes my whole client to freeze once the store has opened *EDIT* ok i will try in another store
-
sup, my first ever script was some shitty fletcher, now i wanna move onto harder things, so how does buying from store happen? i tried something like this: if (store.isOpen()) { store.buy(ID, AMOUNT); //my client just freezes at this part ( for example trying to buy ropes from store near draynor) } else { npcs.closest(ID).interact("Trade"); }