Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
Stat/Skill System(Tested with V.1.3.3)
Please pardon my poor explanation skills, but here's a quick guide to creating random-generated stats for adoptables. Please save back ups before beginning as this works perfectly for my site but I don't know what may happen with yours. Hence, please don't unleash your anger on me if there is anything amiss. :3
This first post shall cover assigning stats to created adoptables. 1. Go to PHPMyAdmin->your site's database->prefix_owned_adoptables Once there, there should be a "structure" tab at the top of the screen - click that and then scroll to the bottom of the page until you find: Press go. Then you'll come to a page that looks like this: There, set the values to match those in the example and press "save". 2. In the "adopt.php" file, there should be something like this from lines 29 to 32: PHP Code:
$statname = rand(minimum value,maximum value); Then find this on lines 33 to 34: PHP Code:
PHP Code:
PHP Code:
$statname = rand(minimum value,maximum value) ; and PHP Code:
elseif($mysidia->input->post("shoptype") == "adoptshop"){ Put this under that: $statname = rand(minimum value,maximum value) ; And put this under that: PHP Code:
PHP Code:
$statname = rand(minimum value,maximum value) ; Put this under that: PHP Code:
$mysidia->db->update("owned_adoptables",array("statname" => "value"),"") ; Once that is done, save all changes to the file but don't close it. After that, go to your site and create a quick free adoptable. Adopt that adoptable once. This will update all adoptables in the database to have the set stat. Go back to the "adopt.php" file and delete what you just added or right-click and select "undo". Tada! Please contact me or post in the thread if you have any questions! This includes adding extra stats. The next section shall cover how to display those stats on an adoptable's levelup page. Last edited by Hwona; 07-02-2014 at 02:49 PM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trade System | Kyttias | Questions and Supports | 4 | 05-29-2016 12:29 AM |
Making v.1.3.3 Stat Mod Compatible with V.1.3.4 | Hwona | Questions and Supports | 0 | 07-08-2014 01:37 PM |
Stat Inheritance Mod * thanks to Wallie! * | Missy Master | Mys v1.3.x Mods | 0 | 06-30-2014 02:23 PM |
Anyone Want to Have a Stat System | Hwona | Feedback and Suggestions | 12 | 06-30-2014 09:30 AM |
Basic Stat System | Hedgen | Questions and Supports | 3 | 03-10-2013 02:47 PM |
What's New? |
What's Hot? |
What's Popular? |