I'm not trying to be mean here but this script doesn't show you have progressed. Try to work on adding new features. Check if you have runes inventory, else stop();
Check if magic tab is open. Maybe add some l33t antiban by checking WC xp
Add different spells with GUI or make it recognize what area you're in and do it accordingly.
Idk just do something to help you learn.
Copy and pasting one line of code from the API does not benefit you .