Twelve Years of Service
Posts: 220
Threads: 6
RE: What does this code do? 06-06-2014, 10:19 PM
#2
When you click the button/link it executes the that javascript which:
Gets the element with the id named 'action' and sets it to the value takeBet. I'd guess this is a hidden input element.
Similarly it does the same for an element with the id 'betid' setting it to the value 253307 which likely changes per bet.
Finally it submits the form which I imagine both of these elements were part of
It returns false to prevent the click action from continuing and actually executing its normal action(like changing pages if its a link)
•
Twelve Years of Service
Posts: 12
Threads: 3
RE: What does this code do? 06-07-2014, 12:43 AM
#3
Is there a way to be able to tell the outcome of when you click the link... whether or not you win or lose the bet?
•
Twelve Years of Service
Posts: 31
Threads: 3
RE: What does this code do? 06-07-2014, 09:44 AM
#4
If I understand correctly, once the form is submitted the server "takes" your bet and computes whether you won or not internally.
In words, the random event takes place only after your bet, so you cannot tell if you are going to win or lose.
As an alternative, you could try to hack the Random Number Generator (RNG) used by the server, but this sounds infeasible.
•
Twelve Years of Service
Posts: 12
Threads: 3
RE: What does this code do? 06-08-2014, 03:21 AM
#6
It isn't a gambling site, it is a MMORPG with a 50/50 bet feature in it.
•