Jump to content

Chris

Scripter II
  • Posts

    8355
  • Joined

  • Last visited

  • Days Won

    14
  • Feedback

    100%

Everything posted by Chris

  1. Chris

    ?

    look at his post history and you can sum it up
  2. Chris

    Oh dear,

    implement messagelistener then check for your inventory items if it contains your last saved equipment using getInventory() && using getEquipment() methods
  3. Chris

    Ban Me.

    le meme xdxdxdxdxdxdxdxdxdx
  4. ye bro goldfarm wyverns with my rsn 'notaautor242eru'
  5. It's about time you release publicly
  6. xDxDxDxDx le meme xDxDxDxD xDxDxDxDx le meme xDxDxDxD xDxDxDxDx le meme xDxDxDxD xDxDxDxDx le meme xDxDxDxD xDxDxDxDx le meme xDxDxDxD xDxDxDxDx le meme xDxDxDxD xDxDxDxDx le meme xDxDxDxD xDxDxDxDx le meme xDxDxDxD xDxDxDxDx le meme xDxDxDxD xDxDxDxDx le meme xDxDxDxD xDxDxDxDx le meme xDxDxDxD
  7. Chris

    u wot m8

    Top shitpost. Le post to reddit xD
  8. prob added the osbot jar
  9. It would be best to post the client logger info.
  10. Chris

    Staff

    Give me staff, thx.
  11. trynd is trash tier champ. only good pre gold 2
  12. 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"); }
  13. nice Try looking into ConditionalSleeps
  14. 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
  15. Chris

    Sig Giveaway

    One where it shows dankness and 420ish business
×
×
  • Create New...