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 04-26-2012, 06:37 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 118,807
SilverDragonTears is on a distinguished road
Default

Quote:
Originally Posted by Hall of Famer View Post
You can also do database integration by creating a new field in table prefix.adoptables that stores the number of babies a specific species can produce. It can get quite tricky for interspecies breeding though, so I do not recommend it at this moment.
I know you aren't feeling well but I need this. I need to keep the rares and ultra rares from breeding more than 1 at a time.
I figured out a difficult and probably source consuming way....
Code:
 
        else{


        if ($female->type == 'Cake Dragon') $num = mt_rand(0, 1);
        else if ($female->type == 'Sun-up Dragon') $num = mt_rand(0, 1);
        else if ($female->type == 'Sundown Dragon') $num = mt_rand(0, 1);
        else if ($female->type == 'Bastet Dragon') $num = mt_rand(0, 1);
        else if ($male->type == 'Cake Dragon') $num = mt_rand(0, 1);
        else if ($male->type == 'Sun-up Dragon') $num = mt_rand(0, 1);
        else if ($male->type == 'Sundown Dragon') $num = mt_rand(0, 1);
        else if ($male->type == 'Bastet Dragon') $num = mt_rand(0, 1);
        else if ($female->type == 'Aqua Dragon') $num = mt_rand(0, 4);
        else if ($female->type == 'Cow Amphiptere Dragon') $num = mt_rand(0, 4);
        else if ($male->type == 'Aqua Dragon') $num = mt_rand(0, 4);
        else if ($male->type == 'Cow Amphiptere Dragon') $num = mt_rand(0, 4);
        else $num = mt_rand(0, 5);
        for($i = 0;$i<$num;$i++){
I wanted to just use the rarity variable that is in the adoptables table but I wasn't sure how to call it?
__________________

Check out SilvaTales

Last edited by SilverDragonTears; 04-26-2012 at 07:35 PM.
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
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


All times are GMT -5. The time now is 05:10 PM.

Currently Active Users: 3656 (0 members and 3656 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