View Single Post
  #8  
Old 03-22-2012, 07:43 PM
!Alive !Alive is offline
Member
 
Join Date: Feb 2012
Posts: 39
Gender: Male
Credits: 1,108
!Alive is on a distinguished road
Default

Well then you could set up a column in your adoptables table for rarity. You could use numbers, text, or varchar. In numbers different rarities would be numbers like 1,2,or 3. Or with text/varchar it could actually be labeled common, uncommon, rare, ect. Then you would run a random number to select a query that would pull the rarity from the adoptable table, randomize which to choose and show it to the user. Do this for each adoptable you wish to show.

Something like that should work. I think I should go play with this to see if I can make it work for me before trying to present any code.
Reply With Quote