Jump to content

Help :D


marcus

Recommended Posts

I am making a game with some people and we are stuck on how we would do a restock system.

Our only idea was to run a cron every 1 minute and if the set number in the database equaled the one in the cron then it would run.

Also, with the items, I were thinking of an array rand.

Have an array with like 1 = item number 1, 5 = item#5 etc...

And have a random number between 10 and 20 and then have it insert into the database. If somebody bought the item then it would take it remove it from the database. Is this all anywheres possible?
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.