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 06-24-2011, 01:19 PM
maximillion maximillion is offline
Member
 
Join Date: Jun 2011
Location: Rhode Island
Posts: 67
Gender: Male
Credits: 10,961
maximillion is on a distinguished road
Default gender ratio script

hey hof,

about that gender ratio script.. will that also solve the random adopting? like if i add a male horse, regardless how many times it's adopted.. will it always be a male?
Reply With Quote
  #2  
Old 06-24-2011, 04: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: 492,399
Hall of Famer is on a distinguished road
Default

Well yes. If you set the gender ratio to be 0, it will always be male regardless of how many times you adopt the same species. Similarly for all female adoptables, just change 0 to 100 to make this happen.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #3  
Old 06-24-2011, 04:51 PM
maximillion maximillion is offline
Member
 
Join Date: Jun 2011
Location: Rhode Island
Posts: 67
Gender: Male
Credits: 10,961
maximillion is on a distinguished road
Default

i'm gonna attempt it over the weekend, but i don't know php.. so i know for a fact i'll screw up the whole site..
Reply With Quote
  #4  
Old 06-24-2011, 05:22 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 97,421
SilverDragonTears is on a distinguished road
Default

What's the coding you're working with? I can help you out ^^
__________________

Check out SilvaTales
Reply With Quote
  #5  
Old 06-24-2011, 07:12 PM
maximillion maximillion is offline
Member
 
Join Date: Jun 2011
Location: Rhode Island
Posts: 67
Gender: Male
Credits: 10,961
maximillion is on a distinguished road
Default

hof's gender ratio mod for 1.1 to use in version 1.2..
Reply With Quote
  #6  
Old 06-24-2011, 07:19 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 97,421
SilverDragonTears is on a distinguished road
Default

Where can I find it? I'll take a look at it once I install it.
__________________

Check out SilvaTales
Reply With Quote
  #7  
Old 06-24-2011, 07:41 PM
maximillion maximillion is offline
Member
 
Join Date: Jun 2011
Location: Rhode Island
Posts: 67
Gender: Male
Credits: 10,961
maximillion is on a distinguished road
Default

http://www.mysidiaadoptables.com/for...ead.php?t=1611

hof, about yer tutorial.. the gender column already exists.. second to last item in the table.. so i can't add it



so would i just move it to the bottom and change the value 10 to 40??? this is why i shouldn't be touching the db and php... lol

Last edited by maximillion; 06-24-2011 at 08:09 PM.
Reply With Quote
  #8  
Old 06-25-2011, 12:29 PM
Inf3rnal's Avatar
Inf3rnal Inf3rnal is offline
Member
 
Join Date: Mar 2011
Location: Florida
Posts: 108
Gender: Male
Credits: 21,864
Inf3rnal is on a distinguished road
Default

It really doesn't matter what location it is in the database.

Just change the value to 40 and you should be still able to pull the info.
Reply With Quote
  #9  
Old 06-25-2011, 02:06 PM
maximillion maximillion is offline
Member
 
Join Date: Jun 2011
Location: Rhode Island
Posts: 67
Gender: Male
Credits: 10,961
maximillion is on a distinguished road
Default

v1.2 nadopt.php has:
$alternates = $_POST["alternates"];
$altoutlevel = $_POST["altoutlevel"];
$altchance = $_POST["altchance"];

doesn't have "SECURE" sections:
$alternates = $_POST["alternates"];
$alternates = secure($alternates);

$altoutlevel = $_POST["altoutlevel"];
$altoutlevel = secure($altoutlevel);

$altchance = $_POST["altchance"];
$altchance = secure($altchance);

so do i add the secure parts? or just the "post" part for the gender ratio mod?

also, v1.2 doesn't say:
mysql_query("INSERT INTO ".$prefix."adoptables VALUES ('', '$name', '$description','$eggimage','$cba','$promocode', '$freqcond', '$number','$datecond','$date','$adoptscond','$maxn umcond','$morethannum','$usergroupcond','$usergrou ps','$alternates','$altoutlevel','$altchance')");

but rather:
runquery("INSERT INTO ".$prefix."adoptables VALUES ('', '$name', '$class' ,'$description','$eggimage','$cba','$promocode', '$freqcond', '$number','$datecond','$date','$adoptscond','$maxn umcond','$morethannum','$usergroupcond','$usergrou ps','$alternates','$altoutlevel','$altchance', '$cost')");



and ofcourse now i gotta install that person's script cause it's not installed... i'm sorry, but when 1.2 was done this should all have been done.. this is frustrating that, i don't know php and here i am attempting it... just getting pissed off now!


EDIT:

Quote:
Before you proceed, make sure you you have Arianna's gender system on your script already. Her thread can be found here:
http://www.rusnakweb.com/forum/showt...id=1367&page=1
dead link... LOL, yeah this is great!!!!




Last edited by maximillion; 06-25-2011 at 02:29 PM.
Reply With Quote
  #10  
Old 06-25-2011, 03:14 PM
ruletka ruletka is offline
Member
 
Join Date: Aug 2010
Location: WA
Posts: 13
Gender: Female
Credits: 1,803
ruletka
Default

http://www.mysidiaadoptables.com/for...ead.php?t=1148 is the gender system. You could just add something like
Code:
 if($type=Put a certain type here) {
$gender = "Male";
}
to your adoptable page, but its not that advanced :(

Last edited by ruletka; 06-25-2011 at 03:17 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
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 Mod v1.2 Hall of Famer Mys v1.2.x Mods 45 04-02-2012 01:42 PM


All times are GMT -5. The time now is 01:02 PM.

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