Jump to content

The Undefeated

Scripter II
  • Posts

    1968
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    100%

Everything posted by The Undefeated

  1. Oh that looks nice. What about untradeables?
  2. public class FetchSprites { private static String path = ""; public static File getSprite(String item) { item = Character.toUpperCase(item.charAt(0)) + item.toLowerCase().substring(1); if (!Files.exists(Paths.get(path + item + ".png"))) { fetchSprite(item); } return new File(path + item + ".png"); } private static void fetchSprite(String item) { item = Character.toUpperCase(item.charAt(0)) + item.toLowerCase().substring(1); String itemNoSpaces = item.replace(" ","_"); try { final URL url = new URL("http://oldschoolrunescape.wikia.com/wiki/" + itemNoSpaces.toLowerCase()); BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(url.openStream())); String line; while ((line = bufferedReader.readLine()) != null) { if (line.contains("/" + itemNoSpaces + ".png")) { int start = line.indexOf("<a href=") + 9; int name = line.indexOf(itemNoSpaces + ".png",start); int end = name + item.length() + 4; URL imageUrl = new URL(line.substring(start,end)); BufferedImage image = ImageIO.read(imageUrl); ImageIO.write(image,"png",new File(path + item + ".png")); break; } } bufferedReader.close(); } catch (IOException e) { e.printStackTrace(); } } } This will check if the sprite is already cached, if not, it will cache the sprite and return the file(path). Improvements are welcome.
  3. The friends chat has to be included in the normal chat itself, not above the chat. There's an option for that.
  4. If you wanna log the message you should do this: public void onMessage(Message m) { log(m.getMessage()); }
  5. Are you on Wifi? Uninstall all VPN's, then go to "Network Connections", right click, properties, configure, driver, uninstall device. Do this for every network adapter which has VPN in it. Now reinstall any VPN and try again.
  6. I just hate it. Not only because since I sold all my bitcoin, only had like $500 2-3 months ago, it doubled in price, but just the fact that there's still no crypto currency with a stable value. I want something where I can just send money/coins or whatever every time without having to worry about what price it is at the moment.
  7. Right click on the .jar -> open with -> Java
  8. Go read some tutorials on the forum. I don't think you understand what proxies and/or VPS's are.
  9. The chances of getting a perm ban is big. I have seen occasions where someone got 2 times a 2-day ban, but that's probably luck.
  10. I don't believe you have a girlfriend.
  11. It is not about how you formulate the question but is about what you ask.
×
×
  • Create New...