Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Suggestions and Feature Requests

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 03-02-2011, 04:21 PM
alonaria's Avatar
alonaria alonaria is offline
*********
 
Join Date: Sep 2010
Location: Pennsylvania
Posts: 158
Gender: Female
Credits: 23,800
alonaria is on a distinguished road
Send a message via Yahoo to alonaria
Default Days Instead of Clicks

Eh, this has likely been suggested before. Might as well suggest it anyway. How about for people who want to make the MAS more petsite-like and less adoptable-like there could be a mod to, instead of having pets increase levels (points, etc.), they would increase with days. Dunno what else.
__________________
And the Alo screams, "OMNOMNOMNOM. I like joo!"

Reply With Quote
  #2  
Old 03-03-2011, 09:56 AM
PokePets PokePets is offline
Premium Member
 
Join Date: Jun 2010
Posts: 228
Gender: Male
Credits: 19,067
PokePets
Default

You can do this with cronjobs i think?
But the levelup is then useless i think ;s
Reply With Quote
  #3  
Old 03-03-2011, 10:30 AM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 32,505
fadillzzz is an unknown quantity at this point
Default

Yeah, you can use cron jobs. But when your site gets big and has millions of adoptables, the cron job will take forever to complete!
Reply With Quote
  #4  
Old 03-03-2011, 11:07 AM
PokePets PokePets is offline
Premium Member
 
Join Date: Jun 2010
Posts: 228
Gender: Male
Credits: 19,067
PokePets
Default

Or your users can visit a page, end then all (or some) their adoptables get day +1
This can be done with a new colum in _users
Reply With Quote
  #5  
Old 03-03-2011, 05:38 PM
Knyfe's Avatar
Knyfe Knyfe is offline
Things are looking harder
 
Join Date: Jan 2011
Location: MA, United States (That's one reason why I love this site XD)
Posts: 48
Gender: Female
Credits: 6,083
Knyfe is on a distinguished road
Default

I think it would also be cool, if like on Dragon Cave, adoptables have a limited time to grow up. (You could combine both by having them almost grow up without clicks, but with clicks they would completely mature and possibly mature faster.)
__________________
Just because we all use the same script doesn't mean our websites can't be unique.
Please visit Shop 12.
Reply With Quote
  #6  
Old 03-04-2011, 11:20 AM
Kyris Kyris is offline
Member
 
Join Date: Jan 2011
Posts: 34
Gender: Female
Credits: 5,044
Kyris is on a distinguished road
Default

I think another neat thing to add to this is you could have vouchers or something like that to "sell" to the players, which will make the pet grow-up instantly, or even to be "forever" locked in a particular stage for the people who find the baby/teen form much more attractive
Reply With Quote
  #7  
Old 03-06-2011, 06:17 AM
Missy Master's Avatar
Missy Master Missy Master is offline
Pet-Sim.Online
 
Join Date: Jan 2010
Posts: 475
Gender: Unknown/Other
Credits: 44,518
Missy Master is an unknown quantity at this point
Default

Excellent ideas, something I've wanted for a long time ( I can't do cron jobs, they make me nuts lol ) -- but a way to time births, growing up, all that, with time, would be so valuable to us all in so many ways!
Reply With Quote
  #8  
Old 06-25-2011, 05:27 AM
ruletka ruletka is offline
Member
 
Join Date: Aug 2010
Location: WA
Posts: 13
Gender: Female
Credits: 1,662
ruletka
Default Snippet

You can use cron jobs or php, to change the pets image over time, I don't know how to remove clicks without messing up the adoptable script, but this may create a lead. This is a script I have for my own pet system I made. It makes the adoptables image change.
Just putting it out there as a resource to do this ^^;

This is a image.php?id=3
it shows a pets image depending on the id number of the pet.
You would need to add babyurl , teenurl , adulturl in your speices table..I think you probably already have that but with a diffrent name.
In owned adoptables table you should add
`date` varchar(255) NOT NULL,
`fulldate` varchar(255) NOT NULL,
`halfdate` varchar(255) NOT NULL,

Code:
function greaterDate($dformat, $beginDate, $endDate)
{
    $subtract = $endDate - $beginDate;
    if($subtract > 0) {
    return 1;
    }
    else {
    return 0;
    }
}

function p_image($url) {
//edit line below
return './adoptable image dictionary/' . $url;

}
function check(){
//pid is the adoptables id being requested
$pid = mysql_real_escape_string($_GET['id']);
$result = mysql_query("SELECT * FROM `OWNED ADOPTS` WHERE `id` = '{$pid}'");

while($row = mysql_fetch_array($result, MYSQL_ASSOC))

{
//petid is in owned adopts table, it is the id of the speices adopted.
$results = mysql_query("SELECT * FROM `S P E C I E S` WHERE `id` = '{$row['petid']}'");
$pet = mysql_fetch_array($results);

$results2 = mysql_query("SELECT * FROM `U S E R S` WHERE `id` = '{$row['owner']}'");
$user = mysql_fetch_array($results2);

if(greaterDate(".", $row['fulldate'], date('Ymd')) > 0) {

$im = p_image($pet[adulturl']);
$image = imagecreatefrompng($im);
header('Content-type: image/png');
return imagepng($image);
return imagedestroy($image);

} elseif(greaterDate(".", $row['halfdate'], date('Ymd')) > 0 && greaterDate(".", $row[fulldate], date('Ymd')) <= 0){


$im = p_image($pet['teenurl']);
$image = imagecreatefrompng($im);
header('Content-type: image/png');
return imagepng($image);
return imagedestroy($image);

} elseif(greaterDate(".", $row['halfdate'], date('Ymd')) <= 0){

$im = p_image($pet['babyurl']);
$image = imagecreatefrompng($im);
header('Content-type: image/png');
return imagepng($image);
return imagedestroy($image);

}
}
}

echo check();
In the file where you adopt your pets, you would add
Code:
$date = date('Y/m/d');
$halfdate = date('Ymd') + 7;
$fulldate = date('Ymd') + 13;
Adjust the 7 and 13 however you want..thats the number of days to grow. You simply just add the $date,$halfdate,$fulldate to the sql that insert's the adoptable info into owned adoptables.
Sorry I can't give a mod for this, its just a resource to whomever can complete the job.Keep in mind its not very secure and may need some edits :S
Reply With Quote
Reply

Thread Tools
Display Modes

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 clicks/day to 10 sensacion Questions and Supports 1 07-02-2011 05:15 AM
X Days before evolution fadillzzz Mys v1.1.x Mods 0 02-21-2011 03:42 AM
waiting for premium for 5 days Amerfira Questions and Supports 10 10-01-2010 03:10 AM
Limit clicks/day to 10, for each pet? Quillink Questions and Supports 9 02-08-2010 02:35 PM
No Clicks at all? rosepose Questions and Supports 11 03-07-2009 08:42 AM


All times are GMT -5. The time now is 12:39 PM.

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