View Single Post
  #9  
Old 07-18-2020, 09:00 AM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 113,998
Abronsyth is on a distinguished road
Default

To show other males you just edit line 72 in breeding.php to this:
PHP Code:
$stmt $mysidia->db->select("owned_adoptables", array("name""aid"), "gender = 'm' AND currentlevel >= {$settings->level} AND lastbred <= '{$lasttime}'"); 
(I'd personally like to add a section for whether the pet is up for stud or not that's null for female pets automatically, and yes or no for males...)

Then I went into class_breedingvalidator.php and changed private function checkOwner to this:
PHP Code:
private function checkOwner(){
        
$mysidia Registry::get("mysidia");
        if(
$this->female->getOwner() != $mysidia->user->username){
            
banuser($mysidia->user->username);
            throw new 
BreedingException("owner");
        }
        return 
TRUE;
    } 
(removed the part where it does this for males, but left where it checks owner of female)

Now I have no idea if this will work or not because I don't have any other accounts on my test site right now, but you can check it if you want?
Reply With Quote