December 24, 201312 yr 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.
December 24, 201312 yr 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.
December 24, 201312 yr 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 )
December 24, 201312 yr 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
December 24, 201312 yr 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 December 24, 201312 yr by Pandemic
December 24, 201312 yr 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
December 25, 201312 yr 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
December 25, 201312 yr Author No problem ;) I'm still thinking of what should be in part 3... Maybe in depth failsafes, or even GUI's
December 27, 201312 yr Author Hey man, great tutorial! will be getting some pointers from this =) Thanks, I hope you learn something.
December 28, 201312 yr 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
December 28, 201312 yr 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