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

Sell OSRS Gold

Search the Community

Showing results for tags 'text'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • TRiBot
    • News and Announcements
    • Old School Scripts
    • Help and Guidance
    • Development
    • Bugs and Errors
    • Tutorials
  • Scripters' Forums
    • Scripter Application
  • RuneScape®
    • General
    • Guides/Tutorials
    • Achievements
  • General
    • General
    • Questions
    • Discussions & Debates
    • Introductions
    • Suggestions
    • Feedback
  • The Black Market
    • Disputes
    • Repository Credits
    • Gold Exchange
    • Item Exchange
    • Membership Sales
    • Services
    • Other
    • Middleman Services

Blogs

  • Getting Started With TRiBot
  • The Best Way To Get Rid Of Termites
  • How to Generate Real Estate Leads Using Twitter
  • A Guide to Landing Pages
  • Dog Grooming in Sydney – 5 steps to finding a grooming salon
  • Cheap RS 2007 Gold for Spring 2020!
  • Logo Design Mistakes- Your Business Should Avoid at All Cost
  • Effective Pest Control Measures
  • В Алматы карантин из-за коронавируса: жизнь в условиях пандемии
  • Preschool Educational Toys, Helping One's Child Prepare For the Future
  • Automating Tribot
  • Payment error
  • Animal Crossing: New Horizons Cuts Player Interest Rates
  • network-security-engineer
  • SERVICES 100% BY HAND
  • The best place to buy Animal Crossing Bells
  • Major Content of Escape from Tarkov Patch 0.12.5.6924 Optimizations
  • You need to rest properly when playing Rocket League
  • Escape from Tarkov hits 200k concurrent players
  • List of Rocket League Ranking System
  • Should I need to run a paid ad campaign, when organically I rank well?
  • Rocket League SPRING SERIES: EUROPE TAKEAWAYS
  • How to play Rocket League
  • Twitch Drops Come Back in Escape from Tarkov
  • The Path of Exile game features
  • Be more seen
  • Rocket League Took Actions to Fight Racism and Discrimination in the Game 
  • Rocket League camera setting 
  • Animal Crossing -List of Wedding Season Rewards
  • What WoW Classic race and sophistication is best?
  • FIFA 21 Coming to Steam
  • The Ideal Place for Global Players to Buy and Sell Rocket League Items 
  • Customize furniture in Animal Crossing: New Horizons
  • ABOUT NBA 2K20
  • Purchase Cheap RL Items from Lolga.com to set aside bunches of Cash 
  • Ethan Smith
  • How much does WoW Classic cost?
  • Special Olympics NY partners with Mission Control for Rocket League competitions

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Location


Bio

