DISCLAIMER: THIS DOESN'T INVOLVE CODE. THIS IS MERELY FOR BEGINNERS WHO HAVEN'T GRASPED THE REQUIRED CRITICAL THINKING SKILLS TO SCRIPT.
Hello All!
Recently decided that I'd attempt to use my Java knowledge for botting. I'm not super experienced but I'm organized when it comes to development and that's what I'm going to teach you today.
Being organized is one of the most crucial steps to understanding how to piece your script together. Apaec has an excellent guide that you should read if you haven't already. (It's pinned so I'm not going to bother linking it). In his guide he mentions State Machines. Which are a series of boolean statements, true or false, which decide what action the bot will perform.
It's great that he introduces the idea but I felt like he doesn't go into enough detail about how to plan a script. Because while you can jump right in and start coding, you want a foundation and goals in mind to improve efficiency and in turn will allow for you to build on top of what you've already created later on.
Currently I'm working on a 1-33 Progressive Magic Leveler. This is for TeleGrab, but there's a decent amount of thought process behind just getting to that goal level of 33.
These are some of the goals required to eventually get to level 33:
Where to get items
Equipment
Runes
What spells to use
When to swap spells
Where to splash
These are only a handful of the goals and if you're anything like me having the goals in mind is great, but not listing them step by step still makes it a confusing path to getting to your completed script.
How/Where to get Items:
So first step is to plan out how to get the required runes/equipment to get to level 33 efficiently. I'll be using a muling system for gathering materials so I don't have to worry about having the bot running everywhere which makes the script more complicated and also more prone to get stuck.
So we're not going to go into the muling process. We'll just simply state that we have a mule that has all the required materials for our magic adventure.
Needed Equipment:
So what materials are actually needed?
Well Splashing is by far the easiest way to do this, but I want to also get it within a decent amount of time.
To splash you need a Magic Bonus of -65 to splash 100% of the time. So to reach that -65 Magic Bonus we'll use an Iron Full Helm, Platebody, Platelegs, and Kite Shield. This will get us to -65. We won't be using a staff as elemental staves provide a +5 Magic Bonus. We could use the "Cursed Goblin Staff" which provides no Magic Bonus, but since we'll only be using autocast spells until level 3, there's no need!
So the core equipment will be the iron set.
Needed Runes/Spells to Use/When to Swap:
Well at level 1 Magic you will only have access to Wind Strike. At Level 3 you'll gain Confuse. At level 11 you gain Weaken and finally at level 19 we'll have Curse, which we'll use until 33.
Our Intended Spell Usage:
1-3 Wind Strike | 1 Air 1 Mind per Cast
3-11 Confuse | 1 Body 2 Earth 3 Water per Cast
11-19 Weaken | 1 Body 2 Earth 3 Water per Cast
19-33 Curse | 1 Body 2 Water 3 Earth per Cast
Now that we've planned our Spell Casting route, we need to calculate how many runes we'll need to get to our desired levels!
Searching up any old xp calculator for OSRS should do the trick.
So we'll need 32 Air and 32 Mind Runes to get to level 3
For 3-11 we'll need 92 Body, 184 Earth, and 276 Water Runes using confuse
11-19: 125 Body, 250 Earth, and 375 Water Runes
19-33: 493 Body, 986 Water, and 1479 Earth Runes
Total Runes for 1-33:
32 Air Runes
32 Mind Runes
710 Body Runes
1913 Earth Runes
1637 Water Runes
Where to Splash:
Where we choose to splash will also decide where to keep our mule. I'll demonstrate how all of this planning ties together in a flowchart at the end. But where shall we splash?
Lumbridge is insanely crowded on F2P which are the type of accounts I'll be using to get level 33.
Draynor isn't too far but can result in some problems if the Dark Wizards wander too far.
Varrock is rather far but once past the Dark Wizards we have numerous NPCs to attack.
I like the idea of Varrock the best so we'll route ourselves there.
Flowchart:
This is where we combine all our goals and ideas to construct the script! The resulting flowchart I've created from this may differ from yours depending on what you find most important for the bot to do first!
Note: This isn't a final flowchart. It's laying the groundwork.
Immediate Issues with this Flowchart:
What if the mule doesn't have materials?
What if the bot can't hold the items?
What qualifies as "materials?" Can air runes be depleted and the script continue?
This is just an example. It's not fully done but it gives you a better idea on how to plan your script.
Always ask yourself about the "what ifs"
Thanks for reading, I hope you learned something and good luck in staying organized. The planning stage decides how well your final script will look.
Resources:
draw.io
zybez osrs magic calculator