RE, "repeat patrol bug". I developed a workaround a few weeks ago. So, in the intrests of being neighborly, and my dislike to see someone try and reinvent the wheel, heres the gist on how missions work:
http://www.subsim.com/radioroom/show...7&postcount=40
A less "gamey" standalone here:
http://www.subsim.com/radioroom/showthread.php?t=113739
Feel free to use that as a template for your own uses if you want. Hopefully ubi fixes it, if not, this extended format works quite well.