Mysidia Adoptables Support Forum  

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

Thread Tools Display Modes
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: 52,088
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?

$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

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 08:20 AM.

Currently Active Users: 170 (0 members and 170 guests)
Threads: 4,078, Posts: 31,984, Members: 2,012
Welcome to our newest members, Nysnyroth.

What's New?

What's Hot?

What's Popular?

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