Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 03-22-2012, 06:10 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 81,251
SilverDragonTears is on a distinguished road
Default Will pay for this....

I want more excitement when clicking on pets. What I want is when you pull them from the database to show to a user for adoption, that some of them don't show up as often as the others, making them rare.

I will pay for someone to help me with this (Even Hof :P)

Serious inquiries only please.
__________________

Check out SilvaTales
Reply With Quote
  #2  
Old 03-22-2012, 06:30 PM
!Alive !Alive is offline
Member
 
Join Date: Feb 2012
Posts: 39
Gender: Male
Credits: 1,054
!Alive is on a distinguished road
Default

Could you explain in a more clear fashion exactly what you are trying to accomplish?
If I understand in the slightest you're wanting that when a user clicks on an adoptable they have a chance of finding/adopting an adoptable for their own. And that some of the prize adoptables are more rare to find. Right.
If this is kind of what you are wanting I may be able to help. I have a similar sort of random prize/adoptable getting system that works for me. There is just a random chance of stumbling across an adoptable just by browsing. It shouldn't be too hard to make so certain adoptables are more rare than others.
Reply With Quote
  #3  
Old 03-22-2012, 06:39 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 81,251
SilverDragonTears is on a distinguished road
Default

Well not really, lol. But your idea may work. Can you explain your process a bit more?
__________________

Check out SilvaTales
Reply With Quote
  #4  
Old 03-22-2012, 06:57 PM
!Alive !Alive is offline
Member
 
Join Date: Feb 2012
Posts: 39
Gender: Male
Credits: 1,054
!Alive is on a distinguished road
Default

First I added a column to the (prefix)_adoptables table. With a numeric value, I suppose a text/varchar would work too. This number decides whether or not the adotpable is available to be found randomly. You should be able to use a differnt number for a rarity system.
Then I created a random prize php page that you are redirected to if you have found something. I modified the random secure adoption mod code from the mod section to fix what I wanted. Once I had that working a added a piece of code that randomly picks a number and if the number I choose is generated it links to the page. I have an additional variable that I added to prevent people from cheating to get the prize.
I think that's it in a nutshell. X3
So, what exactly are you trying to achieve?
Reply With Quote
  #5  
Old 03-22-2012, 07:15 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 81,251
SilverDragonTears is on a distinguished road
Default

Well that went over my head!! lol

Ever played Dragon Cave? That's what I'm trying to do.. As you refresh the adoption page the adopts show up in threes randomly, and some of them don't pop us as often as the others....

Make better sense?
__________________

Check out SilvaTales
Reply With Quote
  #6  
Old 03-22-2012, 07:24 PM
!Alive !Alive is offline
Member
 
Join Date: Feb 2012
Posts: 39
Gender: Male
Credits: 1,054
!Alive is on a distinguished road
Default

Hasn't played Dragon Cave, but I think I better understand.

So on the actual page where you adopt pets from.(adopt.php) Show three random adoptables, some appearing less often than others.
That more like what you mean?
Reply With Quote
  #7  
Old 03-22-2012, 07:33 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 81,251
SilverDragonTears is on a distinguished road
Default

Exactly what I mean :) Mine already show three at a time... but randomly... simply by using "LIMIT 3 RAND()" Doesn't help me to show some fewer times than others.
__________________

Check out SilvaTales
Reply With Quote
  #8  
Old 03-22-2012, 07:43 PM
!Alive !Alive is offline
Member
 
Join Date: Feb 2012
Posts: 39
Gender: Male
Credits: 1,054
!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
  #9  
Old 03-22-2012, 07:53 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 81,251
SilverDragonTears is on a distinguished road
Default

I would love to have the code if it works!!
__________________

Check out SilvaTales
Reply With Quote
  #10  
Old 03-22-2012, 08:33 PM
!Alive !Alive is offline
Member
 
Join Date: Feb 2012
Posts: 39
Gender: Male
Credits: 1,054
!Alive is on a distinguished road
Default

Okay so I got the rarity thing working pretty easily. But I only have it showing one adoptable. I could have it show three but with what I have it would show three of the same rarity. I'm still trying to come up with a way to run it so that it will work with 3.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 06:55 AM.

Currently Active Users: 657 (0 members and 657 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636