Thread: Mys 1.3.x Stat/SKill System
View Single Post
  #80  
Old 01-12-2016, 06:42 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 92,000
Kyttias is on a distinguished road
Default

In v1.3.4, adoptables are created in five places - adopt.php, admincp/ownedadopt.php, classes/class_breeding.php, classes/class_promocode.php and classes/class_stockadopt.php. You'll want to add stats in all these places.

Otherwise, everyone should be sure to reference this post from a few up (in it, the post numbers are links to the original versions of posts). I installed on v1.3.4 and really the only thing that changed were line numbers. It's better to search for exact contents than rely on line numbers!!

Oh, and in addition to just number stats, you can also give a pet a random personality, for example --
PHP Code:
    $personality_array = array('brave','honest','loyal');
    
shuffle($personality_array); 
    
$personality $personality[0]; 
A reminder that when adding this mod, be sure to add a default value while creating a column, that way any existing pets will have that value. It won't be random, but hey, they'll have something.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 01-12-2016 at 07:03 PM.
Reply With Quote