Jump to content
MakeWebGames

Recommended Posts

Posted

I have seen this on another game and was wondering if anyone can help me get it to work?

I want to add books to a book shop, Each book will give a different amount of IQ when bought and used but i want to be able to add all the books to the shop but then have only 5 show at a time, lets say book A, B, C, D, and E... But then every hour change around to say, Book F, H, A, Z, Y etc etc....

Any one?

Posted

Re: Random Item in shop

$books = array(1=>array(60,61,62,63),2=>array(64,65,66,67),3=>array(68,69,70,71));

$books = $books[mt_rand(1,3)]];

echo $books;

  • 2 weeks later...
Posted

Re: Random Item in shop

So to use array, do i have to create a seperate shops.php or just add it into the current one?

If someone wants to make this mod for me with all sqls, crons and php files.... I will gladly pay for it!

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.   Paste as plain text instead

  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...