Everything posted by FrostBug
-
Zooming out the camera
Can't do it with the Camera class
-
Perfect Magic not working
Quality thread, thank you.
-
Some questions for the devs
By exchanging contexts I mean: CustomBreakManager customManager = new CustomBreakManager(getBot()); customManager.exchangeContext(getBot()); getBot().getRandomExecutor().overrideOSBotRandom(customManager); Remember that you should still only override it if they have breaks enabled; otherwise it will throw an error as well. EDIT: exchanging contexts is something you must do when creating new instances of classes that inherit from MethodProvider, and BreakManager does inherit from that. This also means that there is no need to store the reference to Bot in your custom break manager, as you can simply use the getBot() method exposed by MethodProvider once context has been exchanged.
-
Some questions for the devs
I'd recommend creating a new class extending the default BreakManager, override shouldActivate with super.shouldActivate() && yourOwnCondition Then use RandomExecutor#overrideOSBotRandom to register your custom break manager. A few things to note when doing this: - It seems you must also override RandomSolver#getName - You should only attempt to override the break manager when the user has breaks enabled - You should remember to exchange contexts with your custom breakmanager instance before overriding Breaks are enabled when getRandomExecutor().forEvent(RandomEvent.BREAK_MANAGER) is not null
-
Pausing Autologin
You must override the getName method. Additionally, this will not log you out or draw a paint.. or ever stop breaking again; you have to implement all that logic yourself. Alternatively, to simplify the process, you can extend the existing BreakManager class instead of RandomSolver, in order to re-use the OSBot built in break manager, but simply override when it should activate. This however, will fail if breaks are disabled in client settings, so you must check if there is already an existing break manager registered first; and also don't forget to exchange contexts with your new BreakManager before registering it.
-
Cannot get "Perfect Sand Crabs" to work
If it's so perfect how come it doesn't work?
-
Question about .interact()
If you analyze the outgoing network traffic, you can see that the interact packet only has the index/id of the entity/widget in it (maybe position for objects, haven't tried). The generated packet is the same regardless of where you perform the interaction from, and regardless of where you click.
-
Question about .interact()
Why? The point you click isn't sent to the server
-
GetEntitiesOnCursor Error
Mirror client version: Mirror version: 2.5 OSBot version: 2.5.8 Console output / terminal output: java.lang.ArrayIndexOutOfBoundsException: -5177 at org.osbot.rs07.api.NPCS.getLocalNPC(fe:1) at org.osbot.rs07.api.Mouse.getEntitiesOnCursor(hi:416) Crash report if a crash occurred Script that you ran: FrostBarrows Hooks that failed: Probably XClient#getOnCursorUids JVM/Browser bit version (32 / 64): 32
-
Fruity Barrows (Frost Barrows)
Thanks for the report. Looks like an issue with reading NPCs from the client in mirror mode. Can you try and see if it also happens when mirroring the official runescape client? I'll post up a client bug report in the mirror mode section EDIT: Do you have the mirror client version and JVM bit-version?
-
Custom Login Handler
onLoop will not be called while logged out unless you unregister the OSBot Login Handler Are you using the correct CLI args to boot osbot without login handler?
-
Fruity Barrows (Frost Barrows)
?
- FrostHunter
-
FrostCaves
There really isn't an argument for "safe" or "not safe". Generally speaking no scripts are safe; if you're unlucky, you'll get banned. If you're lucky, you can be botting strong for months. It's not uncommon for the ones who get banned to leave a post about it, which is fine. Nor is it uncommon for people who don't get banned to not leave a comment.
-
need help determining the next game tick
If you the timestamp of any tick reliant change, you can just use that to find when the next tick will occur. Where did you find GameTickListener and onGameTick() ? These are not specified in the OSBot API
-
Fruity Barrows (Frost Barrows)
- Sorting tie-breakers in stream
Let's see your implementation of bar in foo? Make sure you specify the type as RS2Object for the first functional interface input (should carry to the chained thenComparing) Comparator.<RS2Object>comparingInt(map::realDistance) Also be aware that sorting all objects by realDistance is very computationally expensive.- FrostCaves
You have to be running the script in fixed mode and at default zoom level. By the look of it, one of these might be the cause. Correct, wave 31 I believe it is.- Fruity Barrows (Frost Barrows)
Why not just use the clan wars banking route then? There it restores on the way- @Acerd @Frostbug
Quality post, OP Thank you- FrostCaves
There's no simple way to check if an NPC is "visible" in the way you suggest- FrostCaves
Yes. It recognizes it as a healing type spec and uses it only when not on full HP- FrostCaves
They are up to date AFAIK. You can start it in later waves, but if you do, you must manually ensure configurations of display settings (fixed mode, default zoom), hotkeys (all enabled), and audio settings (effects volume on)- alek at anime in the chatbox
- Problem Launching OSBot With A .bat File
pretty sure you can't have spaces between the args of -allow, but I'm not CLI expert - Sorting tie-breakers in stream