|
#1
|
|||
|
|||
Random Adoption Process ?
I want to do random adoption process so 4 random egg will appear horizontally and user can click them to adopt them and there will be no submit button or naming option and they have chances to adopt rare egg very less...
|
#2
|
||||
|
||||
there's an old thread here with a code doing what you want, but you will need to edit it so it can work with the new script:
http://mysidiaadoptables.com/forum/s...ead.php?t=3527 I manage to make it work, so is not that hard ^^ you just need to add a new row in the database in the adopt_adoptables called rarity and made the changes to the code so it can appear PHP Code:
I have mine below the lines: PHP Code:
PHP Code:
PHP Code:
PHP Code:
hope this can be use full for you^^ this code shows 3 eggs at the same time. |
#3
|
||||
|
||||
Quote:
|
#4
|
|||
|
|||
Thanks for the help :)
|
#5
|
|||
|
|||
Hey guys. I started using this too. But there's a big problem I can't seem to figure out. If someone were to get a really rare adopt, all they would have to do is keep refreshing to get the same one over and over again. Any way around that?
|
#6
|
|||
|
|||
i thinks its random So it won't happen :)
|
#7
|
|||
|
|||
Doesn't seem random to me. I keep getting the same thing over and over when I refresh after I adopt one. I have it set up to cost money, so the money does reduce. But it does give me the same adopt
|
#8
|
||||
|
||||
You could probably work around this by setting it up so that once they adopt you quickly redirect them, which would mostly disable them from being able to refresh to just keep getting the same pet.
__________________
My Mods Site (1.3.4, 2020 Mods) |
#9
|
||||
|
||||
you can change the value in (1,300); 1 means one adopt and 300 the amount of clicks so is 1 adopt every 300 clicks, if i remember correctly from the original thread, maybe you can change it to a bigger number?
I dint make any more changes, but i think theres was a solution for that in the original thread... you just need to edit it to make it work in the new script no need to edit the code just paste this: http://mysidiaadoptables.com/forum/s...5&postcount=36 in the functions.php and $clicked = 0; in the adopt.php i pasted mine below $total = ($ids)?count($ids):0; Nevermind... Dont work on a cellphone :/ But it seems to work on a computer/laptop i used firefox to test it Last edited by kristhasirah; 02-19-2017 at 05:32 PM. |
#10
|
|||
|
|||
I don't really know how to make a gif pic to show you what I mean. A redirect would work, but wouldn't show them the "Congrats you got this adopt" unless there's a way to show the same page in like a fake page type thing, which I don't know how to go about doing (Plus, "back" would still give them a loophole). Or a way to unset post, but I'm not really sure where to put that or how to set that up. But to recreate this (glitch):
1. Click which adopt you want. 2. Click the "Adopt me" button 3. When it shows you which adopt you got, just keep refreshing. In Chrome, it'll ask you if you want to submit form resubmission. You'll get the same one every time Last edited by Chaos77777; 02-19-2017 at 05:27 PM. |
|
|
What's New? |
What's Hot? |
What's Popular? |