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