View Single Post
  #2  
Old 12-22-2015, 05:51 PM
Distortion's Avatar
Distortion Distortion is offline
Member
 
Join Date: Dec 2015
Location: Somewhere beyond the sea
Posts: 31
Gender: Female
Credits: 5,111
Distortion is on a distinguished road
Default

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.
__________________
Reply With Quote