You have tons available at powerbot's site and other sites. Making your own script honestly isn't worth it if you're serious about not getting banned.
If you're really up to it though, you've gotta decide what you want to make; scar/rsbot scripts. At any rate you'll need some java knowledge.