![]() |
| Home Community Mys-Script Creative Off-Topic |
|
|||||||
|
|
Thread Tools | Display Modes |
|
#6
|
||||
|
||||
|
Allowing pets to earn "awards" through training.
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: ![]() Set the values to match the example shown above and press "save". 2. Remember the item function we made earlier in the "functions_items.php" file? Go there and replace that part of the code with this: PHP Code:
protected $statnamemedalstatus; Add this to the list of functions: public function getAdoptObedienceMedalStatus(){ return $this->obediencemedalstatus; } 4. Go to "levelup.php" and find this piece of code: $adoptablestatname = $this->adopt->getAdoptstatname(); Under that, put: $statnamemedalstatus = $this->adopt->getAdoptStatNameMedalStatus(); PHP Code:
<div id='stats'> Statname: {$adoptablestatname} </div><br> Add: <div id ='trainingawards'><img src='{$mysidia->path->getAbsolute()}picuploads/awards/statnamemedalstatus{$statnamemedalstatus}.png'></div> 5. Awards Folder(Zipped) to your picuploads folder and unzip it. Here are some Photoshop bases you can color if you want to swap out the images provided in the folder: Trophy Base Ribbon Base Medal Base If you need non-photshop bases, please tell me. That's done! Now, you may have noticed that the levelup page might not look as visually-appealing as you want it to be. The next post will take care of that. Last edited by Hwona; 07-01-2014 at 06:52 PM. |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trade System | Kyttias | Questions and Supports | 4 | 05-29-2016 01:29 AM |
| Making v.1.3.3 Stat Mod Compatible with V.1.3.4 | Hwona | Questions and Supports | 0 | 07-08-2014 02:37 PM |
| Stat Inheritance Mod * thanks to Wallie! * | Missy Master | Mys v1.3.x Mods | 0 | 06-30-2014 03:23 PM |
| Anyone Want to Have a Stat System | Hwona | Feedback and Suggestions | 12 | 06-30-2014 10:30 AM |
| Basic Stat System | Hedgen | Questions and Supports | 3 | 03-10-2013 03:47 PM |
What's New? |
What's Hot? |
What's Popular? |