Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Addons/Mods Graveyard

Notices

Closed Thread
 
Thread Tools Display Modes
  #51  
Old 04-03-2009, 10:20 AM
mattalien mattalien is offline
Member
 
Join Date: Dec 2008
Posts: 27
Credits: 4,285
mattalien
Default RE: Currency for leveling up and adoptable shop [Updated] [Beta]

Can i just ask, how can I add a new section to the shop?

e.g. I have the one heading that says "Gold Coin Frames", and I would like another one saying "Platinum Coin Frames" underneath.

How do I do this?
  #52  
Old 04-03-2009, 01:35 PM
kisazeky kisazeky is offline
Member
 
Join Date: Mar 2009
Posts: 44
Credits: 18,952
kisazeky
Default RE: Currency for leveling up and adoptable shop [Updated] [Beta]

Easy, mattalien.

First of all, insert the adoptables you want in this section using this query. Replace shop with something different like shop_platinum.

PHP Code:
INSERT INTO adoptables VALUES ('''name','level 0 image','shop_platinum','cost'
Don't forget to add the rank images.

Then edit shop.php and find this line:

PHP Code:
$article_content stripslashes($article_content); 
Right below it, put this in:

PHP Code:
$article_content=$article_content."<p>Platinum Coin Frames";

$query "SELECT * FROM adoptables WHERE memberlevel = 'shop_platinum'";
$result mysql_query($query);
$num mysql_numrows($result);

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

$aID=@mysql_result($result,$i,"uid");
$name=@mysql_result($result,$i,"name");
$imageurl=@mysql_result($result,$i,"imageurl");
$cost=@mysql_result($result,$i,"description");

//Begin our content output...
$article_content=$article_content."<p>".$name."<p><img src='".$imageurl."' /><p>".$cost." <p><a href='buy.php?aID=".$aID."'>Buy ".$name."</a>";


$i++;

  #53  
Old 04-03-2009, 01:51 PM
densaugeo densaugeo is offline
Member
 
Join Date: Mar 2009
Posts: 39
Credits: 4,608
densaugeo
Default RE: Currency for leveling up and adoptable shop [Updated] [Beta]

I ended up having to add a kind row anyway :P With the memberlevel one, no matter what i put the adoptable's level at, anyone could still get it. and that was the problem i was having XD but i fixed it with adding a 'kind' to it. so it's all good now :D Thank you!
  #54  
Old 04-03-2009, 02:05 PM
kisazeky kisazeky is offline
Member
 
Join Date: Mar 2009
Posts: 44
Credits: 18,952
kisazeky
Default RE: Currency for leveling up / Adoptable shop (NEW: Prevent stealing!)

Densaugeo, I've added an anti-theft code to the adopt page, so no one can adopt these shop creatures through the adopt page. :)
  #55  
Old 04-03-2009, 03:14 PM
mattalien mattalien is offline
Member
 
Join Date: Dec 2008
Posts: 27
Credits: 4,285
mattalien
Default RE: Currency for leveling up / Adoptable shop (NEW: Prevent stealing!)

Quote:
Originally Posted by kisazeky
Easy, mattalien.

First of all, insert the adoptables you want in this section using this query. Replace shop with something different like shop_platinum.

PHP Code:
INSERT INTO adoptables VALUES ('''name','level 0 image','shop_platinum','cost'
Don't forget to add the rank images.

Then edit shop.php and find this line:

PHP Code:
$article_content stripslashes($article_content); 
Right below it, put this in:

PHP Code:
$article_content=$article_content."<p>Platinum Coin Frames";

$query "SELECT * FROM adoptables WHERE memberlevel = 'shop_platinum'";
$result mysql_query($query);
$num mysql_numrows($result);

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

$aID=@mysql_result($result,$i,"uid");
$name=@mysql_result($result,$i,"name");
$imageurl=@mysql_result($result,$i,"imageurl");
$cost=@mysql_result($result,$i,"description");

//Begin our content output...
$article_content=$article_content."<p>".$name."<p><img src='".$imageurl."' /><p>".$cost." <p><a href='buy.php?aID=".$aID."'>Buy ".$name."</a>";


$i++;

Thanks! You are the best, apart from BMR77!

:)
  #56  
Old 04-03-2009, 04:12 PM
Ashje Ashje is offline
Member
 
Join Date: Jan 2009
Posts: 179
Credits: 9,952
Ashje
Default RE: Currency for leveling up / Adoptable shop (NEW: Prevent stealing!)

Quote:
Originally Posted by Ashje
Quote:
Originally Posted by densaugeo
I still don't get how to add a pet to the shop :P Heh, i've looked over the files..but I'm not sure what to change or add...
Don't add or change anything. Just run the SQL Queries in Post 43.

Quote:
Originally Posted by kisazeky
Ok, with the update, there is now no need to add new columns. It adds "shop" to the "memberlevel" column and the cost to the "description" table.

Also this is a more secure buying method so people cannot get them for free.
How is it safer? It is much easier to add a kind column with the old one. Anyways, thanks for the buyconfirm. =)

