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.

Pandemic's Scripting Series: Part II - Path Walking and Simple Banking [UPDATED FOR OSBOT 2]

Featured Replies

I already taught how to use names, this tutorial was on using IDs.

Also, if they replaced the banking with what you put, it would click the bank every half a second or so until it's open. My way clicks it only once and waits to open.

And waits endlessly, should it somehow miss click. Add a timeout of some sort.

  • Author

And waits endlessly, should it somehow miss click. Add a timeout of some sort.

I know, but this is a basic tutorial I don't want to get too in depth about failsafes.

I fully understand this isn't the best way to do it, but it's a simple way that works 95% of the time.

  • Author

Updated thread to look for the bank using its name, and fixed the formatting (for some reason when I edited it last time it turned all the code into one line :()

closestObject is a method in the MethodProvider class, check that out.

 

I see but how does it know to look in the MethodProvider class with this RS2Object bank = closestObject(BANK_BOOTH_ID); isn't it supposed to look in the RS2Object class with this? once again thanks for your help

  • Author

I see but how does it know to look in the MethodProvider class with this RS2Object bank = closestObject(BANK_BOOTH_ID); isn't it supposed to look in the RS2Object class with this? once again thanks for your help

Ah, well that's because the Script class that we extend from implements the MethodProvider class, so all of its functions are usable by your class.

Edited by Pandemic

I love the simplicity in your tutorials. You go in-depth without creating any area of confusion and I commend you for that. Excellent job yet again, I'm excited for Part 3 :D

Ah, well that's because the Script class that we extend from implements the MethodProvider class, so all of its functions are usable by your class.

 

Oh I see now! Tyvm sir! Can't wait for part 3

  • Author

No problem ;)

I'm still thinking of what should be in part 3... Maybe in depth failsafes, or even GUI's :o

Hey man, great tutorial! will be getting some pointers from this =)

  • Author

Hey man, great tutorial! will be getting some pointers from this =)

Thanks, I hope you learn something.

nice tutorial, i like how simple it is and would help out people who are new to scripting 

 

tho you have explained how to create a path

instead of using notepad and recoding the tile you are on 

you could show them how to use a path maker

it saves time, good for long as paths and less confusing

 

in your traversePath() the reversed part shouldn't i be increasing

  • Author

nice tutorial, i like how simple it is and would help out people who are new to scripting

tho you have explained how to create a path

instead of using notepad and recoding the tile you are on

you could show them how to use a path maker

it saves time, good for long as paths and less confusing

in your traversePath() the reversed part shouldn't i be increasing

Thanks for the suggestion, but I think adding a tool to new learners might be confusing.

Also, no the i goes down so it starts at the end of the path and decreases until it's at the beginning of the path.

Create an account or sign in to comment

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.