Jump to content

Chris

Scripter II
  • Posts

    8365
  • Joined

  • Last visited

  • Days Won

    14
  • Feedback

    100%

Everything posted by Chris

  1. nice update ;)
  2. Chris

    Noah v2

  3. prob added the osbot jar
  4. It would be best to post the client logger info.
  5. Chris

    Staff

    Give me staff, thx.
  6. trynd is trash tier champ. only good pre gold 2
  7. Entity fishspot = objects.closest("Fishing spot"); if (fishspot != null) { fishspot.interact("Use-rod"); } fishing spots are NPC's so NPC fishspot = objects.closest("Fishing spot"); if (fishspot != null) { fishspot.interact("Use-rod"); }
  8. nice Try looking into ConditionalSleeps
  9. API package me.Sinatra.Machine.Data; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; public class GrandExchangeAPI { private static final String BASE = "https://api.rsbuddy.com/grandExchange?a=guidePrice&i="; public int getOverallPrice(int itemID) throws IOException { return parse(itemID, "overall"); } public int getBuyingPrice(int itemID) throws IOException { return parse(itemID, "buying"); } public int getSellingPrice(int itemID) throws IOException { return parse(itemID, "selling"); } private int parse(int itemID, String choice) throws IOException { URL url = new URL("https://api.rsbuddy.com/grandExchange?a=guidePrice&i=" + itemID); BufferedReader file = new BufferedReader(new InputStreamReader(url.openStream())); String price = null; String line; while ((line = file.readLine()) != null) { if (line.contains("{")) { price = line.trim(); } } if (choice.equals("buying")) { price = price.substring(price.indexOf(",") + 10, nthOccurrence(price, ',', 1)).trim(); } else if (choice.equals("selling")) { price = price.substring(nthOccurrence(price, ',', 2) + 11, price.indexOf("sellingQuantity") - 2).trim(); } else { price = 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; } } Usage //in some class private GrandExchangeAPI grandExchange; //loot usage this.grandExchange = new GrandExchangeAPI(); if conditions for loot int worth = this.grandExchange.getSellingPrice(loot.getId()); if worth condition take //Simple layout..clean it up and try to use it yourself. //hope I managed to give insight
  10. Chris

    Sig Giveaway

    Added
  11. Chris

    Sig Giveaway

    One where it shows dankness and 420ish business
  12. Chris

    Demonic Gorillas

    check the wiki
  13. int bones; if condition bones++; //onPaint g2d.drawString("Bones: " + bones, x position, y position);
  14. Dont have time atm. Work in the AM
  15. Traditional banking using RS2Object. RS2Object bankBooth = objects.closest("Bank booth"); //Create an RS2Object looking for "Bank booth" if (bankBooth != null) { //Null check if (bankBooth.interact("Bank")) { //If the action was successful (true) sleep(600); //sleep //bank is open... } } Improved way to open the bank using the Bank API if (!getBank().isOpen()){ //If the bank is not open getBank().open(); //Opens bank chests, booths, etc. //sleep } else { //Bank is open..do something }
  16. gz
  17. if you dont get stuck on transit m8
  18. That is the name of my Class refer to this topic http://osbot.org/forum/topic/91021-basic-java-tutorial-i-found-online-for-anyone-wanting-to-learn-basics-also-contains-link-for-more-information/ Could help you out a bunch
  19. Yes Should implement it like this then you should have a method @Override public void onMessage(Message m) { if(m.getMessage().contains("Blah")) { kebabCounter++; } }
  20. Nice updates as always
  21. int kebabCount; //After you get a full inventory and head to the bank. //before you open the bank kebabCount += getInventory().getAmount("name of item"); for walking grab a position near the GE WebWalkEvent toGE = new WebWalkEvent(INodeRouteFinder.createAdvanced(), new Position(0,0,0)); context.execute(toGE); hope this helps
  22. //try NPC FishingSpot = npcs.closest(true, "Fishing spot");
  23. There was one and it was run by Lemons. Not sure if people still use it though.
  24. 1. What is your favourite script? Sinatra 2. Who is your favourite scripter? Sinatra 3. Who is your favourite mod/admin? Sinatra 4. Who is your favourite member? Sinatra 5. What is your preferred method of botting? (Mirror/Stealth) (Breaks Y/N?) Sinatra 6. If you could add one thing into osbot or improve something, what would you add/improve? Sinatra
×
×
  • Create New...