It's currently set to randomly spawn one of the 4 pets before they get monster summoning and then random one of the 5 pets. The code says 3 and 4 cuz it's 0-3 and 0-4. This matches up with the
Bot Spell Lists for Mages. Level 2-4 have a little difficulty, but they figure it out pretty quick.
It you want to customize your server for a specific pet, theres a few ways you could go.
No c++ changes.
You could change the pet entries in the sql file so there are four or five water or air pets or a mix of the two types to random from. This would require you to edit the sql file to match those selections.
C++ changes.
You could change the random number to 1 (0-1) and then delete from the sql all the non air and water, and monster summoning pets.
No changes by you.
This sounds like a feature request. I'm thinking if you don't like the pet they summoned randomly, you target your mage bot and type the command #bot magepet [earth|water|air|fire|monster]