Jump to content

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


Recommended Posts

Posted

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.

Posted (edited)

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
Posted

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

Posted

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

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...