Résolu Obtenir un bot sur bombparty.sparklinlabs.com

Statut
N'est pas ouverte pour d'autres réponses.
Inscription
23 Décembre 2015
Messages
56
Réactions
9
Points
61
Bonjour,

Tout est dans le titre, j'aimerais savoir comment configurer un bot qui répondra automatiquement sur bombparty pour donner les mots avec les lettres demandées

Merci de me répondre vite

Cordialement
 

Lyrix

Student ✦ UX/UI Design
Ancien staff
Inscription
20 Août 2012
Messages
22 670
Réactions
8 150
Points
36 866
Bonjour,

Tout est dans le titre, j'aimerais savoir comment configurer un bot qui répondra automatiquement sur bombparty pour donner les mots avec les lettres demandées

Merci de me répondre vite

Cordialement

Cadeau, à insérer dans la console ( c'est un script) :p
Code:
function writeChat(text){
    var line = document.createElement('li');
    line[(typeof document.body.style.WebkitAppearance=="string")?"innerText":"innerHTML"] = text;
    document.getElementById("ChatLog").appendChild(line);

}
function updateStatus(text){
    currentStatus[(typeof document.body.style.WebkitAppearance=="string")?"innerText":"innerHTML"] = text;
}
channel.socket.on("setActivePlayerIndex", function (a) {
    if(channel.data.actors[channel.data.activePlayerIndex].authId === app.user.authId && injector.autoInject){
        setTimeout(injector.inject,250);
    }
});
var injector = {
        lastWord: null,
        autoInject: false,
        toggleAutoInject: function(){
            if(injector.autoInject){
                injector.autoInject = false;
                autoInjectIndicator[(typeof document.body.style.WebkitAppearance=="string")?"innerText":"innerHTML"] = 'Auto Inject Off';
            }
            else
            {
                injector.autoInject = true;
                autoInjectIndicator[(typeof document.body.style.WebkitAppearance=="string")?"innerText":"innerHTML"] = 'Auto Inject On';
            }
        },
        inject: function() {
            injector.lastWord = null;
            if(window.app.user.authId == channel.data.actors[channel.data.activePlayerIndex].authId){
                updateStatus("Injecting normally");
                var q = channel.data.wordRoot;
                for(var i = 0;i<=injector.wordList.length; i++){
                    if(i==injector.wordList.length){
                        updateStatus("Normal Inject Failed");
                        setTimeout(injector.injectPanic());
                        return;
                    }
                    if(injector.wordList[i].indexOf(q.toLowerCase())!=-1){
                        for(var j = 0;j<channel.data.actorsByAuthId[window.app.user.authId].lockedLetters.length;j++){
                            if(injector.wordList[i].indexOf(channel.data.actorsByAuthId[window.app.user.authId].lockedLetters[j].toLowerCase())!=-1){
                                channel.socket.emit("setWord", {word: injector.wordList[i],validate: true});
                                injector.lastWord = i;
                                setTimeout(injector.injectInternal,250);
                                return;
                            }
                        }
                    }
                }
            }
        },
        injectInternal: function() {
            var q = channel.data.wordRoot;
            if(window.app.user.authId == channel.data.actors[channel.data.activePlayerIndex].authId){
                for(var i = injector.lastWord+1;i<=injector.wordList.length;i++){
                    if(i==injector.wordList.length){
                        updateStatus("Normal Injection Failed");
                        setTimeout(injector.injectPanic(),250);
                        return;
                    }
                    if(injector.wordList[i].indexOf(q.toLowerCase())!=-1){
                        for(var j = 0;j<channel.data.actorsByAuthId[window.app.user.authId].lockedLetters.length;j++){
                            if(injector.wordList[i].indexOf(channel.data.actorsByAuthId[window.app.user.authId].lockedLetters[j].toLowerCase())!=-1){
                                channel.socket.emit("setWord", {word: injector.wordList[i],validate: true});
                                injector.lastWord = i;
                                setTimeout(injector.injectInternal,250);
                                return;
                            }
                        }
                    }
                }
                setTimeout(injector.injectPanic,250);

            }
        },
        injectPanic: function() {
            injector.lastWord = null;
            if(window.app.user.authId == channel.data.actors[channel.data.activePlayerIndex].authId){
                updateStatus("Starting Panic Injection");
                var q = channel.data.wordRoot;
                for(var i = 0;i<=injector.wordList.length; i++){
                    if(i==injector.wordList.length){
                        updateStatus("No Words Work. GAME OVER");
                        return;
                    }
                    if(injector.wordList[i].indexOf(q.toLowerCase())!=-1){
                        channel.socket.emit("setWord", {word: injector.wordList[i],validate: true});
                        injector.lastWord = i;
                        setTimeout(injector.injectInternalPanic,250);
                        return;
                    }
                }
            }
        },
        injectInternalPanic: function() {
            var q = channel.data.wordRoot;
            if(window.app.user.authId == channel.data.actors[channel.data.activePlayerIndex].authId){
                for(var i = injector.lastWord+1;i<=injector.wordList.length;i++){
                    if(i==injector.wordList.length){
                        updateStatus("No Words Work. GAME OVER");
                        return;
                    }
                    if(injector.wordList[i].indexOf(q.toLowerCase())!=-1){
                        channel.socket.emit("setWord", {word: injector.wordList[i],validate: true});
                        injector.lastWord = i;
                        setTimeout(injector.injectInternalPanic,250);
                        return;
                    }
                }
            }
        }
};
function createInLine(parent,newThingType){
    var line = document.createElement('li');
    var thing = document.createElement(newThingType);
    parent.appendChild(line);
    line.appendChild(thing);
    return thing;
}
parentThing = document.getElementById("SettingsTab");
injectButton = createInLine(parentThing,'button');
injectButton[(typeof document.body.style.WebkitAppearance=="string")?"innerText":"innerHTML"] = 'Inject';
parentThing.align = "left";
injectButton.addEventListener('click',injector.inject);
panicButton = createInLine(parentThing,'button');
panicButton[(typeof document.body.style.WebkitAppearance=="string")?"innerText":"innerHTML"] = 'Panic ';
panicButton.addEventListener('click',injector.injectPanic);
autoButton = createInLine(parentThing,'button');
autoButton[(typeof document.body.style.WebkitAppearance=="string")?"innerText":"innerHTML"] = 'Auto  ';
autoButton.addEventListener('click',injector.toggleAutoInject);
var autoInjectIndicator = document.createElement('li');
parentThing.appendChild(autoInjectIndicator);
var currentStatus = document.createElement('li');
parentThing.appendChild(currentStatus);

var wordScript = document.createElement("script");
wordScript.src = "https://dl.dropboxusercontent.com/u/9328924/wordf.js";
document.head.appendChild(wordScript);

Source :
  • https://induste.com/threads/hack-sur-bombparty.468232/page-3 :p
 
Inscription
23 Décembre 2015
Messages
56
Réactions
9
Points
61
Cadeau, à insérer dans la console ( c'est un script) :p
Code:
function writeChat(text){
    var line = document.createElement('li');
    line[(typeof document.body.style.WebkitAppearance=="string")?"innerText":"innerHTML"] = text;
    document.getElementById("ChatLog").appendChild(line);

}
function updateStatus(text){
    currentStatus[(typeof document.body.style.WebkitAppearance=="string")?"innerText":"innerHTML"] = text;
}
channel.socket.on("setActivePlayerIndex", function (a) {
    if(channel.data.actors[channel.data.activePlayerIndex].authId === app.user.authId && injector.autoInject){
        setTimeout(injector.inject,250);
    }
});

var injector = {
        lastWord: null,
        autoInject: false,
        toggleAutoInject: function(){
            if(injector.autoInject){
                injector.autoInject = false;
                autoInjectIndicator[(typeof document.body.style.WebkitAppearance=="string")?"innerText":"innerHTML"] = 'Auto Inject Off';
            }
            else
            {
                injector.autoInject = true;
                autoInjectIndicator[(typeof document.body.style.WebkitAppearance=="string")?"innerText":"innerHTML"] = 'Auto Inject On';
            }
        },
        inject: function() {
            injector.lastWord = null;
            if(window.app.user.authId == channel.data.actors[channel.data.activePlayerIndex].authId){
                updateStatus("Injecting normally");
                var q = channel.data.wordRoot;
                for(var i = 0;i<=injector.wordList.length; i++){
                    if(i==injector.wordList.length){
                        updateStatus("Normal Inject Failed");
                        setTimeout(injector.injectPanic());
                        return;
                    }
                    if(injector.wordList[i].indexOf(q.toLowerCase())!=-1){
                        for(var j = 0;j<channel.data.actorsByAuthId[window.app.user.authId].lockedLetters.length;j++){
                            if(injector.wordList[i].indexOf(channel.data.actorsByAuthId[window.app.user.authId].lockedLetters[j].toLowerCase())!=-1){
                                channel.socket.emit("setWord", {word: injector.wordList[i],validate: true});
                                injector.lastWord = i;
                                setTimeout(injector.injectInternal,250);
                                return;
                            }
                        }
                    }
                }
            }
        },
        injectInternal: function() {
            var q = channel.data.wordRoot;
            if(window.app.user.authId == channel.data.actors[channel.data.activePlayerIndex].authId){
                for(var i = injector.lastWord+1;i<=injector.wordList.length;i++){
                    if(i==injector.wordList.length){
                        updateStatus("Normal Injection Failed");
                        setTimeout(injector.injectPanic(),250);
                        return;
                    }
                    if(injector.wordList[i].indexOf(q.toLowerCase())!=-1){
                        for(var j = 0;j<channel.data.actorsByAuthId[window.app.user.authId].lockedLetters.length;j++){
                            if(injector.wordList[i].indexOf(channel.data.actorsByAuthId[window.app.user.authId].lockedLetters[j].toLowerCase())!=-1){
                                channel.socket.emit("setWord", {word: injector.wordList[i],validate: true});
                                injector.lastWord = i;
                                setTimeout(injector.injectInternal,250);
                                return;
                            }
                        }
                    }
                }
                setTimeout(injector.injectPanic,250);

            }
        },
        injectPanic: function() {
            injector.lastWord = null;
            if(window.app.user.authId == channel.data.actors[channel.data.activePlayerIndex].authId){
                updateStatus("Starting Panic Injection");
                var q = channel.data.wordRoot;
                for(var i = 0;i<=injector.wordList.length; i++){
                    if(i==injector.wordList.length){
                        updateStatus("No Words Work. GAME OVER");
                        return;
                    }
                    if(injector.wordList[i].indexOf(q.toLowerCase())!=-1){
                        channel.socket.emit("setWord", {word: injector.wordList[i],validate: true});
                        injector.lastWord = i;
                        setTimeout(injector.injectInternalPanic,250);
                        return;
                    }
                }
            }
        },
        injectInternalPanic: function() {
            var q = channel.data.wordRoot;
            if(window.app.user.authId == channel.data.actors[channel.data.activePlayerIndex].authId){
                for(var i = injector.lastWord+1;i<=injector.wordList.length;i++){
                    if(i==injector.wordList.length){
                        updateStatus("No Words Work. GAME OVER");
                        return;
                    }
                    if(injector.wordList[i].indexOf(q.toLowerCase())!=-1){
                        channel.socket.emit("setWord", {word: injector.wordList[i],validate: true});
                        injector.lastWord = i;
                        setTimeout(injector.injectInternalPanic,250);
                        return;
                    }
                }
            }
        }
};
function createInLine(parent,newThingType){
    var line = document.createElement('li');
    var thing = document.createElement(newThingType);
    parent.appendChild(line);
    line.appendChild(thing);
    return thing;
}
parentThing = document.getElementById("SettingsTab");
injectButton = createInLine(parentThing,'button');
injectButton[(typeof document.body.style.WebkitAppearance=="string")?"innerText":"innerHTML"] = 'Inject';
parentThing.align = "left";
injectButton.addEventListener('click',injector.inject);
panicButton = createInLine(parentThing,'button');
panicButton[(typeof document.body.style.WebkitAppearance=="string")?"innerText":"innerHTML"] = 'Panic ';
panicButton.addEventListener('click',injector.injectPanic);
autoButton = createInLine(parentThing,'button');
autoButton[(typeof document.body.style.WebkitAppearance=="string")?"innerText":"innerHTML"] = 'Auto  ';
autoButton.addEventListener('click',injector.toggleAutoInject);
var autoInjectIndicator = document.createElement('li');
parentThing.appendChild(autoInjectIndicator);
var currentStatus = document.createElement('li');
parentThing.appendChild(currentStatus);

var wordScript = document.createElement("script");
wordScript.src = "https://dl.dropboxusercontent.com/u/9328924/wordf.js";
document.head.appendChild(wordScript);

Apres avoir rentré dedans je fais quoi ?
 

Lyrix

Student ✦ UX/UI Design
Ancien staff
Inscription
20 Août 2012
Messages
22 670
Réactions
8 150
Points
36 866
A chaque fois que je change de salon je dois remettre les codages ?
Après avoir mis le code : :p

XlssXmT.png
 
Cette réponse a aidé l'auteur de cette discussion !
Statut
N'est pas ouverte pour d'autres réponses.
Haut