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.

Scripting Help

Having an issue with your script? Post the error here and receive help from other users.

Subforums

  1. Look here for useful bits of code to use with scripts.

    • 4.6k posts
  2. Looking to learn or teach about scripting? You've found the right place.

    • 2.8k posts
  1. Started by Ericthecmh,

    Hey guys, I've had quite a few scripters attempt to use the resources folder to load stuff without having to download them manually, so I figured I'd write a quick tutorial. (I've put this in the scripter section because I'd rather not have new scripters throwing random shit into that folder. Please limit it to image/text only). RESOURCES Folder location: For a script, put the resources folder in the root of the script module (I think root of the git repo works too if you want to use global resources). IE: dreamscripts --> DreamChopper --> resources --> ValkyrIsANoob.jpg Accessing resource from your script: Here's…

      • Like
    • 8 replies
    • 5.5k views
  2. Good Afternoon, My post is about what the title reads, while running KO Farming with a tree run with Gnome Stronghold as a task it got stuck and would not click the gate. Oddly.. when trying to assist to open the gate myself it would fight me. I brought this issue up with the script creator but it may bug with the client perhaps? Has anyone encountered anything similiar with anything else?

  3. Started by ImNotTheOne,

    Hi! Everything seems to be info for the old client. So base info would be nice, how we get it to load local scripts?, a template, and a link to the API will help a lot <3 This seems to have no info and not loading correctly for me https://osbot.org/nativeapi/ and if I understand correctly then this is outdated https://osbot.org/api/ and same for all the info I can find.

  4. I can see my old scripts still in my purchases like Khal wintertodt, but you want me to buy the new upgraded versions of the scripts? What's the deal here exactly? thanks

      • Heart
    • 4 replies
    • 179 views
  5. Started by Joubot,

    So I pretty much got started with Java scripts by poking around on the open source Tutorial Island project/tutorial Explv made back in the day. Any chance any of you fine people are working on something similar so us hacks can figure out how to get the square pegs in the square holes with the new language?

    • 0 replies
    • 124 views
  6. Hi, I’m new to scriptin and want to upload some scripts/code from my computer, but I’m not sure what to do next. I already have: A GitHub account with my username and password from osbot (i think its github anyway?) My scripts saved on my PC in a project folder What I’m confused about is: What exact steps do I follow to get my local folder onto GitHub as a repository? thanks

    • 3 replies
    • 210 views
  7. I usually keep an eye on my scripts when they are running, and sometimes I pause the script to do something (like hop worlds or something) However, sometimes (not always) when pausing the script, the onMessage loop seems to pause indefinitely thereafter (until the script is restarted) Is this intended behaviour? Is there a workaround? I often use onMessage to count tracked items, particularly for gathering, and the count just gets stuck, but other onPaint functionality works so it isn't the onPaint function.

  8. This is a question about walking and using web walking. Let's say for example in my script I'm in catherby and need to head to tree gnome village, With web walking will it detect the best way to get to tree gnome village? E.G Walk to white wolf mountain and then go onto the glider or will it walk all the way there. Also let's say im stranded in the middle of the desert and want to get to Ardy and I don't have any teleports left on me. Will it home teleport, Run to glider in Al Kharid and then go to the spirit tree in gnome stronghold and put me at ardy? Also if im in lumbridge and need to head to keldagrim will it check if I've done the quest and teleport / walk to ge and…

      • Like
    • 1 reply
    • 203 views
  9. Hi, wanting to know if it's possible to get a copy of the api so that my ai can access it for writing scripts with the correct methods.

  10. Sorry, I only have surface level knowledge of using graphics. But the text gets quiet a bit larger when I'm breaking vs when I'm not, can someone explain why this is happening and maybe a quick fix if it's not too much trouble?

      • Like
    • 3 replies
    • 251 views
  11. void activateStrength() { int CombatStyle = getConfigs().get(43); if (CombatStyle != 1) { log("click?"); if(tabs.isOpen(Tab.ATTACK)) { log("tap?"); mouse.click(random(650, 710), random(255, 290), false); log("click?"); } else { log("this thing?"); tabs.open(Tab.ATTACK); } } } So, when I'm trying to run this function, I get outputs "click?" and "this thing?" spamming the logger. It actually does open up the Attack tab but the bot never sees it as being open. I've tried using tab.isOpen as well as seeing if a widget i…

      • Like
      • Heart
    • 4 replies
    • 297 views
  12. Hello, I've been writing a script and while testing an NPC walked over the same tile where the object was. The script tried interacting left click -> left click, but it kept clicking the NPC on the second click, not opening the context menu. I found this class InteractionEvent in the Osbot API, but I am unsure if this would help. Maybe adding an action to the "interact()" would help, but I don't know what the "->" action stands for (indicated in the top left corner in the game). Relevant snippet: entityHandler.getRS2Object(e2.getEntityIndex()).interact(); On another note, I only found one topic on invokes I was wondering if anyone could share an exampl…

Recently Browsing 0

  • No registered users viewing this page.

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.