Thread: Max level?
View Single Post
  #2  
Old 09-14-2011, 11:39 AM
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: 589,339
Hall of Famer is on a distinguished road
Default

I see, well this is a minor glitch with the myadopts.php script file. It says your adoptables are at their maximum levels even if they are not. Such glitches were resulted from our optimizing the script by replacing poor-designed loops with mysql_fetch_array() but forgot to edit the variable name. The good thing is that you can still level up your adoptables regardless of this 'max-level warning', but yes it is indeed annoying and needs to be fixed. I will be sure to resolve this minor bug in Mys v1.2.4 release.

For now, just go to myadopts.php and find these following lines:

PHP Code:
            if($row['aid'] == $id)
            {
                
// The adoptable exists, so we show the stats for it...

                
$image getcurrentimage($id);
                
$nextlevelexists getnextlevelexists($type$currentlevel);

                
// If a higher level exists, get that level's information...

                
if($nextlevelexists == "true")
                {
                    
$nextlevel $currentlevel 1;

                    
$query "SELECT * FROM {$prefix}levels WHERE adoptiename='{$type}' and thisislevel='{$nextlevel}'";
                    
$result runquery($query);
                    
$requiredclicks=@mysql_result($result,0,"requiredclicks"); //The adoptable's ID

                
// End grab next level info... 
Replace with:

PHP Code:
            if($row['aid'] == $id)
            {
                
// The adoptable exists, so we show the stats for it...

                
$image getcurrentimage($id);
                
$nextlevelexists getnextlevelexists($row['type'], $row['currentlevel']);

                
// If a higher level exists, get that level's information...

                
if($nextlevelexists == "true")
                {
                    
$nextlevel $row['currentlevel'] + 1;

                    
$query "SELECT * FROM {$prefix}levels WHERE adoptiename='{$row['type']}' and thisislevel='{$nextlevel}'";
                    
$result runquery($query);
                    
$requiredclicks=@mysql_result($result,0,"requiredclicks"); //The adoptable's ID

                
// End grab next level info... 
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote