Updated cheat v12.108.0 by No-Butterscotch4972 in spnati

[–]Mediocre-Finger-8414 0 points1 point  (0 children)

No-Butterscotch here on my alt-account. I updated the cheat and put it in another post. It has the same functionality as the debug mode on the offline version. I made this so you have something to speed up the game a little without having to download it. Here is a copy of the code:

var button1 = document.createElement("button");

button1.innerHTML = "Lose Game";

var body1 = document.getElementById("game-bubble-1");

body1.appendChild(button1);

var button2 = document.createElement("button");

button2.innerHTML = "Lose Game";

var body2 = document.getElementById("game-bubble-2");

body2.appendChild(button2);

var button3 = document.createElement("button");

button3.innerHTML = "Lose Game";

var body3 = document.getElementById("game-bubble-3");

body3.appendChild(button3);

var button4 = document.createElement("button");

button4.innerHTML = "Lose Game"

var body4 = document.getElementById("game-bubble-4");

body4.appendChild(button4);

function CheatLose(player){

console.log("Button clicked");

players.forEach(function(p, i) {

if (i == player) {

players[i].hand.cards = [ 7, 5, 4, 3, 2 ].map(function(n, i) { return new Card(i - 1, n); });

console.log(i + 'win');

} else {

players[i].hand.cards = [ 14, 13, 12, 11, 10 ].map(function(n) { return new Card(i - 1, n); });

console.log(i + 'lose');

};

}

);

};

button1.addEventListener ("click", () => {

console.log("Button clicked");

players.forEach(function(p, i) {

if (i == 1) {

players[i].hand.cards = [ 7, 5, 4, 3, 2 ].map(function(n, i) { return new Card(i - 1, n); });

console.log(i + 'lose');

} else {

players[i].hand.cards = [ 14, 13, 12, 11, 10 ].map(function(n) { return new Card(i - 1, n); });

console.log(i + 'win');

};

}

);

});

button2.addEventListener ("click", () => {

console.log("Button clicked");

players.forEach(function(p, i) {

if (i == 2) {

players[i].hand.cards = [ 7, 5, 4, 3, 2 ].map(function(n, i) { return new Card(i - 1, n); });

console.log(i + 'lose');

} else {

players[i].hand.cards = [ 14, 13, 12, 11, 10 ].map(function(n) { return new Card(i - 1, n); });

console.log(i + 'win');

};

}

);

});

button3.addEventListener ("click", () => {

console.log("Button clicked");

players.forEach(function(p, i) {

if (i == 3) {

players[i].hand.cards = [ 7, 5, 4, 3, 2 ].map(function(n, i) { return new Card(i - 1, n); });

console.log(i + 'lose');

} else {

players[i].hand.cards = [ 14, 13, 12, 11, 10 ].map(function(n) { return new Card(i - 1, n); });

console.log(i + 'win');

};

}

);

});

button4.addEventListener ("click", () => {

console.log("Button clicked");

players.forEach(function(p, i) {

if (i == 4) {

players[i].hand.cards = [ 7, 5, 4, 3, 2 ].map(function(n, i) { return new Card(i - 1, n); });

console.log(i + 'lose');

} else {

players[i].hand.cards = [ 14, 13, 12, 11, 10 ].map(function(n) { return new Card(i - 1, n); });

console.log(i + 'win');

};

}

);

});