Jump to content

Hashdice script / get result or get payout


Alwaysmore
 Share

Recommended Posts

Hey guys, 

Do you know how to get the result of the bet after betting? I mean, you bet 1 for a payout 2 for example, and the result is that you lost (payout was 1.2). How do you get this 1.2 ?

Thanks a lot !

In crash it's game.history[0].

How do you get the same in hash dice?

Link to comment
Share on other sites

  • 2 weeks later...

They removed this I am fairly sure. If one were to use the client side Javascript instead of their sandbox scripts though, you could retrieve this information by

hdg.myBets[0].gameValue.gameValue

 

Link to comment
Share on other sites

It's been sometimes im lacking of devices to figure things  out someone bug my iMac I wouldn't turn on anymore. 

 

So much isn't being fair in the game I wanna know where is the humanity fits this days. It's 

grace 

Link to comment
Share on other sites

its a casino lnot clean water. There is no humanity involved, it isn't a god given right to gamble or to do well at it.  The only claim that it is deterministic, provably fair by their own definition is only that. That the outcome is predetermined based on the inputs.

Link to comment
Share on other sites

right said you can't do it in the sand boxed scripting environment because they aren't passing the complete informaqtion to you so you have to go to the dev console
image.thumb.png.4141dab4ced46c88fb08879ee3c7e095.png

 

Link to comment
Share on other sites

  • 1 month later...

There have been occasions when I faced challenges due to a shortage of devices to help me troubleshoot issues. At one point, my iMac was compromised and refused to power on, which was quite frustrating.

Amidst these experiences, I've noticed instances where fairness seems to be lacking, particularly in certain situations within the gaming realm. It makes me ponder about the role of humanity in the present day and how it fits into these circumstances.

Link to comment
Share on other sites

  • 3 months later...

Thanks a lot.

It doesn't work :(. I tested 3 proposals

log.info('Dernier jeu : ' + game.history[0]);
log.info('Dernier jeu : ' + JSON.stringify(game.history[0],null, 4));
log.info('Dernier jeu : ' + hdg.myBets[0].gameValue.gameValue);

I don't understand why we can get that value in CRASH game, but not for HASH DICE...

Link to comment
Share on other sites

This one like i said works client side not in the sandboxed scripts:

log.info('Dernier jeu : ' + hdg.myBets[0].gameValue.gameValue);

as in use the dev console.  The game object itself does have a history property but it doesn't look like they populate it before handing it to us.

but when i ran log.info(JSON.stringify(game)) it came back with the output:
{"_events":{},"_eventsCount":0,"history":[],"isHistoryWarning":false}
 

so clientside is the only way you will be able to get it.

 

Link to comment
Share on other sites

you rewrite the script to be client side.  Inject an html div that has a form for your input.  Call the javascript object model to actually power the game etc.. Then you will get the full set of information and not just a subset of info that they choose to give to you in the sandbox environment.

Link to comment
Share on other sites

You need to be a member in order to leave a comment

Sign up for a new account in our community. It's easy!

Register a new account

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...