Jump to content

Bobbey

Members
  • Posts

    80
  • Joined

  • Last visited

  • Feedback

    100%

1 Follower

Profile Information

  • Gender
    Male

Recent Profile Visitors

1571 profile views

Bobbey's Achievements

Iron Poster

Iron Poster (3/10)

22

Reputation

  1. The mouse is not visible by default. You can either render it or enable the mouse position option in the debug options. You can create a mouse move profile and set it like so: MouseMoveProfile profile = new MouseMoveProfile(); profile.setNoise(); profile.setDeviation(); profile.setSpeedBaseTime(); profile.setFlowSpeedModifier(); profile.setMinOvershootTime(); getBot().setMouseMoveProfile(profile); You can move the mouse without using the mouse handler of osbot as described here: https://osbot.org/api/org/osbot/rs07/input/mouse/ClientMouseEventHandler.html#generateBotMouseEvent-int-long-int-int-int-int-boolean-int-int-int-boolean-
  2. Non-SDN scripts are troublesome with resources. You have to download the resources externally. That's why I made some code which can be used to download any image from the oldschool runescape wiki or any other website for that matter. public static CompletableFuture<BufferedImage> getImage(File imageFolder, String fileName, String url) { File imageFile = new File(imageFolder, fileName); //AccessController.doPrivileged gives the new thread permission to read the image from the data directory return CompletableFuture.supplyAsync(() -> AccessController.doPrivileged((PrivilegedAction<BufferedImage>) () -> { try { if (!imageFile.exists()) { downloadImage(url, imageFile); } return ImageIO.read(imageFile); } catch (IOException e) { throw new RuntimeException(e); } })); } private static boolean downloadImage(String urlString, File destination) throws IOException { URL url = new URL(urlString); InputStream in = url.openStream(); FileOutputStream fos = new FileOutputStream(destination); ReadableByteChannel rbc = Channels.newChannel(in); fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE); fos.close(); in.close(); return true; } Example usage: //Somwhere in your class private BufferedImage coinIcon; //In your paint method if(coinIcon != null) { g.drawImage(coinsIcon, x, y, null);//Use original dimensions g.drawImage(coinsIcon, x, y, width, height, null); } File imageFolder = new File(getDirectoryData() + File.seperator + "scriptname", "images"); String fileName = "coinstack.png"; String url = "https://oldschool.runescape.wiki/images/Coins_10000.png"; Function<Throwable, Void> errorHandler = e -> { script.log(e); return null; }; ResourceManager.getImage(imageFolder, fileName, url).thenAccept(image -> { coinIcon = image; //Note: this is off the main thread, if youre inserting into lists or maps from multiple of these calls, use synchronized or concurrent collentions and maps. }).exceptionally(errorHandler); The fileName is the name for how it is saved in the data folder. This code spawns a new thread that reads or downloads the image. Then the thenAccept function is called with the buffered image.
  3. I was getting annoyed by osbot installing updates to the home directory and me having to give it executable permissions over and over and looking for the correct file to launch. Therefore I've written a script that creates an application entry so you can just search with the SUPER key on your keyboard and then typing "osbot". The installed script will find the latest jar in your home folder and launch that. Tested on Ubuntu. May work on Fedora, Debian and their derivatives. Note: before installing, make sure there is any osbot jar present in the home directory /home/username/osbot x.x.x.jar Installer Note: the installer requires "osbot_icon.png" in the working directory. This icon needs to be 48x48 or 64x64 or 128x128 etc. You can use this image for example. Don't forget to rename it after downloading. $ sh install.sh Creates a script at /usr/local/bin/osbot which finds and launches the latest osbot.jar in the home directory. Makes the script executable Copies osbot_icon.png to /usr/share/icons/osbot_icons/osbot_icon.png and gives it the correct permissions Creates the desktop entry ~/.local/share/applications/osbot.desktop and gives it the correct permissions Reloads the application database Logs can be found at /tmp/osbot_launcher.log Uninstaller $ sh uninstall.sh Noob guide: Read the comments of this post to see if it's not malicious code. Create a folder somewhere and download the image on this post into it and rename it to osbot_icon.png Right click in the folder -> Open in terminal Type "nano installer.sh" and copy the installer code from this post and right click in the terminal. CTRL + O and CTRL + X to save the script. Type "sh installer.sh" This image is uploaded to osbot and is converted to webp. It's here in case imgur removes the other image:
  4. I appreciate the last 2 updates. 4 things were fixed that were reported by me
  5. It's important to note that it does work sometimes if I am more zoomed out.
  6. I pizza promise I will! I am at the development stage.
  7. This is archived and not guaranteed to work unfortunately.
  8. <15 mins is pretty short. Does that mean youll only break for like 2 mins? Do you log out?
  9. Ban waves are supposed to be pretty random I think. The main reason many accounts are banned on Wednesday is because things change and bots break. They can easily identify if 10000 accounts all of a sudden make the same mistake repeatedly at the same thing. Prime sales will flood the game with a lot of bots so if anything, their hands are fuller. They will probably work hard to compensate for that.
  10. https://www.youtube.com/watch?v=TMC1t2OTi6Q The door probably has nothing to do with it. I have 10k in my inventory If you mean the walker that is in beta, that would most likely have the same issue as it uses webwalking.
×
×
  • Create New...