Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #18  
Old 10-17-2009, 08:22 AM
aroymart aroymart is offline
Member
 
Join Date: Jan 2009
Posts: 74
Credits: 9,257
aroymart
Default RE: How to make a breeding System?

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 Code:
<input type='submit' name='Submit' value='Create This Adoptable'
3) above it put
PHP Code:
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 Code:
$altchance secure($altchance
6) now after that put in
PHP Code:
//////////////////////////////////////////////////////////////////////
$breedid $_POST["breedid"];
$altchance secure($breedid);

$breedfactor $_POST["altchance"];
$altchance secure($breedfactor); 
7) now search for
PHP Code:
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 Code:
 '$altchance' 
and
PHP Code:
)"); 
put
PHP Code:
,'$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 Code:
SELECT FROM `(your prefix)_adoptablesWHERE 1 
and put in
PHP Code:
 TABLE `(your prefix)_adoptablesADD `breedidINT12 NOT NULL ,
ADD `breedfactorINT12 NOT NULL 
4) done
Reply With Quote
 

Thread Tools
Display Modes

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
Make Breeding Random? SilverDragonTears Suggestions and Feature Requests 7 08-25-2011 04:58 AM
a more advanced breeding system needed maximillion Questions and Supports 11 06-28-2011 02:37 PM
Help me with the breeding system of Arianna Sensacionsk8 Questions and Supports 2 03-21-2011 11:54 AM
Breeding System - Complete! Arianna Mys v1.1.x Mods 93 02-08-2011 10:19 AM
Breeding System Steelghost600 Questions and Supports 4 10-25-2009 02:38 PM


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

Currently Active Users: 3594 (0 members and 3594 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 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636