Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.3.x Mods

Notices

Reply
 
Thread Tools Display Modes
  #71  
Old 09-21-2014, 08:56 AM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 113,237
Abronsyth is on a distinguished road
Default

Some of the photos on the first, third, and fourth post no longer are up, would you be able to replace them?

Looks like a super cool mod, at any rate!
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
  #72  
Old 11-02-2014, 08:42 PM
ilrak ilrak is offline
Goldfish Fanatic
 
Join Date: Aug 2014
Location: Utah
Posts: 57
Gender: Female
Credits: 11,617
ilrak is on a distinguished road
Default

I'd also love to use this mod, but I'm not sure what to enter into the database at the start. ^v^;
Reply With Quote
  #73  
Old 12-11-2014, 07:44 AM
parayna's Avatar
parayna parayna is offline
Member
 
Join Date: May 2013
Location: Devon, UK
Posts: 342
Gender: Female
Credits: 16,456
parayna is on a distinguished road
Default

Me too XD The images no longer work ^_^''
Reply With Quote
  #74  
Old 12-11-2014, 12:15 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 88,133
Kyttias is on a distinguished road
Default

Since the images are gone, here's supplementary instructions:

Post 1: Assigning Stats to Created Adoptables

Open the owned_adoptables table in your database, go to the second tab at the top, which is Structure, at the bottom right of the page there is a Go button that will, by default, add 1 column at the end of the table. Press it, and on the next page it will ask for field data.

For stats that will have number values, intergers, that is, Type INT will suffice:
Name: statname, Type: INT, Length/Values: 11
(If you want a default value, then select 'As defined' in the Default dropdown and supply a value in the new text box provided below it. This will ensure this default value to all pre-existing adoptables.)

Reminder: Whatever statname you choose, you will need to change it in ALL files we're changing, so search for 'statname' in the material this mod is adding and replace it with your own stat's name.

Continue following the steps on Post 1, starting with Step 2.

Post 2: Display Stats on an Adoptable's Click Page
For Mysidia v1.3.3, follow instructions in the original Post 2.
For Mysidia v.1.3.4, the line numbers are wrong, and some things may be difficult to find. If there are questions on the instructions here, let me know and I'll add a write up.

Post 3: Creating Items to Raise Stats
Open up your database. In the items_functions table, make note of how many rows there are (check out the ifid column for help), hit the word Copy on the row holding the Level1 function. Fill in the first blank with the next number. If you had 13 item functions, this will be 14. Since this is a copy of Level1, rename it. The original instructions imply naming it Statname. The description you can fill in here is mostly for your sake on the admin side of things, and won't be seen by your users.

Continue following the steps on Post 3, starting with Step 2.

Post 4: Rewards Through Training
Open the owned_adoptables table in your database, go to the second tab at the top, which is Structure, at the bottom right of the page there is a Go button that will, by default, add 1 column at the end of the table. Press it, and on the next page it will ask for field data.

I'm not exactly sure on the data being inserted here, but I think this will do it???
Name: statnamemedalstatus, Type: VARCHAR, Length/Values: 11
Continue on starting at Step 2, however, Wallie's Step 3 is just an example with a statname of Obedience, yours should be:
public function getAdoptStatNameMedalStatus(){
return $this->statnamemedalstatus;
}


Best of luck!
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 12-11-2014 at 12:32 PM.
Reply With Quote
  #75  
Old 12-11-2014, 12:21 PM
parayna's Avatar
parayna parayna is offline
Member
 
Join Date: May 2013
Location: Devon, UK
Posts: 342
Gender: Female
Credits: 16,456
parayna is on a distinguished road
Default

Thank you! ^_^
Reply With Quote
  #76  
Old 04-19-2015, 10:39 PM
AndromedaKerova's Avatar
AndromedaKerova AndromedaKerova is offline
ChibiFur Queen
 
Join Date: Nov 2014
Location: England
Posts: 83
Gender: Female
Credits: 3,708
AndromedaKerova is on a distinguished road
Default

I'd still like to see an example image of the stats since the original images no longer work.
__________________
Failing at being normal since 1990.
Reply With Quote
  #77  
Old 04-20-2015, 01:17 AM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 88,133
Kyttias is on a distinguished road
Default

Wallie's site is still up and running, you can find a link to it her signature. Pick a random pet to view, then click the first link (or refresh the page) and you'll see a live example.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.
Reply With Quote
  #78  
Old 04-20-2015, 01:45 AM
AndromedaKerova's Avatar
AndromedaKerova AndromedaKerova is offline
ChibiFur Queen
 
Join Date: Nov 2014
Location: England
Posts: 83
Gender: Female
Credits: 3,708
AndromedaKerova is on a distinguished road
Default

Looks awesome!
If nobody minds, I've added a screenshot of what I see on the little fuzzies page
__________________
Failing at being normal since 1990.
Reply With Quote
  #79  
Old 01-12-2016, 04:02 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 113,237
Abronsyth is on a distinguished road
Default

For users who want to use this with Mys 1.3.4 there are some adjustments you'll need to make. Firstly, in the first post step 3:
Instead of shop.php, you'll want to go into the file .../classes/class_stockadopt.php, and around line 66 you should see some variables being defined;
PHP Code:
 $mysidia Registry::get("mysidia");
$this->owner = (!empty($owner))?$owner:$this->owner;
$alts $this->getaltstatus(0);
$code codegen(100);
$genders = array('f''m'); 
Below gender add this;
PHP Code:
    $statname rand(min,max) ; 
(replace "statname" with the name of your stat, and min with the minimum possible level for the stat, and max with the maximum value)
And then in the string that starts with
PHP Code:
$mysidia->db->insert("owned_adoptables", array("aid" => NULL 
Add this in somewhere in the array;
PHP Code:
"statname" => $statname 
---

I will edit this post as I continue adapting it to 1.3.4 :)
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
  #80  
Old 01-12-2016, 06:42 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 88,133
Kyttias is on a distinguished road
Default

In v1.3.4, adoptables are created in five places - adopt.php, admincp/ownedadopt.php, classes/class_breeding.php, classes/class_promocode.php and classes/class_stockadopt.php. You'll want to add stats in all these places.

Otherwise, everyone should be sure to reference this post from a few up (in it, the post numbers are links to the original versions of posts). I installed on v1.3.4 and really the only thing that changed were line numbers. It's better to search for exact contents than rely on line numbers!!

Oh, and in addition to just number stats, you can also give a pet a random personality, for example --
PHP Code:
    $personality_array = array('brave','honest','loyal');
    
shuffle($personality_array); 
    
$personality $personality[0]; 
A reminder that when adding this mod, be sure to add a default value while creating a column, that way any existing pets will have that value. It won't be random, but hey, they'll have something.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 01-12-2016 at 07:03 PM.
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
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


All times are GMT -5. The time now is 10:28 AM.

Currently Active Users: 1088 (0 members and 1088 guests)
Threads: 4,080, Posts: 32,024, 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