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)
-   -   Not understanding this code (http://www.mysidiaadoptables.com/forum/showthread.php?t=5636)

SilverDragonTears 05-17-2020 01:59 PM

Not understanding this code
 
If anyone can help I'm trying to insert yes or no allow alternateimages and i'm testing it out on the ones that have alt images but keep getting no. So I want to know if this code even works that I put together and what is the odds of getting an alt image?

Code:

$rarealts = $adopt->getRareAltStatus();{
        if($this->rarealts == "enabled" and $this->currentlevel == $this->altoutlevel){
            $rand = mt_rand(1, $this->altchance);
            if($rand == 1) $userarealternates = "yes";           
        }
        else $userarealternates = "no";
    }



All times are GMT -5. The time now is 10:05 AM.

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