Jump to content

Swizzbeat

Members
  • Posts

    7986
  • Joined

  • Last visited

  • Days Won

    58
  • Feedback

    100%

Everything posted by Swizzbeat

  1. If it's not null, store it in a Position variable?
  2. Swizzbeat

    SMiner 3

    Would be interesting to see how you implement the "Add rocks when they are not available or in smoking rock event!" feature
  3. You need to create a Rectangle object to reference the area where your hide paint button is, and a boolean value to reflect whether it was clicked to show or hide the paint. Then override the mousePressed listener like so (obviously creating the needed variables): @Override public void mousePressed(MouseEvent e) { if (hidePaintRectangle.contains(e.getPoint())) { showPaint = !showPaint; } }
  4. import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; import java.util.HashMap; import java.util.Map; /** * Created with IntelliJ IDEA * User: Anthony * Date: 4/1/2014 */ public class SkillChecker { private static final String URL_BASE = "http://services.runescape.com/m=hiscore_oldschool/hiscorepersonal.ws?user1="; public static Map<String, Integer> retrievePlayerLevelForSkill(String playerName, String... skillNames) throws IOException { Map<String, Integer> skillPairs = new HashMap<String, Integer>(); BufferedReader reader = new BufferedReader(new InputStreamReader(new URL(URL_BASE + playerName.replace(" ", "_")).openStream(), "UTF-8")); String stringRead; while ((stringRead = reader.readLine()) != null) { for (String current : skillNames) { if (stringRead.equalsIgnoreCase(current)) { for (int i = 0; i < 2; i++) { reader.readLine(); } skillPairs.put(current.toUpperCase().charAt(0) + current.substring(1), Integer.parseInt(reader.readLine().replace("<td align=\"right\">", "").replace("</td>", ""))); break; } } } reader.close(); return (skillPairs.size() > 0) ? skillPairs : null; } } I'm not very familiar with data streams so for some of you this may look disgusting. Please provide me with any ways to improve it
  5. All these posts do is scare the low IQ players away
  6. I would recommend learning java first before scripting. Your code won't improve just because you know the API well. As for your issue (assuming you're using the same Timer class nearly everyone uses) you probably imported the standard Java one instead of your "other" Timer class.
  7. Very good. Looks brilliant.
  8. I thought this was common sense O_o
  9. Of course their mouse algorithm is obfuscated, why would they let people just have it :p They should really make it public so we can override it, as well as the moveMouse method.
  10. If you know the exact location of the rocks you're mining, you can just grab the rocks on those specific locations and store the ID. The rocks of course will have to be full of ore so it doesn't grab the ID of the mined rock.
  11. Rock ID's change, you're going to have to update this every week.
  12. Swizzbeat

    OSBot 1.8.1-6

    You missed the point of the question :p
  13. Swizzbeat

    OSBot 1.8.1-6

    Solid. Question about proxies, are they really even necessary? I feel like most of them will become "flagged" within days.
  14. Why is this even an option?
  15. Shooter movies bore me. Watch Gattaca.
  16. Exporting a jar takes < 3 seconds... What item is returning the wrong name?
  17. This is why OSBot needs script user profiling. It shouldn't even be that difficult to implement.
  18. I was overriding some other methods when I made this and never saw that I didn't remove it. Oh well. Also that code wouldn't even compile considering a call to the superclasses constructor has to be done before anything, including method calls.
  19. Maybe it's because I'm retarded, but I can't find this "properties" configuration panel thingy...
  20. Apparently you're 95% imagination.
×
×
  • Create New...