Mysidia Adoptables Support Forum  

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

Notices

Reply
 
Thread Tools Display Modes
  #31  
Old 09-13-2011, 03:03 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 485,899
Hall of Famer is on a distinguished road
Default

I see, do you know which Mod is incompatible with my Gender Ratio script?
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #32  
Old 09-18-2011, 12:03 AM
RoconzaArt's Avatar
RoconzaArt RoconzaArt is offline
Member
 
Join Date: Jan 2011
Location: NJ Shore (and proud of it)
Posts: 479
Gender: Female
Credits: 57,218
RoconzaArt is an unknown quantity at this point
Default

Is there a way to bring back the genderless class? I remember the old mod had it but it's not present here. I have a feeling I know how to do it but I'm afraid to try it.
__________________
Reply With Quote
  #33  
Old 09-18-2011, 08:27 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 485,899
Hall of Famer is on a distinguished road
Default

Well this is definitely doable. If you have Gender Ratio Mod already, find these lines below:

PHP Code:
$tempgender rand(099);
if(
$tempgender $row['genderratio']) {
$gender "f";
unset(
$tempgender);
}
else {
$gender "m";
unset(
$tempgender);
}
runquery("INSERT INTO {$prefix}owned_adoptables VALUES ('',  '{$row['type']}', '$name','$loggedinname','0','0', '$code',  '','$alts','fortrade','no', '$gender','0')"); 
Replace with:
PHP Code:
$tempgender rand(099);
if(
$tempgender $row['genderratio']) {
$gender "f";
unset(
$tempgender);
}
else {
$gender "m";
unset(
$tempgender);
}
if(
$row['genderratio'] == 101$gender "Genderless";
runquery("INSERT INTO {$prefix}owned_adoptables VALUES ('',  '{$row['type']}', '$name','$loggedinname','0','0', '$code',  '','$alts','fortrade','no', '$gender','0')"); 
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #34  
Old 02-13-2012, 12:44 PM
keliptis keliptis is offline
Member
 
Join Date: May 2011
Posts: 15
Gender: Female
Credits: 1,821
keliptis is on a distinguished road
Default

I have an odd issue when I installed this mod now when i create a adopt and add alts it shows it as disabled all the time

All forms in the database for that are blank also I had to manually ad ENABLED to it and it seemed to work but whys it showing blanks and making it disable?
Reply With Quote
  #35  
Old 02-13-2012, 05:29 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 485,899
Hall of Famer is on a distinguished road
Default

umm I dont think this script itself messes up with the alternate form generation code, unless you've copied/pasted the script in a wrong way that it overwrote the alternate image generation code. Can you show me what exactly is in your doadopt.php file? I guess this is the way to find a solution to your problem.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #36  
Old 02-14-2012, 09:06 AM
keliptis keliptis is offline
Member
 
Join Date: May 2011
Posts: 15
Gender: Female
Credits: 1,821
keliptis is on a distinguished road
Default

I might have xD

*edited out*

Last edited by keliptis; 02-29-2012 at 11:37 AM. Reason: wrong file
Reply With Quote
  #37  
Old 02-28-2012, 11:54 AM
Fangs Fangs is offline
Member
 
Join Date: Nov 2010
Posts: 6
Credits: 951
Fangs
Default

Works great, thank you!
Reply With Quote
  #38  
Old 02-28-2012, 12:25 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 485,899
Hall of Famer is on a distinguished road
Default

Thats a nice attempt Keliptis, I am impressed.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #39  
Old 02-29-2012, 11:36 AM
keliptis keliptis is offline
Member
 
Join Date: May 2011
Posts: 15
Gender: Female
Credits: 1,821
keliptis is on a distinguished road
Default

Im so sorry xD I cant believe i did the wrong one, ive been busy for a few days sgo

PHP Code:
<?php

include("inc/functions.php");

//***************//
//  START SCRIPT //
//***************//

$id $_GET["id"];
$promocode $_GET["promocode"];
$name $_GET["name"];

if(
$isloggedin == "yes"){
    if(
$_SESSION["allow"] != 1){
    
        
$article_title $err_idnoexist;
        
$article_content $err_idnoexist_text;
    }
    elseif(
$_SESSION["allow"] == 1){
    
        
// I guess the first thing to do is see if we have a valid adoptable ID submitted...
        
if($id == "" or !is_numeric($id)){
            
$article_title $err_idnoexist;
            
$article_content $err_idnoexist_text;
        }
        else{
            
// The adoptable ID appears to be valid, so we need to double check that it is valid by pulling up the adoptable in the DB

            
$query "SELECT * FROM {$prefix}adoptables WHERE id={$id}";
            
$result runquery($query);
            
$row mysql_fetch_array($result);

            if(
$id == $row['id']){
                
// The ID submitted matches an existing adoptable type
                
$canadopt canadopt($row['id'], "adopting"$promocode$row);

                
// If we can adopt this creature, do the adoption
                
if($canadopt == "yes") {
                    if (
changecash(-$row['cost'], $GLOBALS['loggedinname'], $GLOBALS['money'])==true) {                
                        
// BEGIN the actual adoption process

                        // First we see if we have a custom name; if not, we use the default name
                        
if($name == ""){
                            
$name $row['type'];
                        }

                        
// Now we determine if we are using alternate images or not

                        
$alts getaltstatus($id00);

                        
// We need a unique code for the adoptable so we can show it to the user when we're done here...

                        
$code rand(120000);
                        
$tempgender rand(099);
if(
$tempgender $row['genderratio']) {
$gender "f";
unset(
$tempgender);
}
else {
$gender "m";
unset(
$tempgender);
}
runquery("INSERT INTO {$prefix}owned_adoptables VALUES ('',  '{$row['type']}', '$name','$loggedinname','0','0', '$code',  '','$alts','fortrade','no', '$gender','0')");

                        
// Adoption complete, show the user a confirmation screen...

                        
$result runquery("SELECT * FROM {$prefix}owned_adoptables WHERE code='{$code}' and owner='{$loggedinname}'") ;
                        
$id=@mysql_result($result,0,"aid"); 

                        
$article_title $name." adopted successfully";
                        
$article_content "<img src='{$row['eggimage']}'><br>{$congrats1} {$name}.  You can now manage {$name} on the 
                        <a href='myadopts.php'>My Adopts</a> page.<br><br><b><a href='myadopts.php?act=manage&id=
{$id}'>Click Here to Manage {$name}</a><br>
                        <a href='myadopts.php?act=bbcode&id=
{$id}'>Click Here to get BBCodes / HTML Codes for {$name}</a></b><br><br>
                        Be sure and <a href='levelup.php?id=
{$id}'>feed</a> {$name} with clicks so that they grow!";
                        unset(
$_SESSION["allow"]);
                        
// END the actual adoption process
                    
}
                    else {
                        
$article_title "Not enough money.";
                        
$article_content "You don't have enough {$GLOBALS['settings']['cost']} to buy this adoptable. Earn some money and then try again.";
                    }
                }
                else {
                    
$article_title $accden;
                    
$article_content $adoptnoper;
                }
            } 
// End the if for if $id == $aid
            
else {
                
// Adoptable does not exist, show an error.

                
$article_title $err_idnoexist;
                
$article_content $err_idnoexist_text;
            } 
// End the else for if $id == $aid
        
// End the valid ID input else test statement (bulk of code goes above here)
    
}
// End the log in check IF
else {
    
// Guests cannot adopt pets, so why bother...
    
$article_title $guesttitleerror;
    
$article_content $guesterror;
// End the log in check ELSE 

//***************//
//  OUTPUT PAGE  //
//***************//

echo showpage($article_title$article_content$date);

?>
Reply With Quote
  #40  
Old 03-30-2012, 12:03 AM
kristhasirah's Avatar
kristhasirah kristhasirah is offline
Member
 
Join Date: Jan 2010
Location: In middle of the nothingness
Posts: 196
Gender: Female
Credits: 32,727
kristhasirah
Default

Will you make this mod available for the new version?
__________________
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
Mys v1.3.4 Gender Ratio Mod for Mys v1.3.4 Hall of Famer Mys v1.3.x Mods 14 06-17-2020 08:20 PM
Mys v1.3.3 Gender Ratio Mod for Mys v1.3.3 Hall of Famer Mys v1.3.x Mods 17 05-23-2019 04:34 PM
Mys v1.3.2 Gender Ratio Mod for Mys v1.3.2 Hall of Famer Mys v1.3.x Mods 6 01-08-2013 03:02 PM
Mys v1.3.1 Gender Ratio Mod for v1.3.1 Hall of Famer Mys v1.3.x Mods 15 08-17-2012 04:25 AM
Hall of Famer's gender ratio system Hall of Famer Mys v1.1.x Mods 34 01-25-2011 02:19 AM


All times are GMT -5. The time now is 08:10 PM.

Currently Active Users: 761 (0 members and 761 guests)
Threads: 4,081, Posts: 32,029, 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