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.

Beginner to OsBot api but familiar with java need help for knowing which methods to use

Featured Replies

hiya!

I'm kinda new to botting/osrs in general, but have minor programming experience and making my own bot sounded kind of fun.

My first project, is a clean, guiless, beer buyer that just buys beers in sarim and drops them off at the bank deposit right outside.

While I'm not having too much trouble with syntax, there are so many options in the Osbot api I just do not know what to use.

I already have a verbal diagram of what the bot will do and at this point I only need to translate it.

Onstart: visit the draynor bank, bank everything and withdraw 10k

Getstate: If there are any other number of empty slots in my inventory than 27, then do [BANK], else do [BEER]

Onloop: BANK: Go to sarim deposit box, deposit everything, withdraw all gold, exit deposit box

		BEER: Repeat the following 27 times (Go to bartender,talk to bartender, do correct dialogue to buy a beer) {I am aware that this is the hard part, and can probably figure out a way to make it 			  work consistently on my own}
        	  Make sure to catch any exception:
              									-If gp is insufficient, log out, stop script
                                                -If inventory is full, break
Onexit: print "script ended" to log

Onpaint: Nothing yet

It is very rough but it is definetly a start.

What I don't know how to do:

  1. Identify the sarim deposit box and walk to it
  2. Identify the sarim bartender and walk to him
  3. Do the dialogue correctly (although I presume I'll just go in game and use mouse debugging to find which xy coordinates work for the dialogue and add a small amount of randomness
  4. identify the draynor bank and walk to it
  5. Catch insufficient gp (as an exception and not just checking before every cycle of the beer state, which I feel would break less often)
  6. Catch full inventory (again without checking before every cycle)

I am aware that this script will be very shitty but I still want to do this to get more experience. Sorry for the annoying post but I greatly appreciate any help

Are you seriously that lazy to browse the forums lul

 

 

Recently Browsing 0

  • No registered users viewing this page.

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.