0% found this document useful (0 votes)
78 views9 pages

BC Game Script Configuration Guide

Uploaded by

Cesar Iglesias
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views9 pages

BC Game Script Configuration Guide

Uploaded by

Cesar Iglesias
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

var config = {

ScriptTitle: {
label: [Link] Script v3',
type: 'title'
},
baseBet: {
value: [Link],
type: 'number',
label: 'Begin bet'
},
basePayout: {
value: 2,
type: 'number',
label: 'Begin Payout'
},
winRepeat: {
value: 1,
type: 'number',
label: 'Win Repeat'
},
stop: {
value: 1e8,
type: 'number',
label: 'stop if bet >'
},
loseSetTitle: {
label: 'Lose Game Settings (use "/" as separator)',
type: 'title'
},
lossSeriesSet: {
value: 0,
type: 'radio',
label: 'Loss',
options: [{
value: 1,
label: 'on'
},
{
value: 0,
label: 'off'
}
]
},
lossBetSeries: {
value: '2/3',
type: 'text',
label: 'Bet Series'
},
lossPoSeries: {
value: '2.5/3',
type: 'text',
label: 'Payout Series'
},
winSetTitle: {
label: 'Win Game Settings (use "/" as separator)',
},
winSeriesSet: {
value: 0,
type: 'radio',
label: 'Win',
options: [{
value: 1,
label: 'on'
},
{
value: 0,
label: 'off'
}
]
},
winBetSeries: {
value: '2/3',
type: 'text',
label: 'Bet Series'
},
winPoSeries: {
value: '1.9/1.8',
type: 'text',
label: 'Payout Series'
},
beginSetTitle: {
label: 'Begin Series Settings',
type: 'title'
},
beginSeriesSet: {
value: 1,
type: 'radio',
label: 'Begin Series Setting',
options: [{
value: 1,
label: "Play if there is a lost game before"
},
{
value: 0,
label: 'Everytime play the list'
}
]
},
continueSetTitle: {
label: 'Continue Series Settings',
type: 'title'
},
continueSeriesSet: {
value: 1,
type: 'radio',
label: 'Continue Series Setting',
options: [{
value: 1,
label: 'Continue in the same order of the list',
},
{
value: 0,
label: 'Continue in the top of the list',
}
]
},
endSetTitle: {
label: 'End of Series Setting',
type: 'title'
},
endSeriesSet: {
value: 1,
type: 'radio',
label: 'End of Series Setting',
options: [{
value: 1,
label: "Back to top repeat"
},
{
value: 0,
label: 'Continue from last value'
}
]
},
checkListTitle: {
label: 'Check List Mode',
type: 'title'
},
checkListMode: {
value: 1,
type: 'radio',
label: 'Check List Mode',
options: [{
value: 1,
label: 'on'
},
{
value: 0,
label: 'off'
}
]
}
};

