How to make a breeding System?

Forum
Last Post
Threads / Messages

SieghartZeke

Member
Member
Joined
Oct 4, 2009
Messages
149
Points
0
Age
29
Mysidian Dollar
6,621
Someone know how to make a simple breeding system, because i want that you put a female character and a male character into like an "house" and wait some minute for get the new character....
 
It would take a lot of coding to make a breeding system. There is no 'simple' way.

Sea
 
unlike sea i could try it for free, but i probably woudnt give it to you unless you gave me $100

jk i might attempt this, if i get anything good i'll tell you

edit: i'm making great progress for me, i've added the mySQL

now to actually edit all the pages :/
 
Omg....are you sure sure sure???O_O
If yoo register in my site after this i can give you a special character!
 
Now...what i need to do?
You give me the file php?Or you....go in my 000host account??=_=
 
Ok....when you have completed,please give me the file...

ely6.png
 
errm.. its not exactly going to be a file, its more of a tut, and when im done i'll make a tut on the site for all to see, and what is that? lol
 
Newest
I think

edit: yea I do, I didn't know if they had made a 1.2 or something
 
btw i'm sorry it's taken so long but i've only had 4 hours to work on it total because of stupid homework :( but hopefully i can take a big chunk of Saturday and most of Sunday to work on this

and if you have an msn or yahoo or something we could chat and i could give you up to date information on how far i am
 
1) mySQL stuffs

2) go edit adopt.php and search for
PHP:
<input type='submit' name='Submit' value='Create This Adoptable'>

3) above it put
PHP:
breed ID<input name='breedid' type='text' id='breedid' size='6' maxlength='6'><br/>
      breed factor<input name='breedfactor' type='text' id='breedfactor' size='6' maxlength='6'><br/>

4) now edit nadopt.php

5) search for
PHP:
$altchance = secure($altchance)

6) now after that put in
PHP:
//////////////////////////////////////////////////////////////////////
$breedid = $_POST["breedid"];
$altchance = secure($breedid);

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

7) now search for
PHP:
mysql_query("INSERT INTO ".$prefix."adoptables VALUES ('', '$name',
'$description','$eggimage','$cba','$promocode', '$freqcond',
'$number','$datecond','$date','$adoptscond','$maxnumcond','$morethannum','$usergr
upcond','$usergroups','$alternates','$altoutlevel','$altchance')");

8) in between
PHP:
 '$altchance'
and
PHP:
)");
put
PHP:
,'$breedid','$breedfactor'
 
btw (your prefix) is written like: prefix
lets say my refix is adopts, then if i were searching for (your prefix)_adoptables i would put adopts_adoptables

1) follow the mySql instructions at the bottem

2) go edit adopt.php and search for
PHP:
<input type='submit' name='Submit' value='Create This Adoptable'>

3) above it put
PHP:
breed ID<input name='breedid' type='text' id='breedid' size='6' maxlength='6'><br/>
      breed factor<input name='breedfactor' type='text' id='breedfactor' size='6' maxlength='6'><br/>

4) now edit nadopt.php

5) search for
PHP:
$altchance = secure($altchance)

6) now after that put in
PHP:
//////////////////////////////////////////////////////////////////////
$breedid = $_POST["breedid"];
$altchance = secure($breedid);

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

7) now search for
PHP:
mysql_query("INSERT INTO ".$prefix."adoptables VALUES ('', '$name',
'$description','$eggimage','$cba','$promocode', '$freqcond',
'$number','$datecond','$date','$adoptscond','$maxnumcond','$morethannum','$usergr
upcond','$usergroups','$alternates','$altoutlevel','$altchance')");

8) in between
PHP:
 '$altchance'
and
PHP:
)");
put
PHP:
,'$breedid','$breedfactor'

9) upload the breed.php file at the bottem



mySql instructions
1) go to php admin and go to the database you made for your adoptable script
2) find (your prefix)_adoptables
3) press SQL, take out
PHP:
SELECT * FROM `(your prefix)_adoptables` WHERE 1
and put in
PHP:
 TABLE `(your prefix)_adoptables` ADD `breedid` INT( 12 ) NOT NULL ,
ADD `breedfactor` INT( 12 ) NOT NULL ;
4) done
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,277
Messages
33,122
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Latest Posts

Top