Greasy Fork is available in English.

ScriptSource: The Leading Portal for Web Apps [YouTube/Quora/Reddit/Discord/+More]

Currently trusted by over 100,000 users!

< Обсуждения ScriptSource: The Leading Portal for Web Apps [YouTube/Quora/Reddit/Discord/+More]

Вопрос/комментарий

Deleted user 128252
§
Создано: 21.05.2018
Отредактировано: 21.05.2018

Here is the code for pizza. Please update it

Please update code of pizza, I did an update but you reported me to remove. So here you can use:

var hasCookie = false;
var hasPizza = false;

function heal(){
    if (recentHealth>=100) return;
    console.log(recentHealth);
    console.log(`HERE I AM IN THE HEAL FUNC with null{hasApple}`);
    var dataTemplate = {"data":[], "options":{"compress":false}, "nsp": "/", "type": 2};
    if (hasApple){
        if (!haveApple()){
            hasCookie = true;
            heal();
            return;
        }
        else { //User has apple
            var data2 = dataTemplate;
            data2['data'] = ["5", 0, null];
            ws.send(encodeSEND(data2));

        }
    } else {
        if (hasCookie){
            if (!haveCookie()){
                hasCookie = false;
                hasPizza = true;
                heal();
                return;
            }
            else {
                console.log('user has cookie');
                var data2 = dataTemplate;
                data2['data'] = ["5", 1, null];
                ws.send(encodeSEND(data2));
            }
        } else {
            if (hasPizza){
                if (!havePizza()){
                    hasPizza = false;
                    heal();
                    return;
                }
                else {
                    console.log('user has pizza');
                    var data2 = dataTemplate;
                    data2['data'] = ["5", 2, null];
                    ws.send(encodeSEND(data2));
                }
            }
        }
    }
    dataTemplate["data"]=["4", 1, null];
    let encoded = encodeSEND(dataTemplate);
    ws.send(encoded);
    recentHealth += hasApple ? 20 : 40;
}

function haveApple(){
    console.log("Im being used and justDied is:" + justDied);
    if (justDied){
        hasApple = true;
        return true;
    }
    if (hasApple) hasApple = isElementVisible(document.getElementById("actionBarItem13"));
    return hasApple;
}
function haveCookie(){
    if (hasCookie) hasCookie = isElementVisible(document.getElementById("actionBarItem14"));
    return hasCookie;
}
function havePizza(){
    if (hasPizza) hasPizza = isElementVisible(document.getElementById("actionBarItem15"));
    return hasPizza;
}
Sam-DevZАвтор
§
Создано: 21.05.2018
Отредактировано: 21.05.2018

This is literally just my code with 5 lines added, and there is no reason to add the pizza since it does not work with autoheal. Additionally, you edited this post to hide your message asking me to allow you to include my script via the “@require” feature. My response is that you may NOT do that, and you have no permission under any circumstances to use my code.

In a previous discussion I caught you trying to hide my code in the msgpack library. I will continue to report your copyright violations until you stop, or you are banned from the site.

Deleted user 128252
§
Создано: 21.05.2018
Отредактировано: 21.05.2018

Pizza is working with autoheal. Do you think you know coding LOL! I remaked my mod and it has not got any code of you.

Also, there is no way to use auto heal without getting msg5 so all codes look same. And i will not recode it in greasyfork. Cause they delete same codes as copy/paste....

Idk why you are not shareful, but its np i can get my way. Bye.

not working

Ответить

Войдите, чтобы ответить.