Jump to content

VladBots

Members
  • Posts

    279
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by VladBots

  1. Welcome to the world of scripting! Nice release. I'll take a look at this tonight and try giving you feedback. You might want to post a .jar link for the leechers who don't know how to compile it. The source looks clean. ^_^
  2. RSBuddy/OSBuddy Exchange has more accurate prices than Zybez for the most part. import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.net.URL; import java.net.URLConnection; public class PriceLookup { private static URLConnection con; private static InputStream is; private static InputStreamReader isr; private static BufferedReader br; private static String[] getData(int itemID) { try { URL url = new URL( "https://api.rsbuddy.com/grandExchange?a=guidePrice&i=" + itemID); con = url.openConnection(); is = con.getInputStream(); isr = new InputStreamReader(is); br = new BufferedReader(isr); String line = br.readLine(); if (line != null) { return line.split(","); } } catch (Exception e) { e.printStackTrace(); } finally { try { if (br != null) { br.close(); } else if (isr != null) { isr.close(); } else if (is != null) { is.close(); } } catch (Exception e) { e.printStackTrace(); } } return null; } public static int getPrice(int itemID) { String[] data = getData(itemID); if (data != null && data.length == 3) { return Integer.parseInt(data[0].replaceAll("\\D", "")); } return 0; } public static int getAverageBuyOffer(int itemID) { String[] data = getData(itemID); if (data != null && data.length == 3) { return Integer.parseInt(data[1].replaceAll("\\D", "")); } return 0; } public static int getAverageSellOffer(int itemID) { String[] data = getData(itemID); if (data != null && data.length == 3) { return Integer.parseInt(data[2].replaceAll("\\D", "")); } return 0; } } Dump of all the prices from March 27, 2015: http://pastebin.com/rQ5dk7mp
  3. It works now. Thank you!
  4. Alright, thanks for the update. ^_^ You're right about the PMing. I couldn't PM you a few days ago. I don't know why. I can't post there ATM.
  5. @Divinity I can't PM you or anything, so I guess I'll talk to you like this. Can you please look at my request? I changed everything as you requested. I still can't post in that section BTW.
  6. I make dank memes for $50.00 per hour.
  7. VladBots

    @Basic

    What's your next account's name going to be?
  8. I need a free 126 Combat account pl0x. I'll give you $3.50 in a week if I don't get banned.
  9. http://osbot.org/forum/topic/66813-open-source-vlads-aio-fletcher-development-thread/ The framework is crap but it works flawlessly. It shows you how to work with Widgets, Dynamic sleeps, Banking and more. =)
  10. Nice try. Editing your quote to try to get away with it Cinnamon. It says $100 if you scroll up to my real post.
  11. @Mods RoomScape is obviously Cinnamon since they're both $100 donors and over 500FB. Please ban him.
×
×
  • Create New...