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

TehRhio

Registered
  • Content Count

    940
  • Joined

  • Last visited

  • Feedback

    100%

Posts posted by TehRhio


  1. Working on the new version of this while I've got time over my break.

     

     

    Edit:

     

    Will update this as I work on it.

     

    TODO:

    Anti-crash

    GUI

    Gather beta testers

    ...

     

    Finished:

    Enqueuing and dequeuing traps for placement/pickup

    Pickup and placement of traps

    New trap placement detection(Detects if you've placed a trap in the wrong spot more accurately than before)

    Arguments for script queue/starter

    Multiple orientations

     

    Current Arguments:

     

     

    Argument: debug

    Values: none

    Description: Starts the script in debug mode

     

    Argument: mode

    Values: chinchompa, bird

    Description: Defines what mode to start the script in

     

    Argument: orientation

    Values: cross, pentagon_north, pentagon_east, pentagon_south, pentagon_west

    Description: Defines what orientation to place traps in

     

    Argument: startpos

    Values: x,y

    Description: Defines what tile the middle of your traps will be at.


  2. Maybe want to add something to clear the cookies because I think it will error if you are already logged in.

    Worked fine the last time I tested it, although that was a whole ago.

  3. package scripts.OldSchool.Utilities;import org.tribot.api.General;import java.io.BufferedReader;import java.io.DataOutputStream;import java.io.IOException;import java.io.InputStreamReader;import java.net.HttpURLConnection;import java.net.URL;import java.net.URLEncoder;import java.util.Random;public class Account {    public static boolean isBanned(String email, String password){        try {            String accountDetailsURL = null;            String urlParameters = "rem=on" + "&" +                    "username=" + URLEncoder.encode(email, "UTF-8") + "&" +                    "password=" + URLEncoder.encode(password, "UTF-8") + "&" +                    "submit=Log+In" + "&" +                    "mod=www" + "&" +                    "ssl=1" + "&" +                    "dest=account_settings.ws%3Fjptg%3Dia%26jptv%3Dnavbar";            URL ur = new URL("https://secure.runescape.com/m=weblogin/login.ws");            HttpURLConnection yc =(HttpURLConnection) ur.openConnection();            yc.setDoOutput(true);            yc.setDoInput(true);            HttpURLConnection.setFollowRedirects(true);            yc.setRequestMethod("POST");            yc.setRequestProperty( "Content-Type", "application/x-www-form-urlencoded");            yc.setRequestProperty( "charset", "utf-8");            yc.setRequestProperty("Content-Length", "" +                    Integer.toString(urlParameters.getBytes().length));            yc.setUseCaches( false );            DataOutputStream wr = new DataOutputStream( yc.getOutputStream());            wr.writeBytes(urlParameters);            wr.flush();            wr.close();            BufferedReader in = new BufferedReader(new InputStreamReader(yc.getInputStream()));            String inputLine;            while ((inputLine = in.readLine()) != null) {                if (inputLine.contains("<iframe src=\"https://secure.runescape.com/m=totp-authenticator/")) {                    String[] split = inputLine.split("src=\"");                    if (split.length > 1) {                        split = split[1].split("\" ");                    }                    if (split.length > 0) accountDetailsURL = split[0];                }            }            in.close();            if(accountDetailsURL != null){                ur = new URL(accountDetailsURL);                yc =(HttpURLConnection) ur.openConnection();                in = new BufferedReader(new InputStreamReader(yc.getInputStream()));                while ((inputLine = in.readLine()) != null) {                    if(inputLine.contains("banned.")){                        in.close();                        return true;                    }                }            }        } catch (IOException e) {            e.printStackTrace();        }        return false;    }    public static boolean createAccount(String email, String name, String password){        String SUBSTR_BLOCKED = "blocked from creating too many";        String SUBSTR_TAKEN = "passwords you have";        String SUBSTR_CREATED = "Click the link we have included in the confirmation email.";        //Get random age to use when creating the account        Random r = new Random();        int age = 18 + r.nextInt(10);        try {            String urlParameters = "onlyOneEmail=" + URLEncoder.encode("1", "UTF-8") +                    "&age=" + URLEncoder.encode(""+age, "UTF-8") +                    "&displayname_preset=" + URLEncoder.encode("true", "UTF-8") +                    "&displayname=" + URLEncoder.encode(name, "UTF-8") +                    "&email1=" + URLEncoder.encode(email, "UTF-8") +                    "&password1=" + URLEncoder.encode(password, "UTF-8") +                    "&password2=" + URLEncoder.encode(password, "UTF-8") +                    "&agree_pp_and_tac=" + URLEncoder.encode("1", "UTF-8") +                    "&submit=" + URLEncoder.encode("Join Now", "UTF-8");            URL ur = new URL("https://secure.runescape.com/m=account-creation/g=oldscape/create_account_funnel.ws");            HttpURLConnection yc =(HttpURLConnection) ur.openConnection();            yc.setDoOutput(true);            yc.setDoInput(true);            HttpURLConnection.setFollowRedirects(true);            yc.setRequestMethod("POST");            yc.setRequestProperty( "Content-Type", "application/x-www-form-urlencoded");            yc.setRequestProperty( "charset", "utf-8");            yc.setRequestProperty("Content-Length", "" +                    Integer.toString(urlParameters.getBytes().length));            yc.setUseCaches( false );            DataOutputStream wr = new DataOutputStream( yc.getOutputStream());            wr.writeBytes(urlParameters);            wr.flush();            wr.close();            BufferedReader in = new BufferedReader(new InputStreamReader(yc.getInputStream()));            String inputLine;            while ((inputLine = in.readLine()) != null) {                if(inputLine.contains(SUBSTR_TAKEN)){                    //Account name taken                }else if(inputLine.contains(SUBSTR_BLOCKED)){                    System.out.println(inputLine);                    //Blocked for creating too many accounts                    General.sleep(150000);                }else if(inputLine.contains(SUBSTR_CREATED)){                    //Account successfully created                    in.close();                    return true;                }            }            in.close();        } catch (IOException e) {            e.printStackTrace();        }        return false;    }}

    Could be improved(probably will eventually), but it works.

    • Like 5

  4. @swagg

    public static boolean createAccount(String email, String name, String password){		String SUBSTR_BLOCKED = "blocked from creating too many";		String SUBSTR_TAKEN = "passwords you have";		String SUBSTR_CREATED = "Click the link we have included in the confirmation email.";		//Get random age to use when creating the account		Random r = new Random();		int age = 18 + r.nextInt(10);		try {			String urlParameters = "onlyOneEmail=" + URLEncoder.encode("1", "UTF-8") +					"&age=" + URLEncoder.encode(""+age, "UTF-8") +					"&displayname_preset=" + URLEncoder.encode("true", "UTF-8") +					"&displayname=" + URLEncoder.encode(name, "UTF-8") +					"&email1=" + URLEncoder.encode(email, "UTF-8") +					"&password1=" + URLEncoder.encode(password, "UTF-8") +					"&password2=" + URLEncoder.encode(password, "UTF-8") +					"&agree_pp_and_tac=" + URLEncoder.encode("1", "UTF-8") +					"&submit=" + URLEncoder.encode("Join Now", "UTF-8");			URL ur = new URL("https://secure.runescape.com/m=account-creation/g=oldscape/create_account_funnel.ws");			HttpURLConnection yc =(HttpURLConnection) ur.openConnection();			yc.setDoOutput(true);			yc.setDoInput(true);			HttpURLConnection.setFollowRedirects(true);			yc.setRequestMethod("POST");			yc.setRequestProperty( "Content-Type", "application/x-www-form-urlencoded"); 			yc.setRequestProperty( "charset", "utf-8");			yc.setRequestProperty("Content-Length", "" + 					Integer.toString(urlParameters.getBytes().length));			yc.setUseCaches( false );			DataOutputStream wr = new DataOutputStream( yc.getOutputStream());			wr.writeBytes(urlParameters);			wr.flush();			wr.close();			BufferedReader in = new BufferedReader(new InputStreamReader(yc.getInputStream()));			String inputLine;			while ((inputLine = in.readLine()) != null) {				if(inputLine.contains(SUBSTR_TAKEN)){					//Account name taken				}else if(inputLine.contains(SUBSTR_BLOCKED)){					//Blocked for creating too many accounts				}else if(inputLine.contains(SUBSTR_CREATED)){					//Account successfully created					in.close();					return true;				}			}			in.close();		} catch (IOException e) {			e.printStackTrace();		}		return false;	}
    • Like 1

  5. I've been experiencing the same bug as well.

    Working on fixing this now.

     

    Edit: Will probably have a fix out for this tonight. Just need to test what I wrote to make sure it works.

    • Like 1

  6.  

    How would I get the points of the mouse path?

     

    I got this, but it obviously doesn't work :P

    	@Override	public void paintMouseSpline(Graphics g, ArrayList<Point> arg1) {}

    arg1 should contain the points


  7. Can you fix it so when someone drops or logs out and leaves a trap; the script doesn't run all the way across map to pick it up? Im hunting reds in the eastern wall spot, and when a trap drops above me or at the red chin spot at the south wall, it runs all the way down to pick up the trap.

    Should be done.


  8. Beta seems to be running better; however it doesn't show chins per hour :( ; just kidding! I didn't know I needed to click the icons at the top for it to show:).

    What would be the best options for reverse pentagon? Loop / mouse / speed randomness?

    If I'm hunting on the western wall; should I use reverse pentagon or cross?

    No idea on what settings are best honestly, haven't used it extensively for a while.

     

    Could I please get a refund?

    Done.

×
×
  • Create New...