It's rather complex... No one is going to be able write this for you on answers. You'll have to have a lot of experience before you can attempt something like this.
I'm unaware of any scripts that do what you want so either search around for a script that does or read some tutorials and get programming! We can help you with any issues you have when writing it but we can't write it for you.
↧