Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Zuul

    Members
    • Posts

      10
    • Joined

    • Last visited

    Everything posted by Zuul

    1. Hi there, I want to contribute to the community, so here is my gnome agility script. Programming is not my way of living and i don't do a lot of it. Been making script since... Long time ago and for diff. clients. In the past, the community helped me understand the client and api and how a script is structured, from basic scripts to advanced frameworks. Im using Eclipse IDE on windows and the JAVADOCS for this client. There are excellent tutorials on the net on how to install Eclipse and Java, just google it. And i always run the client in resizeable mode - modern layout. Or resizeable mode - classic layout. Because i want to and i am always watching my script run. Im lazy when coding, so i've made a few rewrites, eg. #MethodProvider.getLocalPlayer() i rewrote to #player(). And for my random numbers, i use ThreadLocalRandom (see ThreadLocal...), eg. #nextInt(lowEndValue, highEndValueExclusive). Etc., see script - helper functions I've adjusted the basic script layout (see scripter-guide), to my needes - you should do the same and find the layout that works for you. Theres nothing right and wrong about it, just as long as it fulfil one's task. Just fiddle with it, and over time you'll get more skilled and perhaps one day reach level 99 😉. Don't be like all other ppl, BotWatch is all about patterns, right? The guides on this site is pretty okay and it's getting better every day, just be wary of deprecated methods (see javadocs skilltracker), that will stop your script eventually, if you dont correct 'em... There is alot to understand, when scripting. Like when you click on an item in game, eg. a ladder, you don't go up the ladder straight away. You might if your next to the ladder, but if you are 2 or more tiles away, then you have to move to the ladder first. So you have to subdivide 'climb ladder' into smaller time arranged units first. And that's how you program your script... 1. If you are not close to the ladder, when interacting it, you'll have to (automatically) walk to it first 2. Lets assume you are standing still. So from this starting point, we first have to wait for movement, after we have clicked on the ladder/interacting with it 3. After we have started moving, we'll have to decide: a) wait until we have stopped moving or b) are within a certain distance to our target location or c) start doing the desired action 4. Wait until desired action is completed (eg. we are up a floor) Above situation is the same for almost all actions in the game, either you are close to the entity or not. If not close, then you have to move first. Then as most humans do, whenever we are close, we start interacting with it. We normally dont wait for the game ppl to stop moving, before we start another action. This applies for mining, fishing, combat, etc. Applies for every interaction with entities, where you have to be next to it, for any action to occur. Then you have to consider: is it reachable?, is it already being interacting with by another player, is it ready?, are all conditions satisfied? etc, etc. First i've enabled some settings in the client, to get information about my surroundings in game: I've looked at the wiki for the gnome agility course, and made a method for each part of the agility course, #01 to #07 For each part, i used the mouse to get information about the different entities in game. Main loop of the script is divided into the different parts of the course. For the most time, i can use positions (x, y and z) to determine the ppl location on the course. Needed a few area's for help, but you can do without 'em. The script works fine, but its easy to see, its not perfect when you watch it run. Its basic, with no bells and whistles. There are lots of optimisations to be made and lots of checks to expand, for it to run fine and self correcting when it encounters hickups/errors made. The script it here: Sorry for format is not up to par...
    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.