Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
Personality System
Please save back ups before using this modification!
How to make a random-generating personality system 1. Go to the "owned_adoptables" table in your database(PHPMyadmin). Click the "structure" tab at the top of the page. When it brings you to the next page, scroll down until you see this: Press "Go". You'll be brought to this: Set the values to match the example above and press "Save". 2. Go to the "adopt.php" file and find this: $gender = $adopt->getGender(); Under that, put: PHP Code:
PHP Code:
PHP Code:
$offspringID = $mysidia->db->select("owned_adoptables", array("aid"), "1 ORDER BY aid DESC LIMIT 1")->fetchColumn() - $num + 1; Under that, put: PHP Code:
PHP Code:
$adoptid = $mysidia->db->select("owned_adoptables", array("aid"), "1 ORDER BY aid DESC LIMIT 1")->fetchColumn() - $num + 1; Under that, add: PHP Code:
PHP Code:
switch($this->type){ case "Adopt": Below that, add: PHP Code:
PHP Code:
PHP Code:
Under this: Add: $mysidia->db->update("owned_adoptables",array("personality" =>"personality4"),"aid = $adoptid"); Go to your site's ACP and create a free adopt-page adopt. Adopt that pet once. Delete the adopted pet and the species. Then, go back to the "adopt.php" file and delete the code you just added Done! If you want to display the personality on the levelup page: Last edited by Hwona; 07-02-2014 at 05:25 PM. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pets with Personality? | Kyttias | Suggestions and Feature Requests | 24 | 07-04-2014 03:03 PM |
Anyone Want to Have a Stat System | Hwona | Feedback and Suggestions | 12 | 06-30-2014 09:30 AM |
Abandon system | bokkun | Mys v1.1.x Mods | 30 | 11-16-2010 10:19 PM |
Trade System? | SieghartZeke | Questions and Supports | 1 | 12-28-2009 07:06 AM |
Evolution system? | Hall of Famer | Questions and Supports | 10 | 11-05-2009 05:54 PM |
What's New? |
What's Hot? |
What's Popular? |