Jump to content

Explv

Scripter II
  • Posts

    2314
  • Joined

  • Last visited

  • Days Won

    6
  • Feedback

    100%

Everything posted by Explv

  1. Post on the script thread. This section is for help with *writing* scripts.
  2. So you made a topic in the section called Tutorials asking where to find tutorials? .......
  3. Duolingo isn't really great for learning a new language imo, it's only really good for practising vocabulary and stuff. Also just because someone knows a language doesn't mean they're good at teaching it, I would recommend you hire a professional tutor, you can find online tutors it doesn't have to be in person. Examples: https://preply.com/en/skype/spanish-tutors https://www.verbalplanet.com/learn-spanish.asp https://www.tutorfair.com/online-spanish-tutor
  4. Did you have a personal or business account? If it was a business account and you don't have a real business, that would be a reason to shut you down. Did you create an account under a fake name / any other fake details. Most payment companies now have automatic systems to onboard customers, and identify if they are who they say they are. If you sign up with fake details you'll probably be flagged as fraudulent and be shutdown asap. Were your transactions to sketchy people? Possible they were flagged as money laundering or some other shit. I agree though, Skrill is dogshit
  5. Wrong section, this is for help with writing scripts.
  6. 1. Use colours instead of IDs for rocks: 2. Use an Area to filter the rocks, not gridX and gridY: private static final Area ROCK_AREA = new Area(1, 2, 3, 4); RS2Object tinRock = getObjects().closest(obj -> ROCK_AREA.contains(obj) && Rock.TIN.hasOre(obj)); Areas can be calculated using the OSBot entity hover setting, or using my map https://explv.github.io/
  7. Walking != animating Once the player clicks the tree, this sleep will sleep until the player starts chopping the tree, or until the tree no longer exists, or until 5 seconds has passed. You would want to check if the player is chopping a tree (animating) first: if (!myPlayer().isAnimating()) { // If the player is not chopping a Tree Entity tree = getObjects().closest("Tree"); // Get the closest Tree if (tree != null && tree.interact("Chop down")) { // If the "Chop down" interaction is successful new ConditionalSleep(5000) { // Sleep for 5 seconds, or until the player is animating (chopping the tree), or until the tree no longer exists (someone else chopped it down) @Override public boolean condition() { return myPlayer().isAnimating() || !tree.exists(); } }.sleep(); } } You could also write this in a different way, by having a very long sleep: if (!myPlayer().isAnimating()) { // If the player is not chopping a Tree Entity tree = getObjects().closest("Tree"); // Get the closest Tree if (tree != null && tree.interact("Chop down")) { // If the "Chop down" interaction is successful new ConditionalSleep(90_000, 600) { // Sleep for 90 seconds, or until the tree no longer exists, checking if the tree exists at 600ms intervals @Override public boolean condition() { return !tree.exists(); } }.sleep(); } }
  8. Start OSBot from the command line by opening up CMD (or terminal if on mac) and typing: java -jar "C:\Users\YourUserName\Downloads\OSBot 2.5.8.jar" -debug (Replacing the path with the correct path to your OSBot .jar) The OSBot log will be output to the terminal, so next time it crashes you will be able to look at the terminal to see what the error was. Once you have the error (if there is one) post it here, and we can assist you further.
  9. Explv

    Getting started

    10/10 this was an interesting tutorial, I learned a lot thanks!
  10. if (!"Needle".equals(getInventory().getSelectedItemName())) { if (getInventory().isItemSelected()) { getInventory().deselectItem(); } else { getInventory().interact("Use", "Needle"); } } else if (getInventory().getItem("Leather").interact()) { new ConditionalSleep(2000) { @Override public boolean condition() throws InterruptedException { return getWidgets().getWidgetContainingText("Choose a quantity, then click an item to begin") != null; } }.sleep(); }
  11. Take a look at how I do it in my OSBot manager using the windows tasklist and taskkill commands. I have written this in Java, but you could do it in a batch script. https://github.com/Explv/osbot_manager/blob/master/osbot_manager/src/bot_parameters/configuration/Configuration.java#L347 Essentially: 1. Collect all the PIDs of running OSBot clients. 2. Start a new OSBot process 3. Collect all the PIDs of running OSBot clients. 4. Check which PID has been added by comparing the two lists By doing this you can store which PID is associated to which OSBot client, so when you want to close that client, you just kill the process.
  12. no, you don't. Probably because: a) RunescapeGuideState extends TutorialIsland, which extends Script. So you have two classes extending Script. Only one class should extend Script (your main class) b) You don't exchange context with the RunescapeGuideState class. The RunescapeGuideState class should extend MethodProvider, and then after creating an instance, you should call exchangeContext(bot) I have a complete open source tutorial island script here https://github.com/Explv/Tutorial-Island Not sure why you would bother starting from scratch
  13. I'm not having any issues with it, if you find any let me know
  14. It means you have a NullPointerException on line 386. Nothing to do with typeString()
  15. I like ur voice fren, and nice video, A+ Cuz it's for beginner noobs
  16. Pushed a fix to my banking code that should resolve the shrimp fishing issue, will be available when the SDN is next updated
  17. I just tested buying "Leather" and "Thread" from the GE, and both worked fine. Could you tell me what item you were buying that didn't work? I also tested crafting leather cowls, and it worked fine. Could you tell me exactly where the script got stuck for you?
  18. What the fuck is this shit. Why have you posted this, I genuinely don't understand. It's a picture of a girl and broken English, so what? What? What? I don't understand Hey guys look a picture of a girl:
  19. Bad news is fine I would rather know that something is broken and be able to fix it, than now know at all.
  20. Not too surprising, wrote it a long time ago. I will fix it when I have time. Busy preparing for a job interview atm Thanks for the report
×
×
  • Create New...