Bitcoin Forum
November 11, 2024, 07:13:55 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 [47] 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 »
  Print  
Author Topic: Seuntjie' Dice bot programmers mode discussion.  (Read 125399 times)
houseworx
Full Member
***
Offline Offline

Activity: 319
Merit: 100


View Profile
November 30, 2017, 09:25:29 PM
 #921

Hi
I am looking for a script that inside normal martingale will monitor for for the numbers and bet if they will show twice in the row?
So for example we do have normal 50% strategy with 100% on loose but if there will be 2 in the row below 1% it will bet 10% of balance below 1% and if it is above 99% it will bet 10% of balance above 99%?
Is the idea explained correctly?


Doesnt seem that hard to accomplish but just for your interest, waiting for these kind of patterns doesnt change your odds.

It's the same as prerolling. You will only bet after your pattern occured which makes you bet less often and will only postpone the possible loss.

please don't write your pessimistic stuff all the time.



you all people are angry because losed alot of money in dice, and now are saying to all other peoples, that there is no strategy to beat it(because you don't have enought knowledge to figure out it), that is why you all are doing it?! Cheesy Cheesy Cheesy


otherwise i dont understand all you pesimists.

Cant remember saying something similar here but ok. I just tried to prevent someone from thinking that these kind of bets change something (I am fine with it as long as it is for fun purposes).

I think I am currently in a plus on primedice Smiley but you cant possibly think that there is a winning strategy which will gain you profit over an inifinte amount of time, are you?


on how much bets you are in +?

there is difference between words "think" and allmoust "know" Wink

how much amount of bets you want like proof of profitable playing?!

after some time, if i will not be lazy, i will make a some kind of "forum blog" for all you who thinking in your way.

████          O W N R   W A L L E T          ████   VISA PREPAID CARD    ████  Use crypto to pay in stores with OWNR  ████
❱❱❱❱ ❱❱❱ ❱❱ ❱     Buy, send, receive and exchange crypto        VISA    mastercard   SPA    UnionPay     ❰ ❰❰ ❰❰❰ ❰❰❰❰
BLOG       TWITTER     ██ █▌█ ▌     Manage crypto and VISA card in OWNR Wallet app    ▐ █▐█ ██     REDDIT   YOUTUBE
Nicoletta
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
December 01, 2017, 01:53:15 AM
 #922

Sorry I was not asking f it is possible to win or not
I was asking how to write the script that will
bet normal martingale but in the same time will count i there are rolls above 99% or below 1% in the row and if they are 2 will place the bet below or above of 10% o the balance not interrupting the main strategy?
It would be nice i fit was counting also how many strikes like that was there already and if there was 5
change minimal row to 3?
Please
Anyone know how to do that?
 
Nicoletta
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
December 01, 2017, 05:34:56 PM
 #923

Any help welcome how to make a script hunting or row of numbers below or above?
B4RF
Hero Member
*****
Offline Offline

Activity: 813
Merit: 507


View Profile
December 01, 2017, 06:11:14 PM
 #924

Sorry I was not asking f it is possible to win or not
I was asking how to write the script that will
bet normal martingale but in the same time will count i there are rolls above 99% or below 1% in the row and if they are 2 will place the bet below or above of 10% o the balance not interrupting the main strategy?
It would be nice i fit was counting also how many strikes like that was there already and if there was 5
change minimal row to 3?
Please
Anyone know how to do that?
 

I did no testing so there might be errors.
Use it at your own risk and you might want to adjust the percentages based on your dice site.
I think 99% bets are not even allowed on most sites right?

Code:
basebet=0.00000001
nextbet=basebet
chance=49.5

highCount=0
lowCount=0
previousbetBackup=basebet

function dobet()

if highCount >= 2 then
bethigh = false
nextbet = balance * 0.1
chance=99.0
else
if lowCount >= 2 then
bethigh = true
nextbet = balance * 0.1
chance=99.0
else
chance=49.5

if win then     
   nextbet = basebet
else   
   nextbet = previousbetBackup*2
end

previousbetBackup = nextbet
end
end

if lastBet.Roll > 99 then
highCount = highCount+1
else
highCount = 0
end

if lastBet.Roll < 1 then
lowCount = lowCount+1
else
lowCount = 0
end
end


▄▄▄████████▄▄▄
▄██████████████████▄
▄██████████████████████▄
██████████████████████████
████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
████████████████████████████
██████████████████████████
▀██████████████████████▀
▀██████████████████▀
▀▀▀████████▀▀▀
   ███████
██████████
██████████
██████████
██████████
██████████
██████████
██████████
██████████
██████████
██████████
██████████
███████
BTC  ◉PLAY  ◉XMR  ◉DOGE  ◉BCH  ◉STRAT  ◉ETH  ◉GAS  ◉LTC  ◉DASH  ◉PPC
     ▄▄██████████████▄▄
  ▄██████████████████████▄        █████
▄██████████████████████████▄      █████
████ ▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄ ████     ▄██▀
████ █████ ██████ █████ ████    ▄██▀
████ █████ ██████ █████ ████    ██▀
████ █████ ██████ █████ ████    ██
████ ▀▀▀▀▀ ▀▀▀▀▀▀ ▀▀▀▀▀ ████ ▄██████▄
████████████████████████████ ████████
███████▀            ▀███████ ▀██████▀
█████▀                ▀█████
▀██████████████████████████▀
  ▀▀████████████████████▀▀ 
✔️DICE           
✔️BLACKJACK
✔️PLINKO
✔️VIDEO POKER
✔️ROULETTE     
✔️LOTTO
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4361

<insert witty quote here>


View Profile
December 01, 2017, 06:42:50 PM
 #925

I think 99% bets are not even allowed on most sites right?
I think you got it back to front... and they're wanting to wager 10% if there are 2 rolls in a row under 1 or above 99... then wager on the 1% chance bets... not on the 99% chance bets Wink

ie.

Roll 1 = 0.74
Roll 2 = 0.87
Roll 3 = wager 10% of balance on chance = 1, bethigh = false (ie. bet low)

or

Roll 1 = 99.4
Roll 2 = 99.87
Roll 3 = wager 10% of balance on change = 1, bethigh = true (ie. bet high)

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Nicoletta
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
December 01, 2017, 07:48:25 PM
 #926

I think 99% bets are not even allowed on most sites right?
I think you got it back to front... and they're wanting to wager 10% if there are 2 rolls in a row under 1 or above 99... then wager on the 1% chance bets... not on the 99% chance bets Wink

ie.

Roll 1 = 0.74
Roll 2 = 0.87
Roll 3 = wager 10% of balance on chance = 1, bethigh = false (ie. bet low)

or

Roll 1 = 99.4
Roll 2 = 99.87
Roll 3 = wager 10% of balance on change = 1, bethigh = true (ie. bet high)

No No
So regular bet is for example martingale 1sat 49.5 and 100% increase on loose
i there will be 2 over 99% in the row i wish to bet 10% of the balance opposite direction on 99%chance as there is low chance of getting the third one.
So the script should monitor for >99 and <1 and act if there is 2 in the row.
than it should count how many of this hi or low strikes was and let say after 5 it should bet only if there is the row of 3


Nicoletta
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
December 01, 2017, 07:57:50 PM
Last edit: December 01, 2017, 10:11:23 PM by Nicoletta
 #927

well almost
Code:
basebet=0.00000001
nextbet=basebet
chance=49.5

highCount=0
lowCount=0
previousbetBackup=basebet

function dobet()

if highCount >= 2 then
bethigh = false
nextbet = balance * 0.1
chance=99.0
else
if lowCount >= 2 then
bethigh = true
nextbet = balance * 0.1
chance=99.0
else
chance=49.5

if win then      
  nextbet = basebet
else  
  nextbet = previousbetBackup*2
end

previousbetBackup = nextbet
end
end

if lastBet.Roll > 99 then
highCount = highCount+1
else
highCount = 0
end

if lastBet.Roll < 1 then
lowCount = lowCount+1
else
lowCount = 0
end
end
it looks like it waits one bet before the correct bet i do not know why?
anyone knows why after 2 bets i am looking it does 3rd bet on 49.5% and then it does the 99% bet instead o directly after?
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4361

<insert witty quote here>


View Profile
December 02, 2017, 05:02:20 AM
 #928

No No
So regular bet is for example martingale 1sat 49.5 and 100% increase on loose
i there will be 2 over 99% in the row i wish to bet 10% of the balance opposite direction on 99%chance as there is low chance of getting the third one.
So the script should monitor for >99 and <1 and act if there is 2 in the row.
than it should count how many of this hi or low strikes was and let say after 5 it should bet only if there is the row of 3
Ahhhh ok, yeah... that makes way more sense! Wink

You're looking for clusters of <1 or >99 rolls... and then wager 10% of current balance on the opposite, hoping you don't get 3x "<1" or ">99" rolls in a row.

But you're also wanting to count these clusters... so after 5 clusters, change so you only bet 10% if there were 3x "<1" or ">99" rolls..


well almost
it looks like it waits one bet before the correct bet i do not know why?
anyone knows why after 2 bets i am looking it does 3rd bet on 49.5% and then it does the 99% bet instead o directly after?
It's because the check for highCount >= 2 is effectively being done BEFORE the checking of the previous roll...

so, what is happening is that the script is checking if highCount >= 2... then it actually checks the previous roll and increments the count... it should be the other way around and increment first and then check... like this:

Code:
basebet=0.00000001
nextbet=basebet
chance=49.5

highCount=0
lowCount=0
previousbetBackup=basebet

function dobet()

    if lastBet.Roll > 99 then
        highCount = highCount+1
    else
        highCount = 0
    end

    if lastBet.Roll < 1 then
        lowCount = lowCount+1
    else
        lowCount = 0
    end

    if highCount >= 2 then
        bethigh = false
        nextbet = balance * 0.1
        chance=99.0
    else if lowCount >= 2 then
        bethigh = true
        nextbet = balance * 0.1
        chance=99.0
    else
        chance=49.5

        if win then      
            nextbet = basebet
        else  
            nextbet = previousbetBackup*2
        end
previousbetBackup = nextbet
    end

end

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
seuntjie
Legendary
*
Offline Offline

Activity: 1717
Merit: 1125



View Profile WWW
December 04, 2017, 12:14:23 PM
 #929

For those that are not aware (Which I guess is most of you, I haven't posted any documentation about it), a few versions ago I added a site object to the programmer mode that contains details of the site you're currently logged in to in the bot. The "site" object is of type SiteDetails:

Code:
public class SiteDetails
        {
            public string name { get; set; }
            public decimal edge { get; set; }
            public decimal maxroll { get; set; }
            public bool cantip { get; set; }
            public bool tipusingname { get; set; }
            public bool canwithdraw { get; set; }
            public bool canresetseed { get; set; }
            public bool caninvest { get; set; }
            public string siteurl { get; set; }
        }

You can use the details to determine whether or not you should try to tip/withdraw, what calculate chance/payout accurately etc. I will at some point implement functions for calculating chance/payout and similar functions to the object as well, but I have no ETA for that.


An example of using the object:
Code:
print('You\'re betting on ' + site.name)
payout = (100.0-site.edge)/chance
if bethigh then
 betwin = lastBet.Roll>(site.maxroll-chance)
else
 betwin = lastBet.Roll<(chance)
end
if site.cantip then
 if site.tipusingname then
  tip('seuntjie',1)
 else
  tip('91380',1)
 end
else if site.canwithdraw then
 withdraw('address',1)
end

Mamasmurf19
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
December 04, 2017, 01:17:43 PM
 #930

I have read in a different topic yesterday, that the rule of the average sum applies to random generators. I checked it myself and so far it turns to be correct. The average number from hundreds, thousands, ten thousands rolls is between 49 and 51 with slight exceptions regarding the hundreds. I am not a programmer myself, but is it possible a script to be written, which analyzes the last 50 rolls for example and if the average is displaced from its center ( which we accept that is 50) to start betting on the other side until balance is reached. Not quite sure I am explaining myself clearly... if you have average of 40 you start betting high until you get to 49 for example. Hope you understand what I mean. Not sure is it a possible task either. Anyways it is a fresh idea worth checking it I believe.
Cheers.
houseworx
Full Member
***
Offline Offline

Activity: 319
Merit: 100


View Profile
December 10, 2017, 04:13:47 PM
 #931

anyone can tell me what are doing this command lines?

if (randomHighLow) then
if (math.random() < .0237) then bethigh = !bethigh end


if script are using only in bethigh mode?! i think nothing, right?

and why there is some 0.0237? any clue?!

████          O W N R   W A L L E T          ████   VISA PREPAID CARD    ████  Use crypto to pay in stores with OWNR  ████
❱❱❱❱ ❱❱❱ ❱❱ ❱     Buy, send, receive and exchange crypto        VISA    mastercard   SPA    UnionPay     ❰ ❰❰ ❰❰❰ ❰❰❰❰
BLOG       TWITTER     ██ █▌█ ▌     Manage crypto and VISA card in OWNR Wallet app    ▐ █▐█ ██     REDDIT   YOUTUBE
chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
December 10, 2017, 04:25:20 PM
 #932

anyone can tell me what are doing this command lines?

if (randomHighLow) then
if (math.random() < .0237) then bethigh = !bethigh end


if script are using only in bethigh mode?! i think nothing, right?

and why there is some 0.0237? any clue?!

randonHighLow must be a true/false variable.  If it's true then generate a random number between 0 and 1.  So .0237 is 2.37%, so 2.37% of the time switch between betting high and low.   

chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
December 15, 2017, 04:27:15 AM
 #933

I hope someone can help me with my script or my idea.
Im totaly new to this :/

I would like to

1. roll the dice with basebet 0.00000001 Chance 49.5%
2. After 4 Wins (not especially in a row) -> nextbet 0.00001000
3. If bet lost = previousbet*2 (repeat 6x times if its still a loosing bet. After 6x losses in a row go back to basebet),
    if bet won nextbet = basebet (0.00000001)
4. Stop after target = 0.00010000


I tried something like that... but well its not doing what i want it to do Cry

Code:
startbalance=balance

function dobet()

chance=49.50
basebet=0.00000001

if win then
wincounter +=1
end

if wincounter>3 then
wincounter=0
nextbet = 0.00001000    <-- #Don´t know why he is not doing this bet Bot jumps to #A or #B

if balance > startbalance then
nextbet = basebet  <-- #A
else
nextbet=previousbet*2 <-- #B
end

if currentstreak%6==0 then <-- to avoid loosing strikes but somehow its also not working :/
nextbet=basebet
end
end

also the part with the target is missing... that the bot should stop after he reaches  0.00010000

I hope you can help me ... im totaly new to this .. Thanks

   You look close...   Lua is not the best at telling you whats wrong.  I think the whole problem is you didn't define wincounter.  Before the function statement add wincounter = 0.  Also add nextbet = .00000001 and chance = 49.5

   The very first bet is rolled before the function is called, so you need to set that up. 

You could actually move the lines of code you only need to set once up there. 

 

HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4361

<insert witty quote here>


View Profile
December 15, 2017, 07:35:31 AM
 #934

It is because you say:

nextbet = 0.00001000

and then IMMEDIATELY give the script two options:

if balance > startbalance then
  nextbet = basetbet
else
  nextbet = previousbet*2
end

So regardless of which option is true... nextbet is going to get changed... EVERY time... it will either bet basebet or it will be previousbet*2

Your "if currentstreak%6==0 then" statement is not working to stop losing streaks... because it is INSIDE the "if wincounter > 3" block... so that condition is ONLY checked if wincounter > 3... so it will only trigger when you have a losing streak of 6 AFTER wincounter > 3... but you immediately set wincounter to 0 as soon as getting in, so you'll NEVER have the situation where your losing streak is 6 and wincounter > 3.

WARNING: This code is mostly untested... I did a quick check and it *seems* to work as desired... use at your own risk! Wink

Code:
-- FourWins Strategy for fwalser
-- coded by HCP

startbalance = balance
target = 0.00010000

chance = 49.50
basebet = 0.00000001
bigbet = 0.00001000
wincounter = 0
fourWins = false

nextbet = basebet

function dobet()
  
  if win then
    wincounter += 1

    if fourWins then
      --win while betting big, reset back to base
      nextbet = basebet
      fourWins = false
      wincounter = 0

    else
      --win while basebetting, check if we have had 4 wins
      if wincounter > 3 then
        wincounter = 0
        fourWins = true
        nextbet = bigbet
      else
        nextbet = basebet
      end

    end

  else
    -- we lost
    if fourWins then
      -- bigbetting, see if our lossstreak is 6 losses
      if currentstreak == -6 then
        -- 6x loss streak, cut our losses and reset
        fourWins = false
        wincounter = 0
        nextbet = basebet
      else
        -- loss while big betting, double up!
        nextbet = previousbet*2
      end
    else
      -- standard loss
      nextbet = basebet
    end

  end

  --Profit Target check
  if ((balance - startbalance) > target) then
    --target profit reached
    print("Target reached! STOPPING!")
    nextbet = 0
    stop()
  end

end

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
stormbreaker1
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
December 18, 2017, 05:25:30 AM
 #935

tnx HCP i go to try script with doge Cheesy
stormbreaker1
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
December 18, 2017, 05:49:01 AM
 #936

https://imgur.com/a/TbGc4

for now works fine, i change this  (if currentstreak == -9 then )
houseworx
Full Member
***
Offline Offline

Activity: 319
Merit: 100


View Profile
December 18, 2017, 04:24:16 PM
 #937

looking for people what are good in mathematical formula making, please pm.

████          O W N R   W A L L E T          ████   VISA PREPAID CARD    ████  Use crypto to pay in stores with OWNR  ████
❱❱❱❱ ❱❱❱ ❱❱ ❱     Buy, send, receive and exchange crypto        VISA    mastercard   SPA    UnionPay     ❰ ❰❰ ❰❰❰ ❰❰❰❰
BLOG       TWITTER     ██ █▌█ ▌     Manage crypto and VISA card in OWNR Wallet app    ▐ █▐█ ██     REDDIT   YOUTUBE
Nicoletta
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
December 20, 2017, 11:50:31 AM
 #938

Hello my helpful friends.
I need a script to
bet 1 sat on 49.50
if win bet the same bet i lose bet x2 until it gets a profit 100 sat once profit 100 sat reset and get back to 1 sat bet
all this until total profit from start  reaches 1000 sat than stop

how to archive that?
houseworx
Full Member
***
Offline Offline

Activity: 319
Merit: 100


View Profile
December 20, 2017, 11:57:54 AM
 #939

Question!

what is better to use, for better/easiest bot reading and don't looping:

Quote
if bla bla then
 bla bla
end

if bla bla then
 bla bla
end

if bla bla then
 bla bla
end

OR

Quote
if bla bla then
 bla bla
elseif
 bla bla
elseif
 bla bla
elseif
 bla bla
end

?!

████          O W N R   W A L L E T          ████   VISA PREPAID CARD    ████  Use crypto to pay in stores with OWNR  ████
❱❱❱❱ ❱❱❱ ❱❱ ❱     Buy, send, receive and exchange crypto        VISA    mastercard   SPA    UnionPay     ❰ ❰❰ ❰❰❰ ❰❰❰❰
BLOG       TWITTER     ██ █▌█ ▌     Manage crypto and VISA card in OWNR Wallet app    ▐ █▐█ ██     REDDIT   YOUTUBE
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4361

<insert witty quote here>


View Profile
December 20, 2017, 05:54:37 PM
 #940

Depending on how you order the if-elseif statements, it *should* be more efficient than multiple individual "if" blocks...

This is because when checking "if-elseif" block, the interpreter will stop checking as soon as it hits the first one that evaluates as true...

However, with individual blocks, the interpreter has to evaluate every single one of them.

Therefore, you should order your if-elseif statements from "most likely" to be true to "least likely" for maximum efficiency.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 [47] 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 »
  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!