Jump to content

Apaec

Scripter III
  • Posts

    11135
  • Joined

  • Last visited

  • Days Won

    88
  • Feedback

    100%

Everything posted by Apaec

  1. Both trials activated Apa
  2. Apologies, maybe I phrased my first reply a little ambiguously.. You're right in that the while loop will re-check if freeFish is null with each iteration, but my point was that freeFish will never go to null, because you initialise it but never update its value. This is the same reason that the following code will be stuck in a permanent loop: int aNumber = 5; while (aNumber != 0) { system.out.println("aNumber is still not 0!"); } In the second part of your reply, you seem to hint that looping through the whole script just to check if there are some fish to pick up is a bad thing, when in reality, that is exactly the situation we want to be in. Regularly checking the game state and acting on it is the best way to make a responsive and reliable script, and the best way to achieve this is to have onLoop being called very frequently, with all game interaction being non-blocking. It's hard to explain but it comes with practice: keep at it and your understanding will grow You're doing great so far -Apa
  3. Avoid while loops when writing scripts for OSBot, since this is a live game, getting stuck will happen often. The reason the null check doesn't break out of the loop is because you're null checking a variable after you assign it. The variable will never go back to null on its own, unless you change it! (This is fairly basic java, be sure to revisit a tutorial on variables and variable assignment if you feel you need to ) I'd strongly suggest a restructure so you rely on the continuously looping nature of the onLoop method rather than having your own sub-loops and sacrificing game state awareness. However if you really wanted to update your current code to do what you expect, think about re-defining your freeFish variable from within your loop. GL! Apa
  4. Hmm, that's certainly odd. It should check to make sure you're logged in before checking how many casts you have. I'll add this to my list of things to look in to Apa
  5. Unfortunately, as is the case with all other scripters, I am not allowed to offer trials to users whose OSBot accounts are under a week old (this is an OSBot rule). Sorry about that - please come back in a week!
  6. You could always run the setup in a different place, e.g on an old laptop, or in the cloud! Apa
  7. Sure - trial activated !
  8. Hey The object oriented concepts from C# apply with Java, so you can totally learn by trying You can use whatever you want, but I've herd terrible things about visual studio. Much better would be Eclipse or IntelliJ Idea, or a more general editor like Atom, VSCode or Notepad++(I like VSCode) Once you've linked the OSBot jar, yep There's probably a scripting discord but I don't know of it. You can always ask questions in the chatbox, I know lots of scripters hang out there GL Apa
  9. Thanks for the reminder - i'd like to add this, however this script is a little lower down on my list of my priorities for script updates. I hope i'll get around to it in the near future although I cannot make any promises. I'd suggest using an auto-clicker for the time being if you wish to use these new game items Apa
  10. Sure - trial activated! Apa
  11. Hey, Webwalking is no easy task but the OSBot client tackles it well. Due to the scale of its job however, it is understandable that it struggles in some places. As you said, try moving a little closer to sand crabs Apa
  12. Hi, Apologies - I seem to have missed your reply to that thread. I've just started your trial for this script and to compensate for my mistake i've doubled the duration of your trial to 48 hours Best Apa
  13. Heya, I'd be happy to offer you a 24h trial if you want to give the script a go before buying? -Apa
  14. Maybe, I'm working on a full re-write at the moment and I might see if this is feasible to add. I can't make any promises though! -Apa
  15. Sure thing - trial started! Apa
  16. Awesome - glad to hear. Thanks for the reply! Apa
  17. I meant the private scripts, if you're doing stuff for free then may as well broaden the number of people that you're helping out!
  18. Script should be working, i'm not sure if there are still issues with the client though. Give it a go - i've just started your trial Apa
  19. Not sure, there will probably be a post in the announcements section once the client is updated. Until then, there's not much that can be done other than to just test run the script and see how it goes. It could already be fixed, not sure! Apa
  20. Hey, The mistake your making is that you are passing single strings to these method. Since there is nothing in your inventory with the exact name 'Essentials', the script will deposit everything! The same can be said for the complete dialogue method input. It is also worth noting that these methods take var args so you can define the exceptions in place if you prefer, e.g: // ... return inventory.isEmptyExcept("Lobster pot", "Coins"); // ... -Apa
  21. Hi both! Sadly I cannot offer trials to accounts under a week old, but (conviniently?) the scripts are currently having issues due to the recent game update, which will be resolved with a client patch. Hopefully this happens in the near future and I can give you both trials -Apa
×
×
  • Create New...