View Single Post
  #43  
Old 04-01-2009, 11:24 AM
mattalien mattalien is offline
Member
 
Join Date: Dec 2008
Posts: 27
Credits: 4,354
mattalien
Default RE: Currency for leveling up and adoptable shop [Beta]

yeah, i'll try it.

EDIT: YES! I did it! you have to add a 'kind' column to the table 'adoptables'. then when you add the adoptable, you use this query:

Code:
INSERT INTO adoptables VALUES ('', 'name','level 0 image','shop','cost','kind')
then go to the shop.php file, and find this:

Code:
$query = "SELECT * FROM adoptables WHERE kind = 'egg' LIMIT 0,5";
change the 'egg' bit to what ever you put in the 'kind' bit of the query. :)

The adoptable still appears in the adoption page, but i will look and try to fix this.

NEW EDIT: Fixed that too! in the database, go to the 'adoptables' table, and in the adoptables you want in the offcial adoption place, set their kind to something like, 'adoptable'.

then, in adopt.php, find this line:

Code:
$query = "SELECT * FROM adoptables"
and change it to this:

Code:
$query = "SELECT * FROM adoptables WHERE kind = 'adoptable'";
change the 'adoptable' to whatever you set in the 'kind' area for the official adoptables.

:)