Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 03-04-2014, 02:55 PM
Vaporman87 Vaporman87 is offline
Member
 
Join Date: Feb 2014
Posts: 32
Gender: Male
Credits: 6,541
Vaporman87 is on a distinguished road
Default Creating a "Faction" for adoptables/owned adoptables

Some time ago, I asked about adding a description (that would be created in the ACP during adoptable creation) that would display on the myadopts/stats/ page.

Thanks to you guys, I got that done.

Now I want to add yet another option called "Faction" to be specified during the adoptable creation process in ACP. Only, I need this new option to carry over from the adopts_adoptables table in the database to the adopts_owned_adoptables in the database (whenever someone buys/adopts the adoptable).

So essentially, this new option needs to show up in every table in the database that an adoptable shows up in. Mainly because I am planning to use this new option in a custom battle system I'll be having made.

Any help is welcome!!!

Last edited by Vaporman87; 03-04-2014 at 02:58 PM.
Reply With Quote
  #2  
Old 03-04-2014, 04:38 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 20,973
IntoRain is on a distinguished road
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Fairy State" theme by Bobbybighoof (Mysidia 1.3.3) bobbybig Templates and Themes 3 07-18-2018 07:54 PM
Removing of prefix "class", "abstract", "interface" Suggestions FounderSim Suggestions and Feature Requests 3 10-05-2014 06:35 PM
"Nicnack Shop" by Bobbybighoof (mysidia v1.3.3) bobbybig Templates and Themes 5 04-15-2013 04:11 PM
[Updated] AJAX Sortable Adoptables on "myadopts.php" Page fadillzzz Mys v1.2.x Mods 57 05-29-2012 03:16 AM
A php question about changing the "level up" section coffeeaddict Questions and Supports 6 02-26-2011 12:08 PM


All times are GMT -5. The time now is 08:42 AM.

Currently Active Users: 1152 (0 members and 1152 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636