Hey, glad it's working for someone other than me! Ok, so it's the total runes.. Basically the trick or treat runes are randomly picked between 3 and whatever your end rune is, so 3-16 with a full book (setting the variable to 16).
I know rune #1 isn't really used in the script.. that's my home rune in my book

I'm thinking mobiles IDs must reset (or more likely, the whole mobile) after server restart, which means the persistent variable I'm using to store those will just grow and grow and grow. Hmm, I'll have to add a time check or something to prune that the first time you run after a server restart.
I've put out v1.1 update.. to grab the time you run the script and try to figure out if the last time you've ran it was before the server restart. If so, it will prune the SYNTOT<charID> registry key, so that doesn't just grow and grow and grow!