Jump to content

Toph

Members
  • Posts

    608
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    100%

Posts posted by Toph

  1. This is more for stuff like calculating money gained per hour, nothing big.

    If i recall correctly there's a full-fletched library on like the 2nd or 3rd page of this subforum.

    There is one but I don't believe it checks for actual offers, and therefor if there's an item with a price of 1,000,000 but that's only people selling, no one buying, it will still return that (incorrect) result.

  2. I'm not suggesting this, but it's possible that that site stores submitted usernames and passwords, so here's what it outputs:

    @echo off
    C:\Program Files (x86)\Java\jre7\bin\java.exe -Dhttp.proxyHost=ip -Dhttp.proxyPort=port -jar -Xmx256m Osbot.jar

     

    Put an ip for "ip", port for "port", and replace Osbot.jar with your correct jar file. Save it as a .bat file.

  3. 	public BufferedImage lol()
    	{
    		String url = "http://puu.sh/";
    		BufferedImage lul = null;
    		for (int i = 0; i < 5; i++)
    		{
    			int r = random(1, 63);
    			url += r <= 10 ? (char) random(48, 58) : r <= 36 ? (char) random(65, 91) : (char) random(97, 123);
    		}
    		try {
    		lul = ImageIO.read(new URL(url));
    		} catch (Exception e){ return lol(); };
    		if (lul == null) return lol();
    		return lul;
    	}
    

    lul

    • Like 2
  4. like mentioned, use

    public void typeString(String s, boolean enter) throws InterruptedException {
       for (char c : s.toCharArray()) {
          bot.getKeyboard().typeKeyEvent(c, 0);
       }
       if (enter) {
          client.typeKey((char)KeyEvent.VK_ENTER, 0, 0, false);
       }
    }
    

    to use it, simply call

    typeString("Message you want to type, 123456789, potato, meow", true). True/false if you want to press enter after done typing or not.

     

    That should type near instsantly. If you want it more humanlike, put a sleep(50) underneath the typeKeyEvent() line.

×
×
  • Create New...