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%

Everything posted by TehRhio

  1. https://tribot.org/doc/org/tribot/api2007/Projection.html#getTileBoundsPoly-org.tribot.api.interfaces.Positionable-int-
  2. Added an API for the SelectItem interface that shows up when you have multiple items you can make for example when fletching.
  3. Just updating progress on beta. Added a startpos argument so you can define where you want it to hunt if you're not already on the tile. Working on better misplaced trap detection/prevention. Started working on anti-crash Edit:
  4. You can now message me to be added to the closed beta.
  5. Just a selection of different utilities. Will add more whenever I make more. https://github.com/Atynine/TRiBot_Utilities/tree/master
  6. https://tribot.org/doc/org/tribot/api2007/Game.html#getSelectedItemName--
  7. 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.
  8. TehRhio

    Romeo and Juliet

    Ahh, thanks. Fixed now.
  9. TehRhio

    Romeo and Juliet

    Whats wrong with it? Worked fine a few days ago.
  10. https://tribot.org/doc/org/tribot/api2007/types/RSCharacter.html#getChatMessage--
  11. High. Working on a new version that should have much lower, although it might take a while because of work/irl stuff.
  12. Going to be working on this soon. Will hopefully reduce bans a lot and increase speeds.
  13. Worked fine the last time I tested it, although that was a whole ago.
  14. 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.
  15. @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; }
  16. TehRhio

    Romeo and Juliet

    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.
  17. arg1 should contain the points
  18. Paint bugs would be because of the beta version. Never really got around to fixing those in the old version. You can test the beta version by putting -beta in the startup arguments
  19. You can just use ABCUtil.performTimedActions(SKILL) for all the non-sleep related ones.
  20. Changes the time the script sleeps between each condition check.
  21. No idea on what settings are best honestly, haven't used it extensively for a while. Done.
×
×
  • Create New...