Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Reply
 
Thread Tools Display Modes
  #1  
Old 05-17-2020, 01:59 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is online now
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,095
Gender: Female
Credits: 33,566
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";
    }
__________________
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:06 AM.

Currently Active Users: 362 (3 members and 359 guests)
Threads: 3,996, Posts: 31,585, Members: 15,649
Welcome to our newest members, Micolai.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636