Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 12-15-2011, 02:55 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 111,634
SilverDragonTears is on a distinguished road
Default Produce Certain adopt...

So I've coded this so that it will produce a certain offspring from two adopts. It works... but sometimes it says "Congrats. Blah blah... You've produced a baby 1"

The baby 1 is when it doesn't get a type for the adoptable. It only does this sometimes but more often than not it works. Can anyone see why it would produce a 1?

PHP Code:
            // we choose the type!

            
if ($female_type == 'Autumn Silvfox' && $male_type == 'Autumn Silvfox'){
            
$female_type 'Autumn Silvfox' && $male_type 'Autumn Silvfox';
            
$types = array($female_type$male_type);
            
$typerand rand(0,1); }
            if (
$female_type == 'White Stitch Silvfox Beta' && $male_type == 'White Stitch Silvfox Beta'){
            
$female_type 'White Stitch Silvfox' && $male_type 'White Stitch Silvfox';
            
$types = array($female_type$male_type);
            
$typerand rand(0,1); }
            if (
$female_type == 'Red Stitch Silvfox Beta' && $male_type == 'Red Stitch Silvfox Beta'){
            
$female_type 'Red Stitch Silvfox' && $male_type 'Red Stitch Silvfox';
            
$typerand rand(0,1); }
            if (
$female_type == 'Noctis Silvfox Beta' && $male_type == 'Noctis Silvfox Beta'){
            
$female_type 'Noctis Silvfox' && $male_type 'Noctis Silvfox';
            
$typerand rand(0,1); }
            
$types = array($female_type$male_type);
            
$typerand rand(0,1); 
__________________

Check out SilvaTales
Reply With Quote
  #2  
Old 12-18-2011, 01:55 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 111,634
SilverDragonTears is on a distinguished road
Default

HoF can you take a look at this for me? *puppy dog eyes*
__________________

Check out SilvaTales
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adopt pages, and general adopt/index page :L blondbananamix Questions and Supports 26 07-22-2011 12:12 PM
2 - column on Adopt page and my Adopt page? SieghartZeke Questions and Supports 2 10-12-2009 02:58 PM


All times are GMT -5. The time now is 07:37 PM.

Currently Active Users: 2663 (0 members and 2663 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636