Powerbot has many guides on how to add scripts, it's very easy to, basically get the code, and save it the same as the public class (i think) and end the name in ".JAVA", i havent done it for a while, due to playing on my main. but if you search on powerbot you will find a guide quickly.