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? |
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.
|
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..
|
What's the coding you're working with? I can help you out ^^
|
hof's gender ratio mod for 1.1 to use in version 1.2..
|
Where can I find it? I'll take a look at it once I install it.
|
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 http://img850.imageshack.us/img850/5448/unledkmi.png 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 |
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. |
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')"); :cfrown: 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:
http://www.getsmileyface.com/new/angry/14.gif |
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) { |
All times are GMT -5. The time now is 12:15 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.