![]() |
Home Community Mys-Script Creative Off-Topic |
|
![]() |
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
![]()
If it's already in the adopts_adoptable table, you don't need to carry it over since all OwnedAdoptables inherit all properties from an Adoptable. To the class adoptable, you need to add a new variable $faction to the attribute list (this variable has to have the same name as the one you got in your database, but with a $ behind it) and create a function similar to others in that file to return that $faction (getFaction() ). You can then use the getFaction() on an OwnedAdoptable like that to obtain its faction. Of course with this all OwnedAdoptables of the same species/type will have the same faction
__________________
![]() ![]() ![]() asp.net stole my soul. |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
"Fairy State" theme by Bobbybighoof (Mysidia 1.3.3) | bobbybig | Templates and Themes | 3 | 07-18-2018 06:54 PM |
Removing of prefix "class", "abstract", "interface" Suggestions | FounderSim | Suggestions and Feature Requests | 3 | 10-05-2014 05:35 PM |
"Nicnack Shop" by Bobbybighoof (mysidia v1.3.3) | bobbybig | Templates and Themes | 5 | 04-15-2013 03:11 PM |
[Updated] AJAX Sortable Adoptables on "myadopts.php" Page | fadillzzz | Mys v1.2.x Mods | 57 | 05-29-2012 02:16 AM |
A php question about changing the "level up" section | coffeeaddict | Questions and Supports | 6 | 02-26-2011 11:08 AM |
What's New? |
What's Hot? |
What's Popular? |