Found 3 results

  1. Alpha Version Available on the Repository: https://tribot.org/repository/index.php?search=Auto%20Mercher&sort=default&category=money_making&price=any Currently Outdated! Version: 0.00 Alpha Features: --------------------------------------------- [✓] Selling Items [✓] Anti-Scam Second Screen Check [✓] Advertising in Game Chat [✓] Easy to configure Setup Interface [✓] First Screen Trade Adjustments [✓] Buying Items [✓] Advertisement Message Anti-ban [✓] Paint [✓] Trade Timeout(Close Trade After X amount of Seconds) [✓] Trade BlackList (Don't trade X character after so many failed attempts) [✓] Buying Multiple Items [✓] Post Sell/Buy offers to Zybez automatically --------------------------------------------- [✓] Completed [✓] Coming Soon [✓] Future Expansions Bug Report Format: --------------------------------------------- 1) Item you were attempting to Buy/Sell (Exact Name) 2) Item you were attempting to Buy/Sell ID 3) Item cost 4) What Trade screen it failed at (First/Second/Accepting trade) 5) Bot AND client debug (right click copy and paste) 6) A screenshot of the trade (not necessary, but would help tremendously) ---------------------------------------------
  2. Guest

    Getting Text From Chatbox

    I'm working on a simple thieving script and having the most trouble with detecting when the player is stunned. I was thinking the best way to do this would be to get text from the text box, where is says "You have been stunned!", but I don't know how to go about this. What are the best classes/methods to detect text output? Also, if there is a better way to go about this, I would love to know.
  3. /* * IOUtility.java 04/04/2014 * * VBsec */ package scripts.generalUtils; import java.awt.Desktop; import java.awt.image.BufferedImage; import java.io.File; import java.io.FileOutputStream; import java.io.FileReader; import java.io.FileWriter; import java.io.FilenameFilter; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.Reader; import java.io.Writer; import java.net.URL; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.Paths; import java.util.ArrayList; import java.util.Collections; import java.util.List; import javax.imageio.ImageIO; import org.tribot.api.General; public class IOUtility { private static final String TXT = ".txt"; /* * @param path = The path for saving the file to. e.g. new File(Util.getWorkingDirectory() + "\\Yourname-scripts\\YourScript") * @param name = The name of the file to be saved. * @param contents = The string you want to save. */ public static void saveTextFile(File path, String name, String contents) throws IOException { if (!path.exists()) path.mkdirs(); try (Writer output = new FileWriter(new File(path + "\\" + name + TXT)) { output.write(contents); } } /* * @param path = The path for saving the file to. * @param name = The name of the file to be saved. * @param contents = The string array you want to save. */ public static void saveTextFile(File path, String name, String[] contents) throws IOException { if (!path.exists()) path.mkdirs(); try (Writer output = new FileWriter(new File(path + "\\" + name + TXT)) { for (String line : contents) output.write(line + System.lineSeparator()); } } /* * @param path = The path that contains the file. * @param name = The name of the file to be read. * * Maximum length is 256 characters. Can be adjusted by changing the char array size. */ public static String readTextFile(File path, String name) throws Exception { if (!path.exists() || path.listFiles().length == 0) return null; try (Reader input = new FileReader(new File(path + "\\" + name + TXT)) { char[] chars = new char[256]; while (input.read(chars) != -1) ; String contents = String.valueOf(chars); return contents.trim(); } } /* * @param path = The path that contains the file. * @param name = The name of the file to be read. */ public static String[] readTextFileIntoArray(File path, final String fileName) throws Exception { String[] contents; if (!path.exists() || path.list(new FilenameFilter() { @Override public boolean accept(File dir, String name) { return name.contains(fileName); } }).length == 0) return null; List<String> lines = Files.readAllLines( Paths.get(path.getAbsolutePath() + "\\" + fileName + TXT), Charset.forName("UTF-8")); contents = new String[lines.size()]; return lines.toArray(contents); } /* * @param urlString = The URL to open. e.g. "http://tribot.org" */ public static void openWebpage(String urlString) { try { if (Desktop.isDesktopSupported()) { Desktop.getDesktop().browse(new URL(urlString).toURI()); } else { Runtime runtime = Runtime.getRuntime(); runtime.exec("/usr/bin/firefox -new-window " + urlString); } } catch (Exception e) { General.println("Couldn't open the link to " + urlString + System.lineSeparator() + e.getMessage()); } } /* * @param path = The path to the images e.g. Util.getWorkingDirectory() + "\\Yourname-scripts\\YourScript" * @param names = An array containing the names of the images. Include the extension. e.g. { "mainPaint.png", "closeButton.png" } * * Store the returned array in a variable in the class you call the method from. e.g. BufferedImage[] images = IOUtility.readImages(path, names); */ public static BufferedImage[] readImages(String path, String[] names) { BufferedImage[] imageArray = new BufferedImage[names.length]; try { for (int i = 0; i < names.length; i++) { File imagePath = new File(path + "\\" + names); if (imagePath.exists()) imageArray = ImageIO.read(imagePath); else { General.println("Couldn't find image " + names); return imageArray; } } } catch (IOException e) { General.println("Couldn't find images." + System.lineSeparator() + e.getMessage()); return null; } return imageArray; } // utility method for downloadImages() private static boolean findImages(File path, String[] names) { File[] files = path.listFiles(); ArrayList<String> fileList = new ArrayList<>(); ArrayList<String> nameList = new ArrayList<>(); for (File f : files) fileList.add(f.getName()); Collections.addAll(nameList, names); return fileList.containsAll(nameList); } /* * @param path = The path to save the images to. * @param picNames = An array containing names that will be used when saving to file. Include the extension. e.g. { "mainPaint.png", "closeButton.png" } * @param links = An array of links for the images. The order must be the same as in the picNames array. e.g. {"http://www.tinypic.com/mainPaint.png", * "http://www.tinypic.com/closeButton.png" } */ public static boolean downloadImages(File path, String[] picNames, String[] links) throws IOException { if (!path.exists()) { path.mkdirs(); } else if (findImages(path, picNames)) return true; for (int i = 0; i < links.length; i++) { URL website = new URL(links); File file = new File(path + "\\" + picNames); try (InputStream input = website.openStream(); OutputStream output = new FileOutputStream(file) { int c; while ((c = input.read()) != -1) output.write(c); } } return false; } }
×
×
  • Create New...