Thread: Mys 1.3.x Stat/SKill System
View Single Post
  #79  
Old 01-12-2016, 04:02 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 118,480
Abronsyth is on a distinguished road
Default

For users who want to use this with Mys 1.3.4 there are some adjustments you'll need to make. Firstly, in the first post step 3:
Instead of shop.php, you'll want to go into the file .../classes/class_stockadopt.php, and around line 66 you should see some variables being defined;
PHP Code:
 $mysidia Registry::get("mysidia");
$this->owner = (!empty($owner))?$owner:$this->owner;
$alts $this->getaltstatus(0);
$code codegen(100);
$genders = array('f''m'); 
Below gender add this;
PHP Code:
    $statname rand(min,max) ; 
(replace "statname" with the name of your stat, and min with the minimum possible level for the stat, and max with the maximum value)
And then in the string that starts with
PHP Code:
$mysidia->db->insert("owned_adoptables", array("aid" => NULL 
Add this in somewhere in the array;
PHP Code:
"statname" => $statname 
---

I will edit this post as I continue adapting it to 1.3.4 :)
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote