Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Mys v1.1.x Mods (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=20)
-   -   Breeding System - Complete! (http://www.mysidiaadoptables.com/forum/showthread.php?t=1156)

Arianna 01-22-2010 01:36 PM

RE: Breeding System - Complete!
 
Quote:

Originally Posted by mapleblade
maybe ill make in the future a nod on this mod to let the eggs breed once, im not sre if its gonna succeed but ill maybe gonna try :D

I have no idea what you mean.

Roconza, I guess you could. I don't have time to make it, maybe you can get someone else to try for you.

Seapyramid 01-23-2010 12:16 AM

RE: Breeding System - Complete!
 
Quote:

Originally Posted by Roconza
Ok, here is a question that has to do with the above asked question:

Can I in theory make a "group" if you will as a new attribute like "gender" or "species" and tell the script instead of species the parents from this "group" can breed despite species and produce a egg that's a random choice of the one of the parents species?

I want to try this out it should work in theory but my php skill are very limited.

basically you would have to make a new table with say 1-10 being possible for 1xb breeding ... 11-20 being possible for yxz breeding.. then set up limits on a random for each breeding pair possible... thne set those randoms to the ids in the table.. then when a randon is right have it insert into the owned_adoptables table...


Have Fun :)

Quillink 01-29-2010 12:26 PM

RE: Breeding System - Complete!
 
Quote:

Originally Posted by Seapyramid
Quote:

Originally Posted by Roconza
Ok, here is a question that has to do with the above asked question:

Can I in theory make a "group" if you will as a new attribute like "gender" or "species" and tell the script instead of species the parents from this "group" can breed despite species and produce a egg that's a random choice of the one of the parents species?

I want to try this out it should work in theory but my php skill are very limited.

basically you would have to make a new table with say 1-10 being possible for 1xb breeding ... 11-20 being possible for yxz breeding.. then set up limits on a random for each breeding pair possible... thne set those randoms to the ids in the table.. then when a randon is right have it insert into the owned_adoptables table...


Have Fun :)

Wouldn't adding a "group" column to the owned_adoptable table and a random number generator in the breeding script work just as well?

E.g.
  • if ($dadgroup == $momgroup){

    $pickspecies = rand(1,2);
    if $pickspecies = 1 { $babyspecies = $dadspecies }
    else { $babyspecies = $momspecies }

    }
    else{
    return die("What were you thinking?? A walrus and a DUCK??")
    }


Btw, do NOT copy/paste this. This is NOT real php, just an example. :P
Real php syntax would take me a lot longer to write - time I don't like to use at 2:30am. :S

Szymon 02-06-2010 02:22 PM

RE: Breeding System - Complete!
 
can anybody re-upload? please i've got problem with breeding.php and funstions.php :|

SieghartZeke 03-30-2010 06:42 AM

RE: Breeding System - Complete!
 
Why when i do the breeding,a nd i go to manage i dont show the new pet???

Missy Master 05-17-2010 10:02 AM

RE: Breeding System - Complete!
 
I'd like to do something where there is like a 2 day "pregnancy" that happens before the new egg goes to the hatchery.

I think its a matter of applying a timing to this, but I am not sure how to do it--- and everything I have read is making it more confusing for me.

So basically, the result would be the egg/baby still, but only after a certain time frame, and not instantly!

Possibly the pregnant pets would have a special designation too, or whatever, so you could mark them.

thanks for the help, I have an idea how to do it, just adding timing, but not sure at all how to do it.

PokePets 07-26-2010 09:57 AM

RE: Breeding System - Complete!
 
There is missing a part of the code.
Enter this;
PHP Code:

mysql_query("INSERT INTO ".$prefix."owned_adoptables VALUES ('', '$type', '$name','$loggedinname','0','0', '$code', '','$alts','notfortrade','no','$gender')"); 

After this;
PHP Code:

// Now we actually process the adoption and add it to the database...
// We need a unique code for the adoptable so we can show it to the user when we're done here...

$code rand(120000); 

;)
So works it fine for me.

myadopts 08-06-2010 11:45 AM

RE: Breeding System - Complete!
 
sorry...i have a question.....How do you make a pet male or female...or do you just fake it..or not add it?

PokePets 08-06-2010 12:18 PM

RE: Breeding System - Complete!
 
It's. set automatic.
Look at the post of tommyk1210;
http://www.rusnakweb.com/forum/showthread.php?tid=1367&highlight=gender

or do you mean that some adoptable only can be male/female/ etc. ?

myadopts 08-07-2010 09:21 AM

RE: Breeding System - Complete!
 
oh..ill insert the code I get it know thanks:D ill give credit if i use it


All times are GMT -5. The time now is 01:10 AM.

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