![]() |
Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#2
|
||||
|
||||
![]()
This post will cover how to display an adoptable's personality on its 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 $adoptablepersonality; Add this function to the list of functions below: public function getAdoptPersonality(){ return $this->personality; } 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: $adoptablepersonality = $this->adopt->getAdoptPersonality(); 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); I plan on editing the code to allow different personalities to have different chances of being selected. :3 Last edited by Hwona; 07-02-2014 at 05:18 PM. |
|
|
![]() |
||||
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? |