Jump to content

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


Pandemic

Recommended Posts

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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