Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Suggestions and Feature Requests

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 08-11-2010, 10:19 AM
vexel vexel is offline
Member
 
Join Date: Aug 2010
Posts: 23
Credits: 3,413
vexel
Default RE: help - changeing language

Than you, but yoru siggy also doesn't work... why??:O


So if you want the adoptables can breed 1 time for 3 days:

add new pole - breed varchar(20) and be default yes - it must be in database abandon and owned_adoptables



in breeding.php find

Quote:
//This will select all the female adoptables the user has
$result = mysql_query("SELECT * FROM ".$prefix."owned_adoptables WHERE owner = '$loggedinname' AND gender = 'female'");
$num = mysql_num_rows($result);
and repalce it with:


Quote:
//This will select all the female adoptables the user has
$result = mysql_query("SELECT * FROM ".$prefix."owned_adoptables WHERE owner = '$loggedinname' AND gender = 'female' AND breed = 'yes' AND isfrozen = 'no'");
$num = mysql_num_rows($result);
and find a little down


Quote:
//This will select all the female adoptables the user has
$result = mysql_query("SELECT * FROM ".$prefix."owned_adoptables WHERE owner = '$loggedinname' AND gender = 'male'");
$num = mysql_num_rows($result);

and replace it with:

Quote:
//This will select all the female adoptables the user has
$result = mysql_query("SELECT * FROM ".$prefix."owned_adoptables WHERE owner = '$loggedinname' AND gender = 'male' AND breed = 'yes' AND isfrozen = 'no'");
$num = mysql_num_rows($result);

next also in breeding.php find



Quote:
mysql_query("INSERT INTO ".$prefix."owned_adoptables VALUES ('', '$type', '$name','$loggedinname','0','0', '$code', '','$alts','fortrade','no','$gender','$date')");
a replace it with:

Quote:
mysql_query("INSERT INTO ".$prefix."owned_adoptables VALUES ('', '$type', '$name','$loggedinname','0','0', '$code', '','$alts','fortrade','no','$gender','$date','yes' )");
and up paste it:
Quote:
$breed=time('U');
and down past it:

Quote:
mysql_query("UPDATE ".$prefix."owned_adoptables SET breed='".$breed."' WHERE aid='".$male_id."'");
mysql_query("UPDATE ".$prefix."owned_adoptables SET breed='".$breed."' WHERE aid='".$female_id."'");
breeding file ok ;-)

in doadopt.php find


Quote:
mysql_query("INSERT INTO ".$prefix."owned_adoptables VALUES ('', '$type', '$name','$loggedinname','0','0', '$code', '','$alts','notfortrade','no','$gender','$date')") ;

and replace it with


Quote:
mysql_query("INSERT INTO ".$prefix."owned_adoptables VALUES ('', '$type', '$name','$loggedinname','0','0', '$code', '','$alts','notfortrade','no','$gender','$date','y es')");


also in doadoptab.php find

Quote:
mysql_query("INSERT INTO ".$prefix."owned_adoptables VALUES ('', '$type', '$name','$loggedinname','0','0', '$code', '','$alts','notfortrade','no','$gender','$date')") ;

and replace it with


Quote:
mysql_query("INSERT INTO ".$prefix."owned_adoptables VALUES ('', '$type', '$name','$loggedinname','0','0', '$code', '','$alts','notfortrade','no','$gender','$date','y es')");


the last file is myadopts.php

find
Quote:
else if($act == "manage"){

and down you have
Quote:
$aid=@mysql_result($result,$i,"aid"); //The adoptable's ID
$currentlevel=@mysql_result($result,$i,"currentlev el");
$type=@mysql_result($result,$i,"type");
$name=@mysql_result($result,$i,"name");
$gender=@mysql_result($result,$i,"gender");
$isfrozen=@mysql_result($result,$i,"isfrozen");
$totalclicks=@mysql_result($result,$i,"totalclicks ");
and down past it:
Quote:
$breed=@mysql_result($result,$i,"breed");
$decay=time() - 3 * 24 * 60 * 60;
// here you can set how many days. now it's 3 days, but if you past
// $decay=time() - 2 * 24 * 60 * 60;
// it will be 2 days ;-)
$removed="no";


if($breed < $decay){ //check if the creature is too the abandoned database
//yes it is, time to remove it
$removed="yes";
mysql_query("UPDATE ".$prefix."owned_adoptables SET breed='yes' WHERE aid='".$aid."'");
}

and down find

find
Quote:
else if($act == "manage"){
Quote:
mysql_query("INSERT INTO ".$prefix."abandoned VALUES ('$aid', '$type', '$name','$owner', '$currentlevel', '$totalclicks', '$code', '', '$usealternates', '$tradestatus', '$isfrozen', '$gender', '$date')");
mysql_query("DELETE FROM ".$prefix."owned_adoptables WHERE aid='$id' and owner='$loggedinname'");
replace with

Quote:
mysql_query("INSERT INTO ".$prefix."abandoned VALUES ('$aid', '$type', '$name','$owner', '$currentlevel', '$totalclicks', '$code', '', '$usealternates', '$tradestatus', '$isfrozen', '$gender', '$date', 'yes')");
mysql_query("DELETE FROM ".$prefix."owned_adoptables WHERE aid='$id' and owner='$loggedinname'");

Ok - it's the end ;-)
it's working for me ;-)


I thing you understand me ;-)

and please help me with siggy.php ;-)
Reply With Quote
Reply

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
Language Exception Error when Logging in / out LucasA33 Questions and Supports 3 12-21-2013 06:31 AM
Another language? demoness Questions and Supports 5 07-12-2013 06:59 AM
How to change language in PHP Adoptables script? MarDeb Questions and Supports 1 08-17-2009 03:21 PM


All times are GMT -5. The time now is 04:19 AM.

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