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)
-   -   Limit Adopted Eggs (http://www.mysidiaadoptables.com/forum/showthread.php?t=1854)

fadillzzz 01-31-2011 08:51 AM

Quote:

Originally Posted by DragonTamerChris (Post 14091)
Maybe a code that makes people have to also wait a certain amount of time before their adopt can become an egg/hatchling/adult?

I'm working on it...
Wish me luck!

Missy Master 01-31-2011 08:57 AM

maybe?? checking that out too! :)



http://www.php.net/manual/en/function.sleep.php

fadillzzz 01-31-2011 08:03 PM

Quote:

Originally Posted by Annatar (Post 14110)
maybe?? checking that out too! :)



http://www.php.net/manual/en/function.sleep.php

No, that won't do..
the sleep function will delay the execution of a PHP script which means the page will took more time to load making your site looks really slow

PokePets 02-10-2011 10:34 AM

Question; where to place this in your doadopt when i use this mod =S?
http://mysidiaadoptables.com/forum/s...ead.php?t=1783

RoconzaArt 02-11-2011 04:59 PM

I'd like to know as well.

PokePets 02-13-2011 02:41 AM

I've send him a PM...

fadillzzz 02-13-2011 11:09 PM

Quote:

Originally Posted by RoconzaArt (Post 14499)
I'd like to know as well.

I don't see why it's hard to install this mod if you have the 'Secure Random Adoption' mod installed. I've looked at Pokepets's .php file and I can easily find where to place the necessary code to install this mod.

All you have to do is just find this code in doadopt.php & doadoptab.php

PHP Code:

if($aid == "" or !is_numeric($aid)){

$article_title $err_idnoexist;
$article_content $err_idnoexist_text;



Below that, add this code
PHP Code:

$result mysql_query("SELECT * FROM ".$prefix."owned_adoptables WHERE owner='".$loggedinname."' AND currentlevel='0'");
$num mysql_num_rows($result);

if(
$num >= 5){
$canadopt "no";
$article_title "Too many eggs!";
$article_content "You already have too many eggs!";


Send me a PM if you're still having some problems to install this mod. I'll be gladly to help you out. :happyc:

Slix 04-03-2011 06:37 PM

Thanks for this mod! I added it to the breeding page as well.


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

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