Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Buy OSRS Gold

Sell OSRS Gold

milk1234

Registered
  • Content Count

    6
  • Joined

  • Last visited

  • Feedback

    0%

Community Reputation

0 Neutral

About milk1234

  • Rank
    New Botter

Recent Profile Visitors

572 profile views
  1. Awesome. Thanks for your help!
  2. I've copied this piece of code straight from one of the posts on our forum, but the method will keep throwing IOExceptions. I've gone as far as recognizing that what is being thrown is an IOException, but how should I address this issue? int getPrice(int id) { try { URL url = new URL("http://api.rsbuddy.com/grandExchange?a=guidePrice&i=" + id); URLConnection con = url.openConnection(); con.setUseCaches(true); BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream())); String[] data = br.readLine().replace("{", "").replace("}", "").split(","); return Integer.parseInt(data[0].split(":")[1]); } catch (Exception e) { General.println("Unable to load prices!"); } return -1; } Thanks a bunch
  3. Thanks lads Finally figured it out once I knew I was in the right direction
  4. So in the script that I'm trying to write, I need to check whether my bank has enough of specified items to continue. For example, withdrawing 27 chocolate bars, turning them into chocolate dust, and if bank doesn't have anymore chocolate bars, then withdraw some potion and use with chocolate dust. The issue I'm having is that the below code will return true, but soon return false once we loop more than once. boolean getbankStock(int itemID) { if (!Banking.isBankScreenOpen()) { Banking.openBankBanker(); } return Banking.find(itemID).length > 0; // Want: public void run() { if (getBankStock(chocolate_ID)) { cutChocolateBars(); } else ... etc } / * tried: RSItem chocolate = Banking.find(chocolate_ID)[0]; <- but this threw an index out of bounds exception Then using: chocolate.getStack(); */ I think the solution would be relatively trivial but I can't seem to figure it out for the life of me. If anyone could give some pointers as to how I could achieve the above description, that'd be awesome
  5. What is the general consensus on Looking glass? Are they worth the extra money to grab VIP-E for?
  6. milk1234

    Combat bots

    What are some of the best bots for combat? Including all the free and premium ones.
×
×
  • Create New...