Various links to implementing AI:
I have not been active in Second Life for sometime. Although I'm currently back, my interests have moved on and I will not be finishing the flying pet tutorial.
However, I have made a version of my flying pet available for free at http://slurl.com/secondlife/olivia/17/95/21/
. The pet moves, stays near its owner and has a couple of random actions. The code is open and free for you to use as you want. You may use the code in your own commercial products, but may not sell the flying pet as it stands. Look for the blue box.
Implementing in Second Life
Using separate child objects.