Mysidia Adoptables Support Forum  

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

Notices

Reply
 
Thread Tools Display Modes
  #51  
Old 01-23-2010, 09:51 AM
Seapyramid Seapyramid is offline
Premium Member
 
Join Date: Feb 2009
Posts: 373
Gender: Female
Credits: 15,585
Seapyramid
Default RE: Giving pets a Gender

That is normal but why a new table? They can stay in the owned adoptables table but if the owner field is blank then they are not owned and will not show up on anyones profile because they are abandoned. It a lot easier, especially when you are learning to use the wheel given you, not reinvent it. :):)

Sea
Reply With Quote
  #52  
Old 01-23-2010, 12:09 PM
Tkrules Tkrules is offline
Member
 
Join Date: Jan 2010
Posts: 3
Credits: 442
Tkrules
Default RE: Giving pets a Gender

I recently added this mod to my site and it works somewhat. The row Gender does display correctly in the table. However, any pet I adopt has no gender, the row is always blank. I have also tried adding the values male and female to the row gender in the table owned_adoptables to no avail. Any help would be appreciated.
Reply With Quote
  #53  
Old 01-23-2010, 01:11 PM
Roconza Roconza is offline
Member
 
Join Date: Dec 2008
Posts: 29
Credits: 2,794
Roconza
Default RE: Giving pets a Gender

@Seapyramid

I had started to use the abandoned script posted here but the download was lost in the move now I'm to scared to mess with it and I don't know how to make the abandoned adoptable open to claim by other members. So now I have a DB with abandoned pets and nothing to do with them.
Reply With Quote
  #54  
Old 01-24-2010, 03:21 AM
Seapyramid Seapyramid is offline
Premium Member
 
Join Date: Feb 2009
Posts: 373
Gender: Female
Credits: 15,585
Seapyramid
Default RE: Giving pets a Gender

Quote:
Originally Posted by Roconza
@Seapyramid

I had started to use the abandoned script posted here but the download was lost in the move now I'm to scared to mess with it and I don't know how to make the abandoned adoptable open to claim by other members. So now I have a DB with abandoned pets and nothing to do with them.
Very simply.. set it up so when someone abandons it just updates to owned_adoptables... owner field to ""

Like this:

PHP Code:
mysql_query("UPDATE " $prefix "owned_adoptables SET owner='' WHERE aid='$id'"); 
Then when you have you page for them to take abandons... use something like..

PHP Code:
                $query2 "SELECT aid,name,currentlevel FROM " $prefix "owned_adoptables WHERE owner = ''"
to show them & someting like

PHP Code:
        $query0 "SELECT name,item FROM " $prefix "owned_adoptables WHERE aid='$id' LIMIT 1";
        
$result0 mysql_query($query0);
        
$num0 mysql_numrows($result0);
        switch (
true) {
            
//**************************************************
            // Adoptable Exists
            //**************************************************
            
case ($num0 0):
                
// <editor-fold defaultstate="collapsed" desc="Adoptable Exists">
                
$row0 mysql_fetch_assoc($result0);
                
$name $row0["name"];
                
$item $row0["item"];
                
$image "";
                if (
$item != "yes") {
                    
$image getcurrentimage($id);
                } else {
                    
$image getcurrentitemimage($id);
                }
                
$article_title "Signing New Contract with " $name "<br /><br />";
                
$article_content "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;You are signing a contract with " $name ". Doing so will require a signing bonus of 200 Gold Pieces. When you're ready to sign a contract with this Companion, click on the <i>Sign Contract</i> button below.<br /><br />
                <center><a href='levelup.php=" 
$id "'><img src='" $image "' border='0'></a></center><br />
                <form name='form1' method='post' action='doabandon.php'>
                <p><input name='aid' type='hidden' id='aid' value='" 
$id "'>
                <input name='name' type='hidden' id='name' value='" 
$name "'></p>
                <p><input type='submit' name='submit' value='Sign Contract'></p></form>"
;
                
$_SESSION['abandon']=1;
                
// </editor-fold>
                
break; 
when they adopt

Now I will say once again.. my code is HIGHLY OPTIMIZED & WILL NO LONGER WORK with the basic script!!

What I offer is some insight & direction.. not a "fix".

Sea
Reply With Quote
  #55  
Old 03-14-2010, 01:35 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: 334,137
Hall of Famer is on a distinguished road
Default RE: Giving pets a Gender

umm so this is 50% male and 50% female for all adoptables... Is it possible to specify that certain adoptables can only be male or female?
Reply With Quote
  #56  
Old 03-14-2010, 05:19 PM
Seapyramid Seapyramid is offline
Premium Member
 
Join Date: Feb 2009
Posts: 373
Gender: Female
Credits: 15,585
Seapyramid
Default RE: Giving pets a Gender

It is . I have now set up a gender system where gender is male, female or both.. if both it randoms & chooses a gender. It also has the option of setting gender for one pet & the alt the other gender, if main pet & alt are meant to be different sexes.
Reply With Quote
  #57  
Old 03-14-2010, 11:32 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: 334,137
Hall of Famer is on a distinguished road
Default RE: Giving pets a Gender

Sounds cool, would you send me a private message about this? Thanks. ^^
Reply With Quote
  #58  
Old 03-14-2010, 11:56 PM
Seapyramid Seapyramid is offline
Premium Member
 
Join Date: Feb 2009
Posts: 373
Gender: Female
Credits: 15,585
Seapyramid
Default RE: Giving pets a Gender

Sure, sending it now
Reply With Quote
  #59  
Old 03-30-2010, 06:30 AM
SieghartZeke SieghartZeke is offline
Member
 
Join Date: Oct 2009
Posts: 149
Credits: 10,136
SieghartZeke
Default RE: Giving pets a Gender

Here my problem...why i dont show the gender in the Myadopts page??
I Have added the code for show...but i dont show none!!!
WHy?
Reply With Quote
  #60  
Old 04-29-2010, 02:17 AM
athenscott athenscott is offline
Member
 
Join Date: Apr 2010
Posts: 1
Credits: 130
athenscott
Default RE: Giving pets a Gender

Thanks for sharing valuable code. As I have seen it had worked for some people and not for others. So I going to try it with positive feeling that it will work for me and revert back to you with update shortly.
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 Know Gender of New Pets Before Naming Kyttias Mys v1.3.x Mods 4 08-04-2018 01:13 AM
Mys v1.3.x Giftbox Mod (Randomly appearing, currency giving~) Kyttias Mys v1.3.x Mods 14 06-23-2017 07:08 AM
Show Gender while Naming Pet & Name Promo Code Pets Kyttias Questions and Supports 5 07-11-2014 02:12 PM
Gender superdude44 Questions and Supports 5 07-11-2013 01:17 AM
Gender? [answered] Arianna Questions and Supports 4 11-19-2009 06:33 AM


All times are GMT -5. The time now is 12:30 PM.

Currently Active Users: 9828 (0 members and 9828 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