![]() |
|
#1
|
|||
|
|||
![]()
XD Glad to.
Lets see to start I suppose I'l go over how the rarity thing actually works. First you'll see PHP Code:
Rare 1 in 100 Ultrarare 1 in 200 You can change the chances simply by the last(max) number of the rand function. Moving on to the actual selecting of the adoptables. You will see this: PHP Code:
Since the $onlyone variable is shown I'll go over what it does now. The reason for this variable is to check if a rarer adoptable(anything above common) is already selected to be shown. If one isn't chosen choose one if one is already chosen show a common one. I think the last piece is the $clicked variable that only allows you to click on(adopt) an egg once. This works by setting $clicked to 0 when the page is loaded When the egg is clicked the canclick function runs checking the value of clicked. If it is 0 then the egg is adopted if it is a 1 the user can not adopt it. I think I covered it. If you want/need more clarification fell free to ask. *is not confident I explained it really well* X3 |
![]() |
Thread Tools | |
Display Modes | |
|
|
What's New? |
What's Hot? |
What's Popular? |