Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.1.x Mods

Notices

Reply
 
Thread Tools Display Modes
  #61  
Old 08-08-2010, 02:33 PM
redheadturkey redheadturkey is offline
Senior Member
 
Join Date: Jan 2010
Posts: 136
Gender: Female
Credits: 10,209
redheadturkey is on a distinguished road
Default RE: Breeding System - Complete!

anyone have any ideas on how to do a delay of the actual birth? like how to write the timing for it?

thanks!
Reply With Quote
  #62  
Old 08-09-2010, 09:49 AM
heyeeyhe heyeeyhe is offline
Member
 
Join Date: May 2010
Posts: 1
Credits: 130
heyeeyhe
Default RE: Breeding System - Complete!

I think theres a part of the code that shows that... im trying to work on making a script with pet stats like on foopets:D
Reply With Quote
  #63  
Old 08-09-2010, 10:38 PM
MikiHeart's Avatar
MikiHeart MikiHeart is offline
Premium Member
 
Join Date: Apr 2009
Posts: 187
Gender: Female
Credits: 20,601
MikiHeart
Default RE: Breeding System - Complete!

redheadturkey:
To do that, you would have to look into timing.
It would depend on how you want it done.
But I would suggest a countdown on the breeding page.
Then after that time, the user can get the pet.

Just thinking on it a little, I think you would have to have the pet created instantly like the script does.
But then have it so the pet isn't given to them, but the system.
So you make a clone of the owned_adoptables. but called it something like bred_adoptables.
You would have to add some extra fields, like who it belongs to and stuff.
Then say, since it has a date on it. You'd need to have a script that checks that date, and compares it to today's date. Then if the right time has passed, it gives the adopable to right owner. Then updates the 'created date' to the date of the day you're getting it.

Sounds really hard XD but I'm just bad at explaining things. I don't understand php with dates too much. But I'm sure you can do it.
You'd need to set up a cron, and have it run like once a day. Which will do all this work for you XD

Or, you could just have a countdown on the page, then once the countdown is over, it displays a button in which the user clicks, and it gives them their pet XD No need for cron then o-o
Reply With Quote
  #64  
Old 09-11-2010, 09:00 AM
Raikalynx Raikalynx is offline
Member
 
Join Date: Sep 2010
Posts: 4
Credits: 791
Raikalynx
Default RE: Breeding System - Complete!

..I've tried several solutions suggested in this thread, and I just can't get the script to enter the new egg into the mysql database.

It works fine otherwise, and it's a really cool script!

..I'll go learn some PHP now, I hate not knowing anything about this XD
__________________
Reply With Quote
  #65  
Old 09-11-2010, 10:01 AM
PokePets PokePets is offline
Premium Member
 
Join Date: Jun 2010
Posts: 228
Gender: Male
Credits: 19,341
PokePets
Default RE: Breeding System - Complete!

Look;
Quote:
Originally Posted by PokePets
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.


;)
Reply With Quote
  #66  
Old 09-11-2010, 10:05 AM
Raikalynx Raikalynx is offline
Member
 
Join Date: Sep 2010
Posts: 4
Credits: 791
Raikalynx
Default RE: Breeding System - Complete!

Thanks, but that's one of the solutions I tried..
the breeding now works correctly, the egg is being transferred into my adopts, but it keeps displaying the query on the new egg page and I can't get rid of it..

..just a minor nuisance me and future users will just have to live with, I guess..
__________________
Reply With Quote
  #67  
Old 09-23-2010, 11:21 PM
Wrim Wrim is offline
Member
 
Join Date: Apr 2010
Posts: 11
Credits: 1,705
Wrim
Default RE: Breeding System - Complete!

Awesome script!

2 questions though.

The first inquiry is just a small bug, but I thought I'd ask. If I try to mate without having a second gender I get error-messages. Is there some way to block this by adding a "No male/female co-breeder available" message or something like that in the textbox?

Secondly, the new-born are born without names. It's really not a problem, I was just wondering if there's a way to put a placeholder name like 'Newborn' or something so it doesn't just say "Get stats for" and "Get BBCodes / HTML Codes for" in the pet management section.

That's all. Thanks for all the walkthroughs and all the help.
Reply With Quote
  #68  
Old 09-24-2010, 12:46 PM
vexel vexel is offline
Member
 
Join Date: Aug 2010
Posts: 23
Credits: 2,581
vexel
Default RE: Breeding System - Complete!

The born name is - "Daughter of (mpther name) & (father name).
But if you haven't got gender system it doesn't work ;D
Reply With Quote
  #69  
Old 09-24-2010, 12:58 PM
Wrim Wrim is offline
Member
 
Join Date: Apr 2010
Posts: 11
Credits: 1,705
Wrim
Default RE: Breeding System - Complete!

My mistake, used an old pet to breed, hence the no-name error. I did install the gender-system but I didn't change the old pets genders.
Reply With Quote
  #70  
Old 09-28-2010, 05:52 PM
myadopts myadopts is offline
Member
 
Join Date: Aug 2010
Posts: 6
Credits: 427
myadopts
Default RE: Breeding System - Complete!

Link to one I made.. It has some problems but, a look of how it looks. file:///C:/Users/admin/documents/my%20web%20sites/breeding%20test.php
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
Installation Complete: Site is Completely Blank? Bhavani Questions and Supports 3 09-14-2014 06:43 PM
a more advanced breeding system needed maximillion Questions and Supports 11 06-28-2011 02:37 PM
Help me with the breeding system of Arianna Sensacionsk8 Questions and Supports 2 03-21-2011 11:54 AM
Breeding System Steelghost600 Questions and Supports 4 10-25-2009 02:38 PM
How to make a breeding System? SieghartZeke Questions and Supports 23 10-19-2009 06:11 PM


All times are GMT -5. The time now is 09:19 AM.

Currently Active Users: 9674 (0 members and 9674 guests)
Threads: 4,080, Posts: 32,024, 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 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636