Mysidia Adoptables Support Forum  

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

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 03-24-2009, 10:05 PM
Killgore Killgore is offline
Member
 
Join Date: Dec 2008
Posts: 82
Credits: 8,934
Killgore is an unknown quantity at this point
Default Just need to know how i can start this

Okay, i wanted to make that "shop" idea in the Suggestions forum. I made the basic HTML page, and this is what i have so far: http://sylonia.comyr.com/adoptables/gem.php

Quote:
What i want to do, is edit levelup.php (or is i a different file?) so that it would give the user one pearl of any random color (the dots on top) and one out of every 10 or so clicks, give them an emerald of any random color (the gem underneath the pearls). When they click an adoptable and receive the pearl or emerald, the corresponding number on the "shop" page is incremented by 1. When the user wants to adopt one, it checks to see if the user has enough pearls or emeralds to buy it. If yes, it proceeds with the adoption and subtracts the price that corresponds with the creature adopted, from their total balance of that particular currency.
1: Would i create a new table with the user ID and/or username, plus how much of each gem they have, or would i be able to add new fields to the "users" section already in place?
2: Which files would i need to edit to make this happen?
3: I've gone through w3schools.com to find a way to do this, but i only found bits and pieces. Does anyone have an excellent PHP tutorial website they can refer me to?

When i finish this to my satisfaction (I'm a huge perfectionist, so it will be good ;)), I'll be putting this up in the mods section :)
Reply With Quote
  #2  
Old 03-25-2009, 09:54 AM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,701
BMR777 is on a distinguished road
Default RE: Just need to know how i can start this

Quote:
1: Would i create a new table with the user ID and/or username, plus how much of each gem they have, or would i be able to add new fields to the "users" section already in place?
I would suggest making a new database table that records how many emeralds and pearls the user has along with how many clicks are required to get another emerald or pearl. Then in levelup.php you would have to run a check as the clicks are counted to see if the user has enough clicks to get an emerald or pearl. Then you would on your custom page whenever the user redeems one of these items, you would decrease their emerald / pearl count in the table.

Quote:
2: Which files would i need to edit to make this happen?
Your custom file would need to be edited, along with levelup.php. You'll also probably want to make a new database table for this. :)

Hope it helps,
Brandon
Reply With Quote
  #3  
Old 03-25-2009, 02:27 PM
Killgore Killgore is offline
Member
 
Join Date: Dec 2008
Posts: 82
Credits: 8,934
Killgore is an unknown quantity at this point
Default RE: Just need to know how i can start this

Okay, that's a big help as to how i would start it. I'm almost positive I'll need more help sometime in the future ;)
Reply With Quote
Reply


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
Warning function.session-start Error - Can't Log In Zayin Questions and Supports 4 01-05-2013 09:33 PM
Start-Adoptable DaZeus Questions and Supports 0 03-14-2011 07:14 AM
how to start trainerluke Questions and Supports 5 03-29-2009 04:52 PM


All times are GMT -5. The time now is 03:18 AM.

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