Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Breeding question (http://www.mysidiaadoptables.com/forum/showthread.php?t=4056)

demoness 03-15-2013 05:40 AM

Breeding question
 
Why I can breed pets only with one male from all my pets? :hmmm: They all have same type but I can choose for breeding only one male -_-

Hall of Famer 03-15-2013 06:02 AM

Well this is not possible at this point, you need a male and a female. It will need a bit of code revision to achieve asexual reproduction.

demoness 03-15-2013 06:07 AM

No, I mean different thing xD I say that in breeding section I can choose all of my females but from males is available only the newest one :displeased:

Hall of Famer 03-15-2013 06:12 AM

Oh I see, sorry. Your adoptables need to be at or above the required breeding level, so chances are your other male pets do not meet this criteria. Also if you have already bred an adoptable, it wont be available for further reproduction until a certain amount of time elapses.

demoness 03-15-2013 06:35 AM

Hm.. All adoptables is able to breed, I checked it twice) Maybe something wrong in code?

PHP Code:


   
// First let's show available female adoptables
   
$stmt $mysidia->db->select("owned_adoptables", array(), "owner = '{$mysidia->user->username}' AND gender = 'f' AND currentlevel >= {$mysidia->settings->breedinglevel} AND lastbred <= '{$lastweek}'");
   if(
$stmt->rowcount() == 0$mysidia->page->addcontent($lang->female);
   else{     
      
$femaleform "<p>Female: <select name='female'>";
      while(
$row $stmt->fetchObject()) {
         
$femaleform .= "<option value='{$row->aid}'>{$row->name} ({$row->type})</option>";
      }
      
$femaleform .= "</select></p>";
      
$mysidia->page->addcontent($femaleform);
   }
   
   
// Then show available male adoptables
   
$row $mysidia->db->select("owned_adoptables", array(), "owner = '{$mysidia->user->username}' AND gender = 'm' AND currentlevel >= {$mysidia->settings->breedinglevel} AND lastbred <= '{$lastweek}'")->fetchObject();
   if(!
is_object($row)) $mysidia->page->addcontent($lang->male);
   else{
      
$maleform "<p>Male: <select name='male'>
                  <option value='
{$row->aid}'>{$row->name} ({$row->type})</option>";                  
      while (
$row $stmt->fetchObject()) {
         
$maleform .= "<option value='{$row->aid}'>{$row->name} ({$row->type})</option>";
      }
      
$maleform .= "</select></p>";
      
$mysidia->page->addcontent($maleform);
   } 


Hall of Famer 03-15-2013 06:38 AM

Nope theres nothing wrong with the code, especially if you have just installed a fresh copy. What is your minimum breeding level for adoptables? Did you check carefully that your other male adoptables are indeed capable of breeding?

demoness 03-15-2013 09:32 AM

Minimal level for breeding is 1(

For example I have 3 pets: 1 female and 2 males, all have same type, all have 1 level.

http://i.imgur.com/weNx343.jpg

But for breeding available only 1 male:

http://i.imgur.com/PQsvGz8.jpg

I don't even know what to check more -_-

Hall of Famer 03-15-2013 10:05 AM

umm this is weird, and you are sure that you have not bred Miami before? You can check this by going to database table prefix.owned_adoptables. Use phpmyadmin to check the last column 'lastbred', if there is a nonzero value for Miami you may have bred him before so you have to wait.

Kamalya 03-15-2013 11:02 AM

If the "type" is different then they cant breed also, like a rat type and a cat type can not breed.

demoness 03-15-2013 12:54 PM

There are 0 and type is same :littlecfrown: oh, Ill try to reinstall xD


All times are GMT -5. The time now is 07:57 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.