View Single Post
  #10  
Old 10-17-2010, 04:43 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 333,603
Hall of Famer is on a distinguished road
Default RE: Adoptable Pet Status Mod by Kaeliah

Again this one works just great. ^^ I've found a small error though, which can be resolved by editing this line in doadopt.php:

PHP Code:
mysql_query("INSERT INTO ".$prefix."owned_adoptables VALUES ('', '$type', '$name','$loggedinname','0','0', '$code', '','$alts','$alts2','$alts3','$alts4','fortrade','no','$gender','$thetime')"); 
To:

PHP Code:
mysql_query("INSERT INTO ".$prefix."owned_adoptables VALUES ('', '$type', '$name','$loggedinname','0','0', '$code', '','$alts','$alts2','$alts3','$alts4','Happy','fortrade','no','$gender','$thetime','','','')"); 
If your default pet status is not Happy, then change this one to whatever you have as default. Also please do not just copy/paste my code since my sql tables are heavily modified and may not look exactly the same as yours. For instance, I have 4 alternative images and a gender system, so you need to delete these from your mysql_query script if yours does not have such things.
Reply With Quote