Rusnak copy anywhere?

Forum
Last Post
Threads / Messages

PTGigi

Crazily Friendly~HoF
Premium Member
Joined
Jul 17, 2009
Messages
363
Points
0
Age
29
Location
Somewhere >.>
Mysidian Dollar
15,125
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:
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 ._.
 
Last edited:

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,280
Messages
33,132
Members
1,603
Latest member
Monako
BETA

Latest Threads

Top