![]() |
#1
|
||||
|
||||
![]()
Possible? To breed more than one baby?
|
#2
|
||||
|
||||
![]()
want, want, want. This would be pretty darn cool.
__________________
|
#3
|
||||
|
||||
![]()
I would love this as well.. o3o I hope it's possible.
|
#4
|
||||
|
||||
![]()
Welllll.... I could always take a look at it myself then since you guys are interested. I'm just sooooo busy >.> Maybe I can just post my thoughts and hopefully get some help with it. *Stares at Hoffie*
|
#5
|
||||
|
||||
![]()
I think this question was asked before when breeding first became available for Mys v1.2.0. The trick is here from breeding.php:
PHP Code:
PHP Code:
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#6
|
||||
|
||||
![]()
Ok it told me my dragons had 4 babies... but I only got two eggs?
Here's what I have....Also can I show the images of each new baby? I know how to show one but not the others? Code:
else { $num = mt_rand(1, 5); for($i = 0;$i<$num;$i++){ // we choose the type! $types = array($female->type, $male->type); $typerand = rand(0,1); // we choose the gender $tempgender = rand(0, 99); if($tempgender < $row->genderratio) { $gender = "f"; $alts = "yes"; unset($tempgender); } else { $gender = "m"; $alts = "no"; unset($tempgender); } $salt = passgenerator(10, 0); $aid = passgenerator(5, 0); $code = codegen(10, 0); $time = time(); $bredtemp = rand(0,100); if($bredtemp <= "50"){ $article_content = "<center> <img src='http://taleofdragons.net/get/".$maleid.".gif'><br> <img src='http://taleofdragons.net/get/".$femaleid.".gif'><br> These two don't seem very interested in each other right now. Try again in a week."; } else{ $adopts->insert("owned_adoptables", array("aid" => $aid, "type" => $types[$typerand], "name" => $aid, "owner" => $loggedinname, "currentlevel" => 0, "totalclicks" => 0, "code" => $code, "imageurl" => NULL, "usealternates" => $alts, "tradestatus" => 'notfortrade', "isfrozen" => 'no', "gender" => $gender, "lastbred" => 0, "date" => $date, "father" => $maleid, "mother" => $femaleid)); } // the end of for loop $article_content = " <center> <img src='http://taleofdragons.net/get/".$maleid.".gif'><br> <img src='http://taleofdragons.net/get/".$femaleid.".gif'></center><br>".$imageurl."Congratulations! Breeding is successful, you have acquired {$num} babies from breeding!<br> <a href='myadopts.php?act=stats&id=".$aid."'><img src='http://taleofdragons.net/get/".$aid.".gif'></a></p>"; } $adopts->update("owned_adoptables", array("lastbred" => $time), "aid = '{$femaleid}'"); $adopts->update("owned_adoptables", array("lastbred" => $time), "aid = '{$maleid}'"); } // we end the place where it goes on if the levels are ok } //this bracket ends the else where we find the male/female id's } Last edited by SilverDragonTears; 04-24-2012 at 08:17 PM. |
#7
|
||||
|
||||
![]()
This is weird... Lets troubleshoot by editing this line:
PHP Code:
PHP Code:
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#8
|
||||
|
||||
![]()
Nope no error...but said I had 3 babies but looked in my lair and I have none. I posted my script in my last post. Bred again and said I had 3 eggs but only 1 in my lair.
|
#9
|
||||
|
||||
![]()
Maybe it has something to do with the types? Like maybe the ones I can't see are the other types?
|
#10
|
||||
|
||||
![]()
Well I see, looks like it is because of the way you modify your code. XD You only get 0 or 1 baby from the last two tries because you have this 'breeding chance' settings. Here:
PHP Code:
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Create Breed adopt Question | Phoeniix | Questions and Supports | 4 | 02-04-2015 01:28 AM |
Question: How to breed with Males of other Players | Missy Master | Questions and Supports | 2 | 04-05-2013 03:40 PM |
Multiple Outcomes | Abronsyth | Questions and Supports | 11 | 05-17-2012 04:15 PM |
Breed Only Adopt | SilverDragonTears | Questions and Supports | 3 | 10-05-2011 02:35 PM |
Multiple multiple outcomes..? | Quillink | Suggestions and Feature Requests | 5 | 05-31-2009 07:14 AM |
What's New? |
What's Hot? |
What's Popular? |