1. copy the script into a notepad file and save it as a something.java and save it in the scripts folder of the rsbot.
2. make another notepad file copy and paste the script into it and save it as a something.class then save it in the folder where the rsbot is located.
3. go to the folder with the rsbot and open the file called compile.bat or compileall.bat forgot exactly, then wait for that to finish.
4. close and re-open the rs bot, click bot - run script - and whatever u called the script.