SRFrederick Posted October 3, 2013 Share Posted October 3, 2013 (edited) 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 October 3, 2013 by SRFrederick Quote Link to comment Share on other sites More sharing options...
mac_gyver Posted October 4, 2013 Share Posted October 4, 2013 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). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.