This is a feature build into Runescape itself. Is this a feature for when you receive a PM and the script is running? Not sure if I understand correctly, I looked in the Guide to Dreambot Client Tutorial and didn't see any mention of this, I don't really have any in game friends to PM, but I'd love if there was an option to bring up the regular game chat while the script is running, even if it does pause the script (would be human-like)
Create a new class called "Util" (without quotes).Ĭopy paste the below code into the Util class." Some people might ask "how do you have conversations with friends while you're botting? Won't you have to stop the bot every time you want to reply to a PM?" No - find someone you enjoy talking with and once they reply, all you have to do to prompt the chat is hit tab. Create a new package called "utility" (without quotes). The below images are a result of the above steps:įor this part of the tutorial, we will be creating a socket class and a Utilities class.
Specify the main class (without quotes): "eos.BootLoader".Ĭhange the name of the Artifact to "Eos" (without quotes).
Hit the plus sign and choose Jar -> From Modules With Dependencies. In our case, we want our boot loader to run first! Then the boot loader will run main on a separate JVM and then die off, leaving only the Main JVM running.Ĭlick the file menu -> Project Structure. This allows us to override internal classes without using command line and keeps our jar double-clickable.Ī manifest is the part of the jar file configuration that tells the JVM what classes to run when the jar is double clicked or ran without explicit main arguments. The above code creates a JVM, runs your application with "XBootClassPath/p:" commands and arguments the original JVM dies off leaving the bot JVM running. Public static void main(String args) throws IOException ) Private static final String BOOT_FLAGS = "-Xbootclasspath/p:"
Paste the following code for the boot loader. We don't want to have to input command line arguments using cmd/terminal in order to run it every time. We need this because we want our bot to be double-clickable (double click the jar and it runs). Specify the following VM Options (if you do not know where your Jar is located, look at your Working Directory on the same screen): -Xbootclasspath/p:"/Users/YourUserNameHere/Desktop/BotTutorial/out/artifacts/Eos/Eos.jar"įor those of you that do not know what a boot loader is, it is a set of instructions/code that is ran before the actual application's main gets run. Specify your main class (without quotes): "eos.Main". Give your configuration a name (without quotes): "Main". Hit the plus sign at the top left corner of your IDE. Hit New -> Class.Ī configuration is a script in Intelli-J that tells it which class is the main class (which class should be ran first).Ĭlick the button with the arrow pointing DOWN at the top right of your IDE. Name your package (without quotes): "java.awt". Name your package (without quote): "eos". The below images are the results of the above steps: Give your project a name (Ex: BotTutorial). You can use whatever IDE you like but for the sake of this tutorial and boot loaders, I recommend IntelliJ. This IDE is IntelliJ (Community Edition) which can be downloaded here: I downloaded and chose a simple IDE with a simple and easy to use interface. Various Programming Patterns: Subclassing, Observer Pattern, BootLoading, Multi-Casting/Chaining, Singleton.įor this tutorial, I will not be using command-line. Drawing using our PaintListener/PaintObserver. Overriding the Canvas & Creating a PaintListener.ġ0. Creating the Frame/Implementing the Client.ĩ.