Jump to content

HeyImJamie

Lifetime Sponsor
  • Posts

    1096
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by HeyImJamie

  1. I'd suggest stopping the other script from walking away? The only checks I can see you doing from this end are making sure the players animation is -1 and that they're within 1 tile at the time of accepting the trade. If your player moves, just walk back?
  2. Just grab a String like Apaec's done and split at ","'s for example, then just iterate the values and add them to an ArrayList
  3. You're not null checking. Also, you can simplify your methods by just returning the boolean value of widget.getAmount > 0
  4. Just wondering if it never actually updates. What exactly are you using this for? Possibly a workaround.
  5. How often are you updating your variable?
  6. I got excited for @Explv for a second. Gz Project.
  7. Print the value of guiOptionChose and make sure it's being set correctly.
  8. I doubt it, I can't see there being a relation with closing the JVM and onExit being called. onExit is for when the script code exits 'naturally', i.e via use of the stop button.
  9. There's literally a fuck off warning and you're questioning why things aren't running fine?
  10. Na bro do what I did when I was learning and release all your private scripts in one jar
  11. I mean it's on the same screen but... ?
  12. Just write as you would normally.
  13. I might be wrong, but I don't think osbot supports external libraries.
  14. Just check you're not in combat while trying to hop
  15. HeyImJamie

    "Or" ||

    It'd be slightly useful if any part of it was correct. As mentioned above, your walking call will be made no matter the outcome of your if statement, and your if statement as it stands currently checks if you're in the bank and your inventory contains rune essence OR your inventory contains pure essence, with no bank check. The correct code would be: if (Banks.FALADOR_EAST.contains(myPlayer()) && (getInventory().contains("Rune essence") || getInventory().contains("Pure essence"))) { // walk } although, you could just simplify it to: if (Banks.FALADOR_EAST.contains(myPlayer()) && getInventory().contains("Rune essence", "Pure essence")) { // walk }
  16. JDBC / External libraries are blocked by OSBot.
  17. Are you planning on showing us some code or?
  18. I wouldn't do something like this via a text file. If you were going to use .txt, I'd probably just output the username and then have the mule script remain logged in and only accept trades from usernames found within the .txt file. If you wanted something like you've mentioned, Sockets are likely the best way. They're fairly simple to use, and you can send a request from your slave to your mule, i.e -> NAME/LOCATION. The mule will then receive the request and you can handle that accordingly, by either returning a confirmed message or doing nothing at all. Here's some information: https://www.tutorialspoint.com/java/java_networking.htm
  19. You'll probably need to do something like Java -> Php -> Sql as Osbot's security features block a fair amount.
  20. Why would you need to set w to 0 in your onStart when you can just initialise it as 0?
  21. Can I ask why you'd force people to download a sample rather than just making the text area editable?
×
×
  • Create New...