I explain everything in the thread. The shiny generator code I can't compile because it requires a pointer change first. You need to adjust it, then compile.
1) You need to call the script executor routine on the script. Then you can call that routine in the minute routine to have your script run every minute.
That comes with experience. I also had this problem when I started. You should try with simple things and then move on to harder things. I also recommend downloading Knizz's database. The thing is beyond useful.