How you change the default trade status?

Forum
Last Post
Threads / Messages

LUC1G07CH1

I'm a Unicorn
Member
Joined
Mar 31, 2016
Messages
114
Points
16
Age
21
Location
Brazil
Mysidian Dollar
11,813
So when people adopt pets their trade status is always "for trade". And i think they doesn't want that.
I know that we can change on "manage". But how when you adopt a pet, the default status will be "not for trade"?
 
Assuming you are running a fresh Mysidia installation, open adopt.php file in your root directory and you should find this near line 34-35:

Code:
            $mysidia->db->insert("owned_adoptables", array("aid" => NULL, "type" => $adopt->getType(), "name" => $name, "owner" => $mysidia->user->username, "currentlevel" => 0, "totalclicks" => 0, "code" => $code, 
                                                           "imageurl" => NULL, "usealternates" => $alts, "tradestatus" => 'fortrade', "isfrozen" => 'no', "gender" => $gender, "offsprings" => 0, "lastbred" => 0));

Change it to:

Code:
            $mysidia->db->insert("owned_adoptables", array("aid" => NULL, "type" => $adopt->getType(), "name" => $name, "owner" => $mysidia->user->username, "currentlevel" => 0, "totalclicks" => 0, "code" => $code, 
                                                           "imageurl" => NULL, "usealternates" => $alts, "tradestatus" => 'notfortrade', "isfrozen" => 'no', "gender" => $gender, "offsprings" => 0, "lastbred" => 0));

This way the default status becomes not for trade.
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,277
Messages
33,118
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Top