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 05-04-2012, 09:15 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,412
SilverDragonTears is on a distinguished road
Default Limiting number of eggs and hatchlings

Currently I have this which says if you have more than 5 eggs you can't adopt.

Code:
$stmt = $adopts->query("SELECT * FROM ".constant("PREFIX")."owned_adoptables WHERE owner='".$loggedinname."' AND currentlevel<='3' AND isfrozen='no'");
$data = $stmt->fetchAll();
$num = count($data);

if($num >= 5){ 
$canadopt = "no"; 
$article_title = "Too many eggs!"; $article_content = "You already have too many eggs to take care of! Come back once you have hatched an egg!"; 
}
How can I change this so that you can't have more than 5 eggs AND say... 10 hatchilings at a time?
__________________

Check out SilvaTales
Reply With Quote
  #2  
Old 05-05-2012, 08:44 AM
Kesstryl's Avatar
Kesstryl Kesstryl is offline
Member
 
Join Date: Feb 2012
Posts: 125
Gender: Female
Credits: 17,394
Kesstryl is on a distinguished road
Default

this is brilliant, which program did you insert this code to, and what line? I'd be happy with just the limiting eggs.
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
Number of Pet Colors? Glow Feedback and Suggestions 4 12-12-2014 08:27 PM
Number of times the user can adopt the pet? Clessidra Questions and Supports 4 06-16-2013 09:23 PM
Limting Number of Adoptions GuardiansWish Questions and Supports 6 10-15-2012 05:56 PM
Level Up automaticly when it get a number of clicks? Blues Questions and Supports 1 07-26-2009 09:08 AM
Freezing and limiting adoptables Seapyramid Questions and Supports 13 04-19-2009 05:06 PM


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

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