Everything posted by d0zza
-
How to change the combat style?
Get the widget you want and interact with it using the widget api. https://osbot.org/api/org/osbot/rs07/api/Widgets.html
-
How to change the combat style?
Go to the settings in osbot and tick widgets, you should get a good idea of what they are from experimenting with that.
-
How to change the combat style?
So it seems like you've figured out that if that config is a certain value, you're currently using that attack style. Now we check if we're currently using the attack style you want, and then we use widgets to change the attack style, for example: if (needAttackStyle() && getConfigs().get(43) != 0) { open settings tab and interact with the required widget }
-
Can't wrap my head around conditional sleep
Every 25 milliseconds from memory, I'm pretty sure you can also modify this value by adding another argument to ConditionalSleep.
-
Can't wrap my head around conditional sleep
With a conditional sleep, it sleeps until the condition is true, not false, or until the timeout expires. What your condition is solely relies on the rest of your code. In this case we are sleeping until myPlayer().isAnimating() because presumably the script won't try to cut another tree when the player is animating.
-
[Experienced] [Reliable] [Affordable] d0zza's Private Script Shop | Fast | CLI Support | Mule Support | Dozens of custom scripts made
Bump
-
i put osbot on an app and cant get it to run
Right click -> Open with... -> Choose Java from the list of apps.
-
script not showing up
Maybe try remove the old one from your scripts.
-
Set static with another varioable
I'd suggest taking a look at Lists first if you haven't seen them before, it'll make understanding Maps a lot easier.
-
Combat script overflowing
Instead of returning null in your getState() which is what's causing the problem, return a state in which you do nothing. For future problems check the osbot logger when you're having issues, it'll tell you where exactly in your code there is an NPE, etc.
-
So.. My Script Not Starting
NPC cow = getNpcs().closest("Cow", "Cow calf"); That line is causing your script to not start. You need to call it in your onLoop().
-
Question regarding 24h trials
24 hours time.
-
Need Advice - Taking acid again *Psychedelics*
If you're having these doubts before a trip, 90% chance you'll have a bad trip. But if you go ahead with it anyway maybe have someone else there that'll stay sober as a trip sitter that can be there for someone to talk to if anyone does end up having a bad time.
-
Conditional sleeps while working with menues
The issue is that you're trying to interact inside the if statement that opens the settings tab, so you're only going to be executing that code whenever you open the settings tab. Instead you need to check if the settings tab is open, if not open it and so on. I've edited your code in the quote to demonstrate this.
-
[Experienced] [Reliable] [Affordable] d0zza's Private Script Shop | Fast | CLI Support | Mule Support | Dozens of custom scripts made
Sent you a PM.
-
[Experienced] [Reliable] [Affordable] d0zza's Private Script Shop | Fast | CLI Support | Mule Support | Dozens of custom scripts made
Bump
-
[Experienced] [Reliable] [Affordable] d0zza's Private Script Shop | Fast | CLI Support | Mule Support | Dozens of custom scripts made
Bump
-
[Experienced] [Reliable] [Affordable] d0zza's Private Script Shop | Fast | CLI Support | Mule Support | Dozens of custom scripts made
I’m sorry but I have no idea what you’re trying to say.
-
Keeping track of a global variable
Make a Util class or something similar, either use a public variable there or use getters and setters for the variable and pass the instance of the Util object into all of your classes.
-
[Experienced] [Reliable] [Affordable] d0zza's Private Script Shop | Fast | CLI Support | Mule Support | Dozens of custom scripts made
PMed
-
Hello,
Welcome mate, enjoy your time here
-
Acc keeps getting locked
The problem is that you're logging into the accounts with a different IP address (Proxy) right after finishing tutorial island. Jagex can see this and thinks that someone else has logged into your account and locks it.
-
Need my script thread location changed
The script thread for dPuro Puro is still in the Script Development section, if someone could change it to the Hunter section under Official OSBot Scripts I'd appreciate it.
-
get item price
I don't think there will be any site that doesn't use ids since its much easier to identify an item id instead of a name.
-
reading text from chat box
Spaces don't need any work for the chatbox, only for player names. Like dreameo said, use the message listener that is part of the osbot api.