View Single Post
  #1  
Old 05-17-2020, 01:59 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 81,251
SilverDragonTears is on a distinguished road
Default 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";
    }
__________________

Check out SilvaTales
Reply With Quote