Jump to content

Advice Needed From PHP Gurus


SRFrederick

Recommended Posts

Hello,

I am fairly new to PHP coding, after having spent years coding websites that just use HTML, CSS script, and JAVA script.  I am working on a project and, when I am seeking the answers for my coding issues, I am just getting overwhelmed.  I am not a typical new user, for I have no issue in obtaining the information myself.  I was hoping that one of you would be able to just steer me in the right direction?

I am working on a post-by-post fantasy rpg where we want to have our character database be set-up with like a Wiki (we are going to use the open source WikiMedia system), but the characters in our rpg earn traits through money earned in in-game events.  What we need is a shop (Bazaar, really) system that allows a user to log into their account, spend the money on what they want, and the wiki automatically gets updated with the purchased item.  We also need for the shop system to allow staff members to reward the players money and for a visual events log to show how much money and why the money was given (to stop people from claiming that we are cheating).

Our money system makes this difficult as well because we keep track of total money earned and what is left to spend.

For example, a character named Fluffy earns 1000 points.

They buy a horn for 800 points.

The system shows that their coffers have 200/1000 points.


I realize that I am very new to all of this and that requests like this are annoying, but I am willing to learn the coding.  I was just wondering if anyone could point me in the right direction.

Thank you kindly for your time.

Edited by SRFrederick
Link to comment
Share on other sites

Our money system makes this difficult as well because we keep track of total money earned and what is left to spend.

 

 

best as i can tell, that's the only problem/question in your post, everything else being a statement of what you are doing.

 

you would keep track of money, the same as any bank/credit account, with a separate transaction record added for each credit (+amount) and debit (-amount). you can calculate the total at any time by simply summing the amounts for any account number. each record would include all the relevant information about it, such as when it was made (date/time), the amount (+/-), who caused the transaction (the owner, shop staff, ...), description (what it was used for/due to).

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.