Jump to content

d0zza

Scripter II
  • Posts

    780
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    100%

Everything posted by d0zza

  1. Get the widget you want and interact with it using the widget api. https://osbot.org/api/org/osbot/rs07/api/Widgets.html
  2. Go to the settings in osbot and tick widgets, you should get a good idea of what they are from experimenting with that.
  3. 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 }
  4. Every 25 milliseconds from memory, I'm pretty sure you can also modify this value by adding another argument to ConditionalSleep.
  5. 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.
  6. Right click -> Open with... -> Choose Java from the list of apps.
  7. Maybe try remove the old one from your scripts.
  8. I'd suggest taking a look at Lists first if you haven't seen them before, it'll make understanding Maps a lot easier.
  9. 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.
  10. NPC cow = getNpcs().closest("Cow", "Cow calf"); That line is causing your script to not start. You need to call it in your onLoop().
  11. 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.
  12. 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.
  13. 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.
  14. Welcome mate, enjoy your time here
  15. 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.
  16. 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.
  17. 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.
  18. 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.
×
×
  • Create New...