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. Haha, thanks. I fixed it.
  3. 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
  4. you can use the region base coords
  5. First.
  6. It works now. Thank you!
  7. 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.
  8. @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.
  9. I make dank memes for $50.00 per hour.
  10. Nice!
  11. Fourth.
  12. Damn I was late on this one.
  13. VladBots

    @Basic

    What's your next account's name going to be?
  14. I need a free 126 Combat account pl0x. I'll give you $3.50 in a week if I don't get banned.
  15. I might be interested. What's the name?
  16. VladBots

    #75

    First.
  17. 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. =)
  18. Nice try. Editing your quote to try to get away with it Cinnamon. It says $100 if you scroll up to my real post.
  19. @Mods RoomScape is obviously Cinnamon since they're both $100 donors and over 500FB. Please ban him.
  20. I know it doesn't count but Baseball.
×
×
  • Create New...