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 12-17-2016, 10:01 AM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Member
 
Join Date: Aug 2016
Location: Maryland, USA
Posts: 516
Gender: Unknown/Other
Credits: 93,344
Dinocanid is on a distinguished road
Default

I believe the only files you'll have to edit would be breeding.php, breedingview.php, lang_breeding, and class_breeding.php. I doubt you'll ever have to edit class_language, for any script really. You were on the right track already, with changing female to parent1 and male to parent2. You may have been getting the error message because you forgot to edit lang_breeding, which you would need to change these two lines:
PHP Code:
$lang['female'] = "None of your female adoptables can breed at the time.<br>";
$lang['male'] = "None of your male adoptables can breed at the time.<br>"
to:

PHP Code:
$lang['parent1'] = "None of your female adoptables can breed at the time.<br>";
$lang['parent2'] = "None of your male adoptables can breed at the time.<br>"
In order for the dropdown on the breeding page to not be restricted on only male adopts and female adopts, you would change the last few lines of breeding.php like so:

PHP Code:
$stmt $mysidia->db->select("owned_adoptables", array("name""aid"), "owner = '{$mysidia->user->username}' AND currentlevel >= {$settings->level} AND lastbred <= '{$lasttime}'");
        
$female = ($stmt->rowcount() == 0)?new Null:$mysidia->db->fetchMap($stmt);
        
$this->setField("parent1Map"$parent1);
  
        
$stmt $mysidia->db->select("owned_adoptables", array("name""aid"), "owner = '{$mysidia->user->username}' AND currentlevel >= {$settings->level} AND lastbred <= '{$lasttime}'");
        
$male = ($stmt->rowcount() == 0)?new Null:$mysidia->db->fetchMap($stmt);
        
$this->setField("parent1Map"$parent1); 
You also wouldn't want users to be able to breed by choosing the same adopt in both dropdowns (I assume), so you would change this line in breeding.php:

PHP Code:
if($mysidia->input->post("female") == "none" or $mysidia->input->post("male") == "none"){ 
to this:

PHP Code:
if($mysidia->input->post("female") == "none" or $mysidia->input->post("male") == "none" or $mysidia->input->post("female") == $mysidia->input->post("male")){ 
This is just off the top of my head and I haven't tested it, but it should point you in the right direction. I also haven't properly changed every line that includes "female" and "male" to "parent1" and "parent2", so you'll have to do that on your own.
__________________
Reply With Quote
Reply

Tags
breeding, gender, mysidia v1.3.4


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


All times are GMT -5. The time now is 03:45 PM.

Currently Active Users: 3590 (0 members and 3590 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 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636