You are on page 1of 3

/**

* BC Game' Classic Dice Automation Script Template


* Tác giả: github.com/thaolt
*
* Đọc kỹ trước khi sử dụng
*
* - Script này là gì? là mẫu script với mục đích giúp người chơi Classic Dice tại
BCGame hiện thực
* chiến thuật của mình bằng javascript. Dùng trực tiếp sẽ không có tác dụng gì.
* - Tác giả không có bất kỳ trách nhiệm nào với bất kỳ mất mát trong việc người
chơi sử dụng script
* - Hãy chơi có trách nhiệm. Cờ bạc luôn luôn là cờ bạc. Chỉ cược những gì bạn có
thể thua
*
* Cách dùng:
*
* - Xem clip: https://youtu.be/qjBlz20E3H4
* - Mở Dev Console bằng F12 trên trình duyệt
* - Copy dán script vào, bấm enter
* - Bấm Start Auto
* - Giá trị bet amount tính theo coin chứ không phải theo USD, kể cả bạn có bật
View in USD
*
* Một số lưu ý khác:
*
* - Nếu không hiểu xin đừng dùng, cần có kiến thức javascript để tự hiện thực
chiến thuật của mình
* - Lúc nào cũng nên test trước với coin nhỏ như TRTL hoặc SHIB ...
* - Nếu thấy lỗi thì tự sửa, đồ free mà không có support đâu.
* - Tôi không nhận bất kỳ yêu cầu viết code thuê nào, có thắc mắc về gì kỹ thuật
có thể đặt câu hỏi
* tại gist page này, và tôi không chắc là sẽ trả lời bạn.
* - Script trong clip youtube tôi không share cũng không bán, cần câu cơm mà, xin
đừng hỏi.
* - Ai thấy có ích, có nhã ý cho tiền thì có thể gửi đến ví:
* TRX (TRONLINK): TWKu3sBpo2ZktNNrBGKEtx4p3srDZd49B9
* DOGE (Doge Coin): DPoNdjTFbPYU4FYyEZRGkvZ3TGQMxgvAwW
* Mà tôi cũng nghĩ không có ai tốt bụng cho cả, nên cũng không sao.
*
**/

function CDAuto()
{

this.currentBet = 0;
this.betamount = 0;
this.stopped = true;

this.resolveBet = (betlog) => {


if (betlog.winAmount > 0) { // nếu thắng
cd.isHigh = !cd.isHigh; // ví dụ đảo chiều under/over
// this.currentBet = this.betamount; // vd, reset về bet ban đầu
} else { // nếu thua
console.log('thua rồi làm gì đây');
// this.currentBet = this.currentBet * 2; // vd x2 bet khi thua
// cd.betChance = 66; // vd đổi payout thành 1.3x (66%)
}
}
this.cplay = () => {
cd.bet(this.currentBet).then(this.resolveBet).then(() => {
if (!this.stopped) {
setTimeout(() => {
this.cplay();
}, 350);
}
});
}

this.start = () => {
this.betamount =
parseFloat(document.querySelector('#betamount').value);
this.stopped = false;

this.stopButton.style.display = '';
this.startButton.style.display = 'none';

cd.isHigh = false; // bet roll under


cd.betChance = 50; // bet chance = 50%, payout 1.98x

this.currentBet = this.betamount;

this.cplay();
}

this.stop = () => {
this.startButton.style.display = '';
this.stopButton.style.display = 'none';
this.stopped = true;
}

const htmlToElement = function (html) {


let template = document.createElement('template');
html = html.trim();
template.innerHTML = html;
return template.content.firstChild;
}

document.querySelector('#ClassicDice-control-0 > div.ui-radio.game-control-


switch > button > div.label').innerHTML='Script';
document.querySelector('#ClassicDice-control-0 > div.game-control-panel
div.ui-input.small.is-disabled').style.display = 'none';
document.querySelector('#ClassicDice-control-0 > div.game-control-
panel .game-coininput').style.display = 'none';
document.querySelector('#ClassicDice-control-0 > div.game-control-panel > div
> button.bet-button').style.display='none';

this.funding = htmlToElement('<div class="ui-input small"><div class="input-


label">Bet amount</div><div class="input-control"><input type="text" value="0.0001"
id="betamount"></div></div>');
this.startButton = htmlToElement('<button class="ui-button button-big s-conic
start-auto" style="margin-top:15px"><div class="button-inner">Start
Auto</div></button>');
this.stopButton = htmlToElement('<button class="ui-button button-big s-conic2
stop-auto" style="margin-top:15px"><div class="button-inner">Stop
Auto</div></button>');
this.stopButton.style.display = 'none';
document.querySelector('#ClassicDice-control-0 > div.game-control-panel >
div').appendChild(this.funding);
document.querySelector('#ClassicDice-control-0 > div.game-control-panel >
div').appendChild(this.startButton);
document.querySelector('#ClassicDice-control-0 > div.game-control-panel >
div').appendChild(this.stopButton);

this.startButton.onclick = this.start;
this.stopButton.onclick = this.stop;
}

const cdauto = new CDAuto();

You might also like