function main() {

var beginBet = [Link]


var beginPayout = [Link]
var currentBet = beginBet
var currentPayout = beginPayout
var lossSeriesSet = [Link]
var lossBetSeries = [Link]("/")
var lossPoSeries = [Link]("/")
var winSeriesSet = [Link]
var winBetSeries = [Link]("/")
var winPoSeries = [Link]("/")
var winRepeat = [Link]
var beginStatus = [Link]
var contStatus = [Link]
var endStatus = [Link]
var checkModeStatus = [Link]
var lossStatus = 0
var winStatus = 0
var baseStatus = 1
var gameCount = 0
var repProvision = 0
var repValidCount = 0
var matchValidEquals = 0
var matchValidGreater = 0
var matchValidLess = 0

if (checkModeStatus) {
checkList()
[Link]();
return
}
matchCheckGreaterEqualsLess([Link], [Link])
if (matchValidEquals) {
matchValidRestore()
} else {
matchValidRestore()
[Link]('Bets and payouts do not matched, bets and payouts must be the
same amount.')
[Link]();
return
}

[Link] = function () {
[Link]('Game Starting, Bet: ' + currentBet + 'Payout: '+
currentPayout)

[Link](currentBet, currentPayout).then(function (payout) {

// Win
if (payout > 1) {

if (!contStatus) {
if (!winStatus) {
counterReset()
}
} else {
if (!beginStatus) {
if (lossStatus) {
lossStatus--
}
}
}

if (!winStatus) {
winStatus++
}
if (baseStatus) {
baseStatus--
counterReset()
}

if (!winSeriesSet) {
gameStarter(beginBet, beginPayout)
if (!baseStatus) {
baseStatus++
}
} else {
if (beginStatus && lossStatus) {
matchCheckGreaterEqualsLess(gameCount, [Link])
if (matchValidEquals || matchValidGreater) {
matchValidRestore()
if (!endStatus) {
gameStarter(parseFloat(winBetSeries[[Link]
- 1]), parseFloat(winPoSeries[[Link] - 1]))
} else {
counterReset()
gameStarter(parseFloat(winBetSeries[gameCount]),
parseFloat(winPoSeries[gameCount]))
}
} else {
matchValidRestore()
gameStarter(parseFloat(winBetSeries[gameCount]),
parseFloat(winPoSeries[gameCount]))
}
} else {
if (!beginStatus) {
matchCheckGreaterEqualsLess(gameCount, [Link])
if (matchValidEquals || matchValidGreater) {
matchValidRestore()
if (!endStatus) {

gameStarter(parseFloat(winBetSeries[[Link] - 1]),
parseFloat(winPoSeries[[Link] - 1]))
} else {
counterReset()
gameStarter(parseFloat(winBetSeries[gameCount]),
parseFloat(winPoSeries[gameCount]))
}
} else {
matchValidRestore()
gameStarter(parseFloat(winBetSeries[gameCount]),
parseFloat(winPoSeries[gameCount]))
}
} else {
gameStarter(beginBet, beginPayout)
if (!baseStatus) {
baseStatus++
}
}
}
}

[Link]('You Win!!')
gameCount++
repValidCount++
repProvision--
matchCheckGreaterEqualsLess(repValidCount, winRepeat)
if (matchValidEquals || matchValidGreater) {
matchValidRestore()
if (lossStatus) {
lossStatus--
}
}

} else {
// Loss
if (!contStatus) {
if (winStatus) {
counterReset()
}
}

if (!lossStatus) {
lossStatus++
}

if (winStatus) {
winStatus--
}
if (baseStatus) {
baseStatus--
counterReset()
}

if (!lossSeriesSet) {
gameStarter(beginBet, beginPayout)
if (!baseStatus) {
baseStatus++
}
} else {
matchCheckGreaterEqualsLess(gameCount, [Link])
if (matchValidEquals || matchValidGreater) {
matchValidRestore()
if (!endStatus) {
gameStarter(parseFloat(lossBetSeries[[Link] -
1]), parseFloat(lossPoSeries[[Link] - 1]))
} else {
counterReset()
gameStarter(parseFloat(lossBetSeries[gameCount]),
parseFloat(lossPoSeries[gameCount]))
}
} else {
matchValidRestore()
gameStarter(parseFloat(lossBetSeries[gameCount]),
parseFloat(lossPoSeries[gameCount]))
}

[Link]('You Loss')
gameCount++
winRepCountReset()
}
}

})
}

function gameStarter(calculatedBet, calculatedPayout) {

if (currentBet > [Link]) {


[Link]('Maximum amount reached, Script stopped.');
[Link]();
}
[Link]('betting')
currentBet = calculatedBet
currentPayout = [Link](2)
}

function checkList() {
var i
[Link]('----------CHECK LIST----------')
[Link]('First Game, Base Bet: ' + beginBet + ' Base Payout: ' +
beginPayout)
if (lossSeriesSet) {
[Link]('Loss game list mode on')
matchCheckGreaterEqualsLess([Link], [Link])
if (matchValidEquals) {
matchValidRestore()
[Link]('Bets and payouts matched')
seriesList(lossBetSeries, lossPoSeries)
} else {
matchValidRestore()
[Link]('Bets and payouts do not matched, bets and payouts must
be the same amount.')
}
} else {
[Link]('Loss game list mode off')
}

if (winSeriesSet) {
[Link]('Win game list mode on')
matchCheckGreaterEqualsLess([Link], [Link])
if (matchValidEquals) {
matchValidRestore()
[Link]('Bets and payouts matched')
seriesList(winBetSeries, winPoSeries)
} else {
matchValidRestore()
[Link]('Bets and payouts do not matched other, bets and payouts
must be the same amount.')
}

} else {
[Link]('Win game list mode off')
}
[Link]('Begin of list mode:')
[Link](beginStatus ? 'Play if there is a lost game before' :
'Everytime play the list')
[Link]('End of list mode:')
[Link](endStatus ? 'Back to top repeat' : 'Continue from last value')
[Link]('Continue of list mode:')
[Link](contStatus ? 'Continue from the game in the same order of the
list' : 'Play from the top of the list')
[Link]('If there is a lost game in the game before the winning match,')
[Link]('plays ' + winRepeat + ' games ')
[Link]('from the win game list.')
[Link]('Available only when "Play if game lost before" starting mode is
set option is selected.')
[Link]('End of check list')

function counterReset() {

if (!gameCount) {
return
}
gameCount--
counterReset()
}

function winRepCountReset() {
if (!repProvision) {
return
}
repValidCount--
repProvision++
if (!repProvision) {
return
}
winRepCountReset()

function matchCheckGreaterEqualsLess(listOne, listTwo) {


if (!listOne || !listTwo) {
if (!listTwo && !listOne) {
matchValidEquals++
return
} else {
if (!listOne) {
matchValidLess++
return
} else {
matchValidGreater++
return
}
}
}
listOne--
listTwo--
matchCheckGreaterEqualsLess(listOne, listTwo)
}

function matchValidRestore() {
if (matchValidEquals) {
matchValidEquals--
}
if (matchValidGreater) {
matchValidGreater--
}
if (matchValidLess) {
matchValidLess--
}
}

function seriesList(listOne, listTwo) {


listLenghtIdentfy([Link], [Link], 1)

function listLenghtIdentfy(listOneLength, listTwoLenght, listCount) {


[Link]('Game' + listCount + ' Bet: ' + listOne[listCount - 1] + '
Payout: ' + listTwo[listCount - 1])
listOneLength--
listTwoLenght--
listCount++
if (!listOneLength) {
return
}
listLenghtIdentfy(listOneLength, listTwoLenght, listCount)
}}

Common questions

Powered by AI

The 'winRepeat' setting determines the number of times the win game list will be played in the event of a win sequence. It is configured with a default value of 1, and the script uses this value to repeat the win game sequence .

The script resets the bet counter using the 'counterReset' function when a win occurs without continuation status being active ('!contStatus'). This reset is crucial to ensure the game starts over and prevents erroneous sequencing in the betting series .

Logging successes and errors helps to pinpoint stages of the game process and quickly identify where logic diverges from expected behavior. It supports efficient debugging by providing a real-time trace of actions and decision points encountered during script execution .

The script uses the 'continueSeriesSet' configuration to determine the continuation logic. If 'contStatus' is set to 1, it continues in the same order of the list; if it is 0, it resets to the top of the list .

Dynamic adjustments occur via 'gameStarter' and logic embedded within the win/loss conditionals. The 'gameStarter' adjusts bets and payouts based on the current game state, utilizing series end or match validation checks ('matchCheckGreaterEqualsLess'). These ensure values update appropriately for continued game progression .

The script checks that the lengths of the bet and payout series match using the function 'matchCheckGreaterEqualsLess'. If the series lengths do not match, it logs an error and stops the game .

The 'checkListMode' option decides whether a pre-check of bet and payout series validity is conducted before game execution. If enabled, it initiates a validation sequence to ensure configuration correctness, preventing mismatched series errors from affecting gameplay .

The script stops if the calculated bet exceeds the 'stop.value' configuration (1e8). This limit serves as a risk management tool to prevent excessively high bets that could lead to significant financial loss .

The script switches between series settings by checking the status of 'lossStatus' and 'winStatus'. When transitioning from a lose to a win scenario, it resets the active series, adjusts counters, and re-initiates betting based on respective series configurations for losses or wins .

The 'matchValidRestore' function resets validation flags such as 'matchValidEquals', 'matchValidGreater', and 'matchValidLess', ensuring consistent states before new validations are performed. This helps maintain the integrity of the game sequence logic .

You might also like