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
  #1  
Old 01-29-2011, 11:30 PM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 37,699
fadillzzz is an unknown quantity at this point
Default Limit Adopted Eggs

This mod will limit how many eggs the users can have before they can adopt more adoptables.

Open your doadopt.php
find this code
PHP Code:
if($aid == "" or !is_numeric($aid)){

$article_title $err_idnoexist;
$article_content $err_idnoexist_text;


Add below
PHP Code:
$query "SELECT * FROM ".$prefix."owned_adoptables WHERE owner='".$loggedinname."' AND currentlevel='0'";
$result mysql_query($query);
$num mysql_num_rows($result);

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

Change 5 to the number you want to limit of how many eggs the users can have.
Note: I'm not sure if setting the $canadopt to no is necessary to make it more secure, but I put it there anyways just in case if things happen.

Do the same thing with doadoptab.php so that they can't cheat by abandoning the adoptables and adopt more from the adopt.php then readopt the abandoned from the abandon.php

If you encounter any problem with this mod, post it here.
Reply With Quote
  #2  
Old 01-30-2011, 12:40 PM
Kaeliah's Avatar
Kaeliah Kaeliah is offline
Premium Member
 
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 485
Gender: Female
Credits: 38,412
Kaeliah will become famous soon enough
Send a message via AIM to Kaeliah Send a message via MSN to Kaeliah
Default

Looks very nice. It's nice to see such a wide range of mods. I think this mod will be particularly useful to prevent people from hogging.
__________________
[My Shop] ♥ [My Blog] ♥ [Subscribe] ♥ [My Mods] ♥ [Mod TOS]
Reply With Quote
  #3  
Old 01-30-2011, 02:18 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 486,965
Hall of Famer is on a distinguished road
Default

Nice mod, sounds like a very nice fix for many users. For those who have egg levels above lv.0, simply change the part currentlevel='0' to anything you want, such as currentlevel<'3'.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #4  
Old 01-30-2011, 03:43 PM
DragonTamerChris's Avatar
DragonTamerChris DragonTamerChris is offline
The Yoshi Member
 
Join Date: Jan 2011
Location: Somewhere
Posts: 106
Gender: Male
Credits: 7,888
DragonTamerChris is on a distinguished road
Default

I requested this mod about a week ago.

I like it. As Kae said, it's good to prevent people from hogging adopts.
Reply With Quote
  #5  
Old 01-30-2011, 04:41 PM
RoconzaArt's Avatar
RoconzaArt RoconzaArt is offline
Member
 
Join Date: Jan 2011
Location: NJ Shore (and proud of it)
Posts: 479
Gender: Female
Credits: 57,284
RoconzaArt is an unknown quantity at this point
Default

I'm debating adding this do to one problem good old Hydra. I'm worried people will hydra there animals or create a bunch of dummy accounts to get around it.
__________________
Reply With Quote
  #6  
Old 01-30-2011, 04:48 PM
PTGigi's Avatar
PTGigi PTGigi is offline
Crazily Friendly~HoF
 
Join Date: Jul 2009
Location: Somewhere >.>
Posts: 370
Gender: Female
Credits: 31,060
PTGigi
Default

Well it depends how hard it is to get past the egg stage I assume O.o

Lolz I'd add it but I just realized my site has no egg stages XD Or it could be used to say above this level (lvl 5=15 clicks sounds good) Hm....*ponders*
__________________


"I see now that the circumstances of one's birth are irrelevant; it is what you do with the gift of life that determines who you are."~Mewtwo
My Adoptables|Nuzlocke Webcomic
Reply With Quote
  #7  
Old 01-30-2011, 05:03 PM
RoconzaArt's Avatar
RoconzaArt RoconzaArt is offline
Member
 
Join Date: Jan 2011
Location: NJ Shore (and proud of it)
Posts: 479
Gender: Female
Credits: 57,284
RoconzaArt is an unknown quantity at this point
Default

On the site I would use it on it takes 15 clicks to get out of the egg stages since all babies hatch at lvl 5 or in some rare cases lvl 4.
__________________
Reply With Quote
  #8  
Old 01-30-2011, 05:30 PM
DragonTamerChris's Avatar
DragonTamerChris DragonTamerChris is offline
The Yoshi Member
 
Join Date: Jan 2011
Location: Somewhere
Posts: 106
Gender: Male
Credits: 7,888
DragonTamerChris is on a distinguished road
Default

Quote:
Originally Posted by RoconzaArt View Post
I'm debating adding this do to one problem good old Hydra. I'm worried people will hydra there animals or create a bunch of dummy accounts to get around it.
Maybe a code that makes people have to also wait a certain amount of time before their adopt can become an egg/hatchling/adult?
Reply With Quote
  #9  
Old 01-31-2011, 09:25 AM
Missy Master's Avatar
Missy Master Missy Master is offline
Pet-Sim.Online
 
Join Date: Jan 2010
Posts: 475
Gender: Unknown/Other
Credits: 64,226
Missy Master is an unknown quantity at this point
Default

Quote:
Originally Posted by DragonTamerChris View Post
Maybe a code that makes people have to also wait a certain amount of time before their adopt can become an egg/hatchling/adult?
Good ideas... again, we really desperately need some way to control timing with the breeding portion of all this ...there is so much we could do with that!

I know there is a 'decay' thing for php, no idea how to get it to go in reverse or sideways hahah ...
Reply With Quote
  #10  
Old 01-31-2011, 09:35 AM
Missy Master's Avatar
Missy Master Missy Master is offline
Pet-Sim.Online
 
Join Date: Jan 2010
Posts: 475
Gender: Unknown/Other
Credits: 64,226
Missy Master is an unknown quantity at this point
Default

Currently searching here for a way to delay egg/baby insertions!



http://us2.php.net/manual/en/function.strtotime.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
limit adopted eggs kristhasirah Questions and Supports 9 04-19-2015 10:13 AM
Is there a Limit adopted eggs for 1.3.2? Infernette Questions and Supports 6 02-08-2013 02:20 PM
Last adopted? Xius Questions and Supports 2 05-17-2009 04:14 PM
Adopted by certain user levels... densaugeo Questions and Supports 11 04-21-2009 04:33 PM
change the "You just adopted a ..." code output LilPixie Questions and Supports 2 02-14-2009 07:41 PM


All times are GMT -5. The time now is 12:14 AM.

Currently Active Users: 880 (0 members and 880 guests)
Threads: 4,081, Posts: 32,029, 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