View Single Post
  #1  
Old 02-06-2011, 07:22 PM
PTGigi's Avatar
PTGigi PTGigi is offline
Crazily Friendly~HoF
 
Join Date: Jul 2009
Location: Somewhere >.>
Posts: 370
Gender: Female
Credits: 35,843
PTGigi
Default Rusnak copy anywhere?

Gah so I have to go to dinner so this will be quick. My alternates are not working because it is not being added to the owned_adoptables table.

This is the Mys version of the function for alts:
PHP Code:
function getaltstatus($parentid$childid$childlevel){

include(
"config.php");

// This function determines if we will use alternate images...
// All this does is give us a yes or no
// This does NOT actually assign the alternate images in the DB.....

$altstatus "no";
$run "no";

// First we need to see if this adoptable type has alternate images enabled...

$query "SELECT * FROM ".$prefix."adoptables WHERE id='$parentid'";
$result mysql_query($query);
$num mysql_numrows($result);

//Loop out code
$i=0;
while (
$i 1) {

$alternates=@mysql_result($result,$i,"alternates"); 
$altoutlevel=@mysql_result($result,$i,"altoutlevel");
$altchance=@mysql_result($result,$i,"altchance");

$i++;
}

// If alternate images are enabled, we must run some checks to see if we use them...

if($alternates == "enabled"){


// Let's see if the level we are on is the level that requires alternates
// If we're not on a level that requires to check alternates, why bother?

    
if($childlevel == $altoutlevel){
    
    
    
$run "yes";
    
    }



}

I was staring at it and thought something seemed wrong but it was late at night so I blamed that. It...doesn't define having an alt or not ._.

So can someone provide with with a copy of a Rusnak/Mys script that has this in there? D:

I'll check back after I have dinner with my family.

EDIT: Nvm Found a copy of it on my comp and also saw the thread for it. But just a note that error should be fixed ._.
__________________


"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

Last edited by PTGigi; 02-06-2011 at 07:47 PM.
Reply With Quote