Jump to content

Vilius

Scripter II
  • Posts

    1495
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    100%

Everything posted by Vilius

  1. Wrong section mate. That would be really easy. Run to ores -> take them -> run to bank -> bank -> repeat :p
  2. Great script, would recommend mah boi @ProjectPact Much luv
  3. And there is your problem, man, think about the boolean logic, you want it to say got and need to get at the same time, ofc it will do the first one. You need to have something like getInventory().contains("berries") && configstuff. -_-
  4. Wew 9 months of combat training Just do some drugs or some shit or just don't show up, run away to Lithuania, well accept you
  5. I fixed it already without the need of OCR and OCR has issues too, not all words are correct and need to be rewritten. plus cba to format it
  6. I'm sorry, but its an image, I can't do anything about it. I know how to paste without the white stoof too :p
  7. Found on the /r/2007scape subreddit Fixed the white
  8. import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; public class Price { private static final String BASE = "https://api.rsbuddy.com/grandExchange?a=guidePrice&i="; public int getOverallPrice(int itemID) throws IOException { return this.parse(itemID, "overall"); } public int getBuyingPrice(int itemID) throws IOException { return this.parse(itemID, "buying"); } public int getSellingPrice(int itemID) throws IOException { return this.parse(itemID, "selling"); } private int parse(int itemID, String choice) throws IOException { String line; URL url = new URL("https://api.rsbuddy.com/grandExchange?a=guidePrice&i=" + itemID); BufferedReader file = new BufferedReader(new InputStreamReader(url.openStream())); String price = null; while ((line = file.readLine()) != null) { if (!line.contains("{")) continue; price = line.trim(); } price = choice.equals("buying") ? price.substring(price.indexOf(",") + 10, this.nthOccurrence(price, ',', 1)).trim() : (choice.equals("selling") ? price.substring(this.nthOccurrence(price, ',', 2) + 11, price.indexOf("sellingQuantity") - 2).trim() : price.substring(price.indexOf(":") + 1, price.indexOf(",")).trim()); file.close(); return Integer.parseInt(price); } private int nthOccurrence(String str, char c, int n) { int pos = str.indexOf(c, 0); while (n-- > 0 && pos != -1) { pos = str.indexOf(c, pos + 1); } return pos; } } Then you use it like so: public class Main extends Script{ Price price = Price(); int priceOfItem; public void onStart(){ priceOfItem = price.getSellingPrice(ITEMID); } }
  9. Lmao new "cpu". OT. Download jarfix and run it. That should fix your issue
  10. Oh wow, this code repetition
  11. From what I understand you just want to block the input from the user? If so, then this is useless to you, you need to do it like this: getBot().disableHumanInput(true); And I think BotMouseListener is used for internal use only.
  12. Make a class which would implement MouseListener, add all the default methods and use them to your liking. Then create a new object of your class and simply add it to your script like this: //your mouse object Mouse mouseObject = new Mouse(); public void onStart(){ getBot().addMouseListener(mouseObject); } Here are some snippets on how to hide your paint if you want:
  13. Someone should see a doctor, salt levels in the blood is too high, might mean kidney failure
  14. Welcome, Reffering to the statement you made about looking on how to create a bot, you need very good java knowledge and especially the reflection aspect of it. Its much more easier to make scripts and contribute to an already made community :p
  15. Then you refer to this: http://osbot.org/forum/topic/93981-guidetypes-of-entities-and-how-to-use-them-correctly/
  16. I dont get it, you are making multiple threads asking for help, being really undescriptive of what you want. Basically, providing no information whatsoever and expecting people to help you? Nuuh, that is not how it works. Plus helping you with a script would mean you have made some coding work, but what Im seeing is that you want someone to make you a script. Sorry if Im being a bit harsh, but honestly you wont get far if you are doing things like this.
  17. Vilius

    Hi

    It would be more useful if you told us what kind of help you need, are you having trouble figuring out a logical issue? Or you just have no idea how to make one from scratch? Plus you could just look in the tutorial section, there are plenty of tutorials and mine are really detailed if you want to try and make one yourself.
  18. Vilius

    .

    grats asoonah
×
×
  • Create New...