PHP Code:
$number = 3; /* You want users to have no more than THIS ($number) many pets with...*/
$level = 5; /* ...a level less than or equal to THIS ($level) number! */
$petsAtLevel = $mysidia->db->select("owned_adoptables", array(), "owner = '{$mysidia->user->username}' AND currentlevel <= $level")->rowCount();
if ($petsAtLevel > $number){ /* If the number of pets at this level is greater than number... */
$document->setTitle("Too Many Nibi");
$document->add(new Comment("You have too many nibi that are still forming. Come back when one has already formed.", FALSE));
}
else { /* Else show existing things... */
........
I've only tested this for the adoptview file, but I do not know about explore, shop, and promo adopts.