![]() |
Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#2
|
||||
|
||||
![]()
This post will cover how to display stats on an adoptable's click page
1. Go to the "class_ownedadoptable.php" file(inside the "classes" folder). There, at the top, there's a bunch of "protected" variables. Add this below them: protected $statname; Add this function to the list of functions below: public function getAdoptstatname(){ return $this->statname; } 2. Got to the "levelup.php" file. On line 29, there should be something like this: $ip = secure($_SERVER['REMOTE_ADDR']); Under that with this: $adoptablestatname = $this->adopt->getAdoptstatname(); On line 33, there's a piece of code like this: PHP Code:
PHP Code:
PHP Code:
PHP Code:
else{ Under that, put: PHP Code:
$document->add($summary); Under that, put: $document->addLangvar($message); Tada! The next section will go over the "stat-raising system". Last edited by Hwona; 07-02-2014 at 10:03 AM. |
|
|
![]() |
||||
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? |