EDIT:
buyconfirm doesn't work, the new shop file doesn't work (it screws up the template and when you buy something, nothing appears on the page...
EDIT: The stealing thing doesn't work either, it just prevents any user adopting the main adoptables, not in the shop.
  #57  
Old 04-03-2009, 04:23 PM
Killgore Killgore is offline
Member
 
Join Date: Dec 2008
Posts: 82
Credits: 8,828
Killgore is an unknown quantity at this point
Default RE: Currency for leveling up / Adoptable shop (NEW: Prevent stealing!)

Is there any way i could set the adoptables in a table that would look like this:
Code:
<center><table border='2' bordercolor='#3d3d3d' cellpadding='5' cellspacing='1'>
<tr>
<td bgcolor='#575757'><p><font face='Verdana' size='1' color='ffffff'><center>".$name."<p><img src='".$imageurl."' /><p>".$cost."<p><a href='buy.php?aID=".aID."'>Buy a ".$name."!</a></td>
<td bgcolor='#575757'><p><font face='Verdana' size='1' color='ffffff'><center>".$name."<p><img src='".$imageurl."' /><p>".$cost."<p><a href='buy.php?aID=".aID."'>Buy a ".$name."!</a></td>
<td bgcolor='#575757'><p><font face='Verdana' size='1' color='ffffff'><center>".$name."<p><img src='".$imageurl."' /><p>".$cost."<p><a href='buy.php?aID=".aID."'>Buy a ".$name."!</a></td>
</tr>
<tr>
<td bgcolor='#575757'><p><font face='Verdana' size='1' color='ffffff'><center>".$name."<p><img src='".$imageurl."' /><p>".$cost."<p><a href='buy.php?aID=".aID."'>Buy a ".$name."!</a></td>
<td></td>
<td bgcolor='#575757'><p><font face='Verdana' size='1' color='ffffff'><center>".$name."<p><img src='".$imageurl."' /><p>".$cost."<p><a href='buy.php?aID=".aID."'>Buy a ".$name."!</a></td>
</tr>
</table></center>
Unfortunately, it repeats, and makes 5 tables all in the order i want, but all 5 cells have the same adoptable and each table displays a different adoptable. In case I'm talking gibberish, here's what i mean: http://sylonia.comyr.com/adoptables/shop.php
  #58  
Old 04-03-2009, 07:31 PM
kisazeky kisazeky is offline
Member
 
Join Date: Mar 2009
Posts: 44
Credits: 18,952
kisazeky
Default RE: Currency for leveling up / Adoptable shop (NEW: Prevent stealing!)

Quote:
Originally Posted by Ashje
Quote:
Originally Posted by Ashje
Quote:
Originally Posted by densaugeo
I still don't get how to add a pet to the shop :P Heh, i've looked over the files..but I'm not sure what to change or add...
Don't add or change anything. Just run the SQL Queries in Post 43.

Quote:
Originally Posted by kisazeky
Ok, with the update, there is now no need to add new columns. It adds "shop" to the "memberlevel" column and the cost to the "description" table.

Also this is a more secure buying method so people cannot get them for free.
How is it safer? It is much easier to add a kind column with the old one. Anyways, thanks for the buyconfirm. =)

EDIT:
buyconfirm doesn't work, the new shop file doesn't work (it screws up the template and when you buy something, nothing appears on the page...
EDIT: The stealing thing doesn't work either, it just prevents any user adopting the main adoptables, not in the shop.
Your shop adoptables need to have something other than free in their memberlevel column. Put shop in memberlevel.
  #59  
Old 04-03-2009, 10:41 PM
Blue Icebox Blue Icebox is offline
Member
 
Join Date: Jan 2009
Posts: 45
Credits: 5,002
Blue Icebox
Default RE: Currency for leveling up / Adoptable shop (NEW: Prevent stealing!)

OMG this is going to be so helpful on my site! *squeals!*

Thank you sooooooooo much for making this!!! :D
  #60  
Old 04-04-2009, 04:59 PM
Ashje Ashje is offline
Member
 
Join Date: Jan 2009
Posts: 179
Credits: 9,952
Ashje
Default RE: Currency for leveling up / Adoptable shop (Updated levelup.php with generic message)

Got it. You forgot to add this:
PHP Code:
$memberlevel=@mysql_result($result,$i,"memberlevel"); 
to the mysql results.
Closed Thread

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
leveling idea Nemesis Suggestions and Feature Requests 2 01-08-2012 12:23 PM
Shop to buy an adoptable? SilverDragonTears Questions and Supports 8 08-16-2011 02:17 PM
Adoptable shop new version! [UPDATED!] mapleblade Mys v1.1.x Mods 57 08-15-2011 07:50 AM
How to create a a battle system ,shop and currency?? SieghartZeke Questions and Supports 9 11-02-2009 12:15 AM
Pets Not leveling up Seapyramid Questions and Supports 4 02-02-2009 05:03 PM


All times are GMT -5. The time now is 07:53 AM.

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