I was browsing the forum and came across this post.. I must say that this code is exactly the same one as the one in the Way of The Mafia script (the functions page), that script also updates bullet factories every hour and uses the same code to do so. Of course, there is nothing wrong with using code from other scripts if allowed, was just curious..