Bitcoin Forum
May 13, 2024, 12:36:01 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Help needed] 999dice.com bet bot (Api problems) [VB.net]  (Read 1010 times)
SloRunner (OP)
Member
**
Offline Offline

Activity: 88
Merit: 10


View Profile
May 13, 2015, 07:18:48 AM
 #1

so here is my problem...

i just can't figure out how to start betting Sad

Code:
Try
            Dim callBack As System.AsyncCallback
            Dim bet As Dice.Client.Web.PlaceBetResponse = DiceWebAPI.BeginPlaceBet(send.Session, payin, 0, 499499, Rnd(), Currencies.Doge, callBack, Nothing)

            MsgBox(bet.Success)
            While bet.Success = False

            End While
            If bet.Success = True Then
                InputBox("", "", bet.BetId)
                Process.Start("https://www.999dice.com/Bets/?b=" & bet.BetId)
                payout = (bet.PayOut - Math.Round((My.Settings.balance * 1000000) / 100000))
                MsgBox("Bet payin: " & payin & vbNewLine & "Payout: " & bet.PayOut)
                profit_text = profit_text + (bet.PayOut - payin)
                profit.Text = "Profit: " & profit_text
            End If
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try

some help maybe?

"Bitcoin: the cutting edge of begging technology." -- Giraffe.BTC
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715603761
Hero Member
*
Offline Offline

Posts: 1715603761

View Profile Personal Message (Offline)

Ignore
1715603761
Reply with quote  #2

1715603761
Report to moderator
1715603761
Hero Member
*
Offline Offline

Posts: 1715603761

View Profile Personal Message (Offline)

Ignore
1715603761
Reply with quote  #2

1715603761
Report to moderator
remon78eg
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
November 27, 2016, 03:41:53 AM
 #2

//C# code

          private void BetComplete(IAsyncResult ar) {
          }

           private void PlaceBet(){
                IAsyncResult res1 = DiceWebAPI.BeginPlaceBet(Session, decimal.Parse("-0.01000000"), 0, 499499, 333, Currency, BetComplete, null);
                while (!res1.IsCompleted)
                {
                    Thread.Sleep(1);
                }
                var res2 = DiceWebAPI.EndPlaceBet(res1);
                if (!res2.Success) { MessageBox.Show("error1"); return; }
                var s = res2.Secret;
           }
remon78eg
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
November 27, 2016, 03:50:47 AM
 #3

        private bool PlaceBet(){
            var res = DiceWebAPI.PlaceBet(Session, decimal.Parse("-0.00000100"), 0, 499499, 333, Currency);
            if (!res.Success) { return false; }
            string s= res.Secret.ToString();
            string b= Session[Currency].Balance.ToString("0.00000000");
            return true;
        }
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!