Please first tackle down the basics of Java before taking a look at OSBot scripting. It'll really help you out if you first have some basic knowledge of Java Try looking into Java Head First Books, I believe you can download those somewhere.
Once you've got familiar with Java, take a look at the OSBot Scripting Tutorials Section