Forum Topic: Simple Experience Points Scoreboard

(82 views • 3 replies)

This topic is 1 page long.

<< < > >>
None

fenix

Reply To Post Reply & Quote

Posted at: 4/14/06 03:12 PM

fenix LIGHT LEVEL 22

Sign-Up: 09/07/05

Posts: 1,900

for my website, i want you to be able to get experience points everyday, but make it so you can only collect them once a day.

i am able to do this thorugh flash, but then i don't know any possible way to make you able to have a username and such.

right now all i am really worrying about is the experience points part, the username stuff can wait. does anyone know how i would be able to do this through php or any other programming languages?

my AIM is fenix1163


None

SpamBurger

Reply To Post Reply & Quote

Posted at: 4/14/06 05:22 PM

SpamBurger NEUTRAL LEVEL 15

Sign-Up: 07/12/05

Posts: 4,620

An experience points system is easy, so is a member system. I can give you a general idea on how to do it right here, or if you dont know anything about programming, AIM me at BurgerDog50 and I will happily code something for you. Anyways, to make an experience points system, what I would do is this:

In mysql, have a column for last deposit, and a column for total experience points.

When the user deposits, record the date such as 4/14/06 to the last deposit column.

To stop users from depositing more than once a day, check the current date against the date in the last deposit column. If they are equal, stop them from depositing.

To record experience points, simply take the current amount of experience points of the user, add any experience points they had gotten through the day to the current amount of experience points, then update the total experience points column with the new amount.

Again, if you cant code this by yourself, AIM me at BurgerDog50 and I will code it for you.

"However, the game received only two orders, one of which Molyneux speculated was from his mother." -Peter Molyneux's first game The Entrepreneur


None

Claxor

Reply To Post Reply & Quote

Posted at: 4/14/06 06:27 PM

Claxor DARK LEVEL 10

Sign-Up: 10/21/05

Posts: 2,467

I would go for having a column in the DB that sais if you have got your experience that day, that is reset every xx.xx.

BBS Signature

None

fenix

Reply To Post Reply & Quote

Posted at: 4/15/06 12:46 AM

fenix LIGHT LEVEL 22

Sign-Up: 09/07/05

Posts: 1,900

At 4/14/06 05:22 PM, SpamBurger wrote: stuff

i was hoping you would come help me :)

i'll talk to you on AIM next time you log on


All times are Eastern Standard Time (GMT -5) | Current Time: 01:24 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!