Skip 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.

Token

Script Officer
  • Joined

  • Last visited

Everything posted by Token

  1. I have always been wondering if resources get depleted faster the more people attempt to collect them. This made it all clear.
  2. Click a door 30 times during tutorial island -> instaban.
  3. I have lots of friends who have acne and have been prescribed accutane. All I heard from them is that it's a very hepatotoxic drug. Most of them have cholesterol and liver problems after 3-6 months of treatment. I also had acne for over 2 years but I've never been prescribed accutane. I eventually found a doctor who would perform laser treatments for acne and went through 7 BBL (blue light) and 4 Thermoscan treatments. They are much less invasive and also seemed to work for me. All I can tell you is that acne has no cure. It will last until you are ~30, you can't stop it but you can control it. PS: Working out raises your testosterone levels, this is not caused by bodybuilding supplements. It is a normal consequence of working out but will be very severe if you decide to take steroids.
  4. The random event hooks might be broken so they should be fixed next time the bot updates.
  5. Did you attempt to refresh the scripts before starting them?
  6. Check your logger messages as that most likely contains all the info you need.
  7. Is this on mirror mode?
  8. That happens because scripters generally just walk to any random tile that is inside the bank area and not to a tile just in front of the bank booth. The normal walking method has a distance threshold which will make it stop if the last click was at a distance of 2 or less from the destination which is why it won't walk back. If scripts implement webwalking then it will walk exacly to the tile they specified in their code and will even spam click like 10 times to get into it. I believe OSBot's webwalker is still in development but this issue can easily be fixed at script level. PS: This has nothing to do with mirror mode.
  9. OSBot has 2 distance methods, distance and realDistance. By default the closest method uses distance which is just a rounded pythagora's algorithm computation which is why a tile diagonally next to you is computed as round(sqrt(2)) = 1 even though its 1.4 and the ones directly accessible have distance equal to 1. Using realDistance on the other hand will yield a result of 0 on tiles north west east or south of you and a 2 for diagonal tiles. The reason why we don't use realDistance is the fact that it can only compute distances in the area local to your player (~30 tiles around you) so we mostly rely on distance. As for accurately determining long distances I implemented an algorithm that computes a path length that is used for webwalking (there is no support in the API for such thing).
  10. I guess you could try this @Override public int onLoop() { if (bank.isOpen()) { stop(false); } else if (npcs.closest("Banker") == null || myPosition().distance(new Position(3166, 3485, 0)) > 10) { walking.webWalk(new Position(3166, 3485, 0)); } else { npcs.closest("Banker").interact("Bank"); } return 69; }
  11. Token replied to Token's topic in Accounts
    tokenscape
  12. Token replied to Huz's topic in Scripting Help
    item.interact("Take"); If you want to actually find a GroundItem then you could try GroundItem item = groundItems.closest(new Filter<GroundItem>() { @Override public boolean match(GroundItem item) { return item.getName().equals(ITEMNAME); } }); if (item != null) { item.interact("Take"); }
  13. Is the script spamming "Jet fuel can't melt Zulrah scales" or does it exit with an error onStart message?
  14. Mirror client version: I guess 2.1 Console output / terminal output: See pic below Crash report if a crash occurred: There was no crash Script that you ran: Stealth Quester Hooks that failed: Dialogues maybe? JVM/Browser bit version (32 / 64): Unknown It's from a beta tester, so I couldn't provide the exact info but here's the post: http://osbot.org/forum/topic/92297-stealth-quester/page-23 This appeared 5 mins after @MGI told me to remove the warning regarding Mirror Mode being unstable from my script. It apparently keeps spamming the first option. It's dialogues.inDialogue() and dialogues.completeDialogue() that are invoked there. The debug messages show 3 minutes ellapsed since end of webwalking event which is when he arrived at Sedridor, during which the bot apparently only clicked the first option and failed to complete the dialogue. Also some time ago someone reported that the bot when attempting to teleport to barbarian outpost using a games necklace, it will keep selecting the first option (which is not barbarian outpost). In this case the script searches for a widget containing "Barbarian Outpost" string and interacts with it.
  15. Token replied to Token's topic in Accounts
    Bid noted thanks
  16. There's bans everywhere during the weekend.
  17. I confirm CS degree 100% useless. There are so many jobs in IT you don't even need a degree and will be paid better than most of the other jobs anyway. As for getting a job below your level, simply turn it down. It's not that hard. If you are actually above its level then you will have better offers.
  18. Let's not forget about GroundDecoration, Player, WallDecoration, WallObject and other interactables.
  19. It seems to be working fine for me but I haven't tested it much. If you don't trust OSBot's realDistance() method you can try implementing A* with collision flags and getting the length of the path and you should get the same result.
  20. Let me elaborate the post I made earlier since I couldnt post code from my phone. Main.Java package somePackage; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest(name = "AIO Runescape", author = "JohnnyDepp", version = 6.9, info = "Unicorns", logo = "") public class Main extends Script { Woodcutting wc; @Override public void onStart() { wc = new Woodcutting(this); } @Override public int onLoop() { wc.cutTree(); return 100; } } Woodcutting.Java package somePackage; public class Woodcutting { Main main; public Woodcutting(Main mainReference) { this.main = mainReference; } public void cutTree() { main.log("Time to cut some shit"); // insert actual code } } The above code should spam your logger with "Time to cut some shit".
  21. In order to access OSBot fields and methods you must have a valid Script instance reference which must also be the instance you happen to be defining as your main class. I suggest you pass it as a parameter to the constructor of each class and store it in a non-static field. Then you can instantiate the class from your main class, passing the main class as a reference for your other classes to use in order to access OSBot methods and fields.
  22. position.distance() will not work properly if you want accurate long distance checks because that's just an application of Pythagora's algorithm and does not take into account plane difference, links or obstacles at all. map.realDistance(Position position) should take into consideration all the above situations. You could also try walking.webWalk(Position... positions) as that walks to the closest of the given positions since you mentioned you only want to walk.
  23. Token replied to Token's topic in Accounts
    Bid noted thanks
  24. Token replied to Token's topic in Accounts
    19m

Account

Navigation

Search

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.