Script

Script (sometimes called code or bot) for Runedev is a class file that the bot client will need to run a specific bot. Scripts are loaded from scripts subfolder that is in folder named "Runedev" at your documents directory.

Adding a script
thumb|300px|right

To add a script you must have Java file of the script and JDK. If you dont have Java file but you have the code then start with step 1.

Step 1: Saving script as java file


 * Copy the script to notepad.


 * Click "Save as..." option in "File" menu.


 * Navigate to Runedev scripts directory


 * Change "Save as type" to "All files".


 * Change name to the save as name that should be written in script's thread and add .java to end (if there isn't one already).


 * Click save.

Step 2: Compiling script(s)


 * Go to the Runedev directory in your documents


 * Open "Compile-Scripts.bat"


 * Wait for "Press any key to continue . . ." message. If that comes with anything (except "Looking for JDK", "Compiling scripts" or something that starts with "Note:") before, go to Step 3. Otherwise you have successfully compiled your script(s)

Step 3: Dealing with errors


 * If message contains "JDK is not installed, please download and install it from http://java.sun.com/javase/downloads" then go to that URL and download JDK


 * If message or any of them contains "... is public, should be declared in a file named ... .java" then go back to step 1 but open the script's file (with notepad) from the scripts folder and don't copy the new code into notepad. Then save it as the message said (the filename after "Should be declared in a file named")


 * If message contains some other error, just try replacing the code (in the scripts folder). If that doesn't work the script is just buggy and doesn't work for anyone so please don't spam post for help

Scripting
Scripting means making a Script.