Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Rusnak copy anywhere? (http://www.mysidiaadoptables.com/forum/showthread.php?t=1894)

PTGigi 02-06-2011 07:22 PM

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 ._.

Kaeliah 02-06-2011 08:39 PM

I'm pretty much finished with my MAIM script so I'll release that soon. :) it totally changes the alternate system.


All times are GMT -5. The time now is 07:28 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.