Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

pork

Members
  • Joined

  • Last visited

Everything posted by pork

  1. Hi, what is the method for checking if an RS2Object is on screen? I previously used isVisible() but it is no longer in the OSBot 2 API. Thanks!
  2. pork posted a topic in Snippets
    Is the simple task of walking to a tile using OSBot frustrating to anyone else? Maybe I'm using the wrong walking method that everyone else uses but my bots often just stand around when telling it to walk to a tile. I think this is because OSBot will not move if you tell it to walk to a tile that isn't in the loaded area or if the tile is unreachable. I've tried walk(), walkExact(), walkMinimap(), walkMainScreen() and I think they all require a loaded and reachable tile. Is there a reason for this? It's frustrating and I've resorted to using paths for everything which is annoying. I don't know about everyone else, but I'm used to the ability of specifying any tile and having the bot actually move towards it. So here's a simple method that takes a step in the direction of the specified tile even if it's unreachable or unloaded. Using it in the script's loop will cause it to repeatedly take steps until it reaches the destination tile. It walks in a straight line so maybe it's not the best in terms of bot detection. public boolean blindWalk(Position position) { final int STEP_SIZE = 15; Player myPlayer = client.getMyPlayer(); try { if (position.distance(myPlayer.getPosition()) < STEP_SIZE) { return client.moveMouseTo(new MinimapTileDestination(bot, position), false, true, false); } int myX = myPlayer.getX(); int myY = myPlayer.getY(); int posX = position.getX(); int posY = position.getY(); double deltaX = Math.abs(posX - myX); double deltaY = Math.abs(posY - myY); double angle = Math.atan(deltaY / deltaX); int xModifier = posX < myX ? -1 : 1; int yModifier = posY < myY ? -1 : 1; Position newPosition = new Position(myX + (int)(Math.cos(angle) * STEP_SIZE) * xModifier, myY + (int)(Math.sin(angle) * STEP_SIZE) * yModifier, 0); return client.moveMouseTo(new MinimapTileDestination(bot, newPosition), false, true, false); } catch (Exception e) { return false; } }
  3. I don't think it has anything to do with memory leaks. My script automatically turns off overnight and occasionally when I restart in the morning the bot will exit once I start a script.
  4. Solving randoms has absolutely nothing to do with what is wrong with osbot. That is completely separate and something Advertising other bots isn&#39;t allowed. has always failed at.
  5. pork replied to 5uck's topic in Archive
    Glad I already have over 500k accs so account creation restrictions won't matter.
  6. Witopia. But there is always a chance that any vpn could disconnect or my internet could disconnect and reconnect to runescape before reconnecting to VPN. I need a way to have my bots close if my ip address changes. Changing vpns isn't a solution for me because it can happen on any other one.
  7. EDIT import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.URL; public class IPListener { private static final String MY_IP_URL = "http://my-ip.heroku.com/"; private static final String BAT_TO_RUN = "run.bat"; public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(new URL(MY_IP_URL).openConnection().getInputStream())); String initialIP = reader.readLine(); reader.close(); System.out.println("Initial IP: " + initialIP); System.out.println("Listening for change in IP address..."); while (true) { reader = new BufferedReader(new InputStreamReader(new URL(MY_IP_URL).openConnection().getInputStream())); String currentIP = reader.readLine(); reader.close(); if (!initialIP.equals(currentIP)) { System.out.println("IP changed from " + initialIP + " to " + currentIP); Runtime.getRuntime().exec("cmd /c start " + BAT_TO_RUN); System.out.println(BAT_TO_RUN + " executed."); break; } } } } Came up with this but it spams the website every few milliseconds... they'll prob block me. The file run.bat is executed on IP change so you can put commands in there to kill java.exe or javaw.exe processes.
  8. Sometimes it will prepare for transfer without the button being pushed and then just stand there until I notice.
  9. It doesn't requip after dying and just goes back and punches things.
  10. Some Issues I've had today. When using the transfer button it doesn't first deposit inventory so if you click it while at druids it can lead to some issues. It doesn't use lamps properly but that is probably a problem with the client and not the script. Gets stuck at bank screen when having an unbankable item such as a lamp or a mysterious box. Also somehow had an account bank all his worn items I assume it misclicked when depositing inventory or something but it didn't re-equip and was just fighting the druids with nothing on.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.