Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.1.x Mods

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-07-2010, 03:36 AM
PokePets PokePets is offline
Premium Member
 
Join Date: Jun 2010
Posts: 228
Gender: Male
Credits: 19,076
PokePets
Default PokePets mods! NEW Orginal Owner mod!

[size=xx-large]ORGINAL OWNER SCRIPT[/size]
This script gives every aoptable an orginal owner. Nice if you have a trade/gift script :)!
1) Open your doadopt.php & search for this line;
PHP Code:
mysql_query("INSERT INTO ".$prefix."owned_adoptables VALUES ('', '$type', '$name','$loggedinname','0','0', '$code', '','$alts','notfortrade','no')"); 
& change it to this;
PHP Code:
mysql_query("INSERT INTO ".$prefix."owned_adoptables VALUES ('', '$type', '$name','$loggedinname','0','0', '$code', '','$alts','notfortrade','no','$loggedinname')"); 
2) Insert a new row in your owned_adoptables database called OT,
& with this settings;
Type: varchar (40)
Collation: latin1_general_ci
Null: Yes
Default: (THE NAME OF THE OWNER FOR PREVIEUS ADOPTED ADOPTABLES, AODPTABLES ADOPTED BY GUESTS!)
3) Now are you finished, but if you want to vieuw who's the OT, you do this;
Open your myadopts.php & search for this;
PHP Code:
// Now we see if the adoptable actually exists...

$query "SELECT * FROM ".$prefix."owned_adoptables WHERE owner='$loggedinname' and aid='$id'";
$result mysql_query($query);
$num mysql_numrows($result);

//Loop out code
$i=0;
while (
$i 1) {

$aid=@mysql_result($result,$i,"aid"); //The adoptable's ID
$currentlevel=@mysql_result($result,$i,"currentlevel");
$type=@mysql_result($result,$i,"type");
$name=@mysql_result($result,$i,"name");
$totalclicks=@mysql_result($result,$i,"totalclicks"); 
& change it to this;
PHP Code:
// Now we see if the adoptable actually exists...

$query "SELECT * FROM ".$prefix."owned_adoptables WHERE owner='$loggedinname' and aid='$id'";
$result mysql_query($query);
$num mysql_numrows($result);

//Loop out code
$i=0;
while (
$i 1) {

$aid=@mysql_result($result,$i,"aid"); //The adoptable's ID
$currentlevel=@mysql_result($result,$i,"currentlevel");
$type=@mysql_result($result,$i,"type");
$name=@mysql_result($result,$i,"name");
$OT=@mysql_result($result,$i,"OT");
$totalclicks=@mysql_result($result,$i,"totalclicks"); 
Search now for this;
PHP Code:
$article_title $name."'s Statistics:";
$article_content "<img src='".$image."'><br><br>
<b>Total Clicks: "
.$totalclicks."<br>
Current Level: "
.$currentlevel."<br>
Next Level: "
.$nloutput."<br></b>"
& change it to this;
PHP Code:
$article_title $name."'s Statistics:";
$article_content "<img src='".$image."'><br><br>
<b>Total Clicks: "
.$totalclicks."<br>
Current Level: "
.$currentlevel."<br>
Orginal Owner:  "
.$OT."<br>
Next Level: "
.$nloutput."<br></b>"
You are now finished :D!

[size=xx-large]SIMPLE SLOT MACHINE SCRIPT[/size]
DEMO: http://secret.uphero.com/adoptables/levelup.php?id=1
1) Upload the images for your slot machine to a folder. (mine is adoptables/slotmachine)
( Name your images 1,2,3.... )
2) Insert (into levelup.php) this
PHP Code:
$willekeurig rand(12); 
( Change 2 to the amound of images for your slot machine, it's also the change for getting a price. )
after this;
PHP Code:
// Adoptable is NOT frozen, so I think we can actually proceed with the leveling up of this adoptable...
   
$random rand(15); 
3) Insert this where you want to display the slot machine;
PHP Code:
<img src='YOURITE.COM/adoptables/FOLDER OF IMAGES SLOTMACHINE/".$willekeurig.".jpg'> <br$melding 
CHANGE .jpg to the file type of your images! (gif, png ...)
4) Now we gone do the payout :P
Insert this;
PHP Code:
if($willekeurig == 2) {
  
$melding 'Place here a promo code or somthing else...'</center';
}
else {
  $melding = '
Sorry, Try again.';

( change 2 to the number of your winning image, mine is 2.)
You can also do it with money etc.
Hope it works :).
More mods comming soon ;)
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
Mys v1.3.4 Display Pet's Birthday / Original Owner Kyttias Mys v1.3.x Mods 7 03-03-2017 05:14 PM
PokéPets (New version) PokePets Adoptables Sites Showcase 5 02-29-2012 10:44 AM
Mods...? SilverDragonTears Feedback and Suggestions 8 08-18-2011 07:50 PM
PokéPets PokePets Adoptables Buzz 17 06-01-2011 02:02 AM
Sprites by PokéPets PokePets Art Gallery 0 02-20-2011 04:33 AM


All times are GMT -5. The time now is 02:15 AM.

Currently Active Users: 714 (0 members and 714 guests)
Threads: 4,080, Posts: 32,024, 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 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636