[Script] AutoL Demo

Avatar

By Tsikyng Kirisame 31 January 2020 08:58

Member · 48 comments
var scriptName = "AutoL";
var scriptVersion = 1.0;
var scriptAuthor = "Tsikyng Kirisame";

var EntityPlayer = Java.type('net.minecraft.entity.player.EntityPlayer');

function AutoL() {
    this.getName = function () {
        return "AutoL";
    };

    this.getDescription = function () {
        return "Autometically send 'L' to the entity you killed.";
    };

    this.getCategory = function () {
        return "Player";
    };

    this.onEnable = function () {
        
    }

    var onlyPlayer = value.createBoolean("OnlyPlayer", true);
    this.addValues = function(values){
        values.add(onlyPlayer);
    }

    var target;
    this.onAttack = function (event) {
        target = event.getTargetEntity();
    }

    this.onUpdate = function () {
        if (onlyPlayer.get() ? (target != null && target instanceof EntityPlayer) : target != null) {
            if (target.isDead) {
                mc.thePlayer.sendChatMessage("@L " + target.getName());
                target = null;
            }
        }
    }

}

var kirisameAutoLModule = new AutoL();

var kirisameAutoLModuleClient;

function onLoad() {

}

function onEnable() {
    kirisameAutoLModuleClient = moduleManager.registerModule(kirisameAutoLModule);
}

function onDisable() {
    moduleManager.unregisterModule(kirisameAutoLModuleClient);
}

this is a demo for autol module. I add a value. if you want to get more features, please add by yourself.
魔改神随便改 这个开源  我看能改成什么样XD


null

Avatar

By Tsikyng Kirisame 31 January 2020 09:09

Member · 48 comments

需要附带词汇的建议使用Java的Random库(java.util.Random),不要使用递增的方法(特指某些魔改FileSpammer的嘴臭js 看看他词汇抽取部分),看着很尴尬,而且很捞.

If you want to add some abusing text after player name, I suggest you to use class java.util.Random to get a random String in your Array(String[]), and don't use index++ to switch the String in your message, it is stupid and ridiculous(maybe funny? my English isn't very well).


null

Avatar

By Tsikyng Kirisame 31 January 2020 09:13

Member · 48 comments

Otherwise, I think some of JavaScript programmer should use more standardized code. Such as semicolon, Uppercase, tab, etc.
另外, 我觉得某些js作者应该修正一下编程风格,比如变量大小写问题,还有分号,缩进,空格之类的.

Last edited by Tsikyng Kirisame (1 February 2020 07:15)


null

Avatar

By commandblock2 31 January 2020 10:21

Member · 19 comments

foaas.com 滑稽

Avatar

By commandblock2 31 January 2020 10:25

Member · 19 comments

代码的格式规范这是要起圣战嘛qwq,不过好像js确实大家有些部分写的都差不多,不过我肯定会去用tab 滑稽

Avatar

By ButterChiCken 2 February 2020 16:33

Member · 39 comments

cool!


null

Avatar

By CzechHek 2 February 2020 20:45

Member · 462 comments

Recoded using Core: https://github.com/CzechHek/Core/blob/m … s/AutoL.js

Last edited by CzechHek (2 February 2020 21:56)


ScriptAPI Developer.
Experienced YouTuber.
Discord: bit.ly/dyskord
YouTube: v.ht/CzechHek

Avatar

By badfox 2 February 2020 22:37

Member · 8 comments
Tsikyng Kirisame wrote
var scriptName = "AutoL";
var scriptVersion = 1.0;
var scriptAuthor = "Tsikyng Kirisame";

var EntityPlayer = Java.type('net.minecraft.entity.player.EntityPlayer');

function AutoL() {
    this.getName = function () {
        return "AutoL";
    };

    this.getDescription = function () {
        return "Autometically send 'L' to the entity you killed.";
    };

    this.getCategory = function () {
        return "Player";
    };

    this.onEnable = function () {
        
    }

    var onlyPlayer = value.createBoolean("OnlyPlayer", true);
    this.addValues = function(values){
        values.add(onlyPlayer);
    }

    var target;
    this.onAttack = function (event) {
        target = event.getTargetEntity();
    }

    this.onUpdate = function () {
        if (onlyPlayer.get() ? (target != null && target instanceof EntityPlayer) : target != null) {
            if (target.isDead) {
                mc.thePlayer.sendChatMessage("@L " + target.getName());
                target = null;
            }
        }
    }

}

var kirisameAutoLModule = new AutoL();

var kirisameAutoLModuleClient;

function onLoad() {

}

function onEnable() {
    kirisameAutoLModuleClient = moduleManager.registerModule(kirisameAutoLModule);
}

function onDisable() {
    moduleManager.unregisterModule(kirisameAutoLModuleClient);
}

this is a demo for autol module. I add a value. if you want to get more features, please add by yourself.
魔改神随便改 这个开源  我看能改成什么样XD

改成你的AbuseAutoL( ͡° ͜ʖ ͡°)

Avatar

By Tsikyng Kirisame 3 February 2020 01:32

Member · 48 comments
badfox wrote
Tsikyng Kirisame wrote
var scriptName = "AutoL";
var scriptVersion = 1.0;
var scriptAuthor = "Tsikyng Kirisame";

var EntityPlayer = Java.type('net.minecraft.entity.player.EntityPlayer');

function AutoL() {
    this.getName = function () {
        return "AutoL";
    };

    this.getDescription = function () {
        return "Autometically send 'L' to the entity you killed.";
    };

    this.getCategory = function () {
        return "Player";
    };

    this.onEnable = function () {
        
    }

    var onlyPlayer = value.createBoolean("OnlyPlayer", true);
    this.addValues = function(values){
        values.add(onlyPlayer);
    }

    var target;
    this.onAttack = function (event) {
        target = event.getTargetEntity();
    }

    this.onUpdate = function () {
        if (onlyPlayer.get() ? (target != null && target instanceof EntityPlayer) : target != null) {
            if (target.isDead) {
                mc.thePlayer.sendChatMessage("@L " + target.getName());
                target = null;
            }
        }
    }

}

var kirisameAutoLModule = new AutoL();

var kirisameAutoLModuleClient;

function onLoad() {

}

function onEnable() {
    kirisameAutoLModuleClient = moduleManager.registerModule(kirisameAutoLModule);
}

function onDisable() {
    moduleManager.unregisterModule(kirisameAutoLModuleClient);
}

this is a demo for autol module. I add a value. if you want to get more features, please add by yourself.
魔改神随便改 这个开源  我看能改成什么样XD

改成你的AbuseAutoL( ͡° ͜ʖ ͡°)

我有1.6k多句子


null

Avatar

By badfox 3 February 2020 17:49

Member · 8 comments

请使用某猫的autolove 滑稽

Avatar

By yorik100 3 February 2020 19:55

Member · 748 comments

"value.createBoolean("OnlyPlayer", true);"
Imagine turning that off
@L Creeper
@L Painting
@L Minecart
@L Wither

Avatar

By badfox 4 February 2020 09:20

Member · 8 comments
Tsikyng Kirisame wrote
badfox wrote
Tsikyng Kirisame wrote
var scriptName = "AutoL";
var scriptVersion = 1.0;
var scriptAuthor = "Tsikyng Kirisame";

var EntityPlayer = Java.type('net.minecraft.entity.player.EntityPlayer');

function AutoL() {
    this.getName = function () {
        return "AutoL";
    };

    this.getDescription = function () {
        return "Autometically send 'L' to the entity you killed.";
    };

    this.getCategory = function () {
        return "Player";
    };

    this.onEnable = function () {
        
    }

    var onlyPlayer = value.createBoolean("OnlyPlayer", true);
    this.addValues = function(values){
        values.add(onlyPlayer);
    }

    var target;
    this.onAttack = function (event) {
        target = event.getTargetEntity();
    }

    this.onUpdate = function () {
        if (onlyPlayer.get() ? (target != null && target instanceof EntityPlayer) : target != null) {
            if (target.isDead) {
                mc.thePlayer.sendChatMessage("@L " + target.getName());
                target = null;
            }
        }
    }

}

var kirisameAutoLModule = new AutoL();

var kirisameAutoLModuleClient;

function onLoad() {

}

function onEnable() {
    kirisameAutoLModuleClient = moduleManager.registerModule(kirisameAutoLModule);
}

function onDisable() {
    moduleManager.unregisterModule(kirisameAutoLModuleClient);
}

this is a demo for autol module. I add a value. if you want to get more features, please add by yourself.
魔改神随便改 这个开源  我看能改成什么样XD

改成你的AbuseAutoL( ͡° ͜ʖ ͡°)

我有1.6k多句子

( ͡° ͜ʖ ͡°)

Avatar

By Aftery 4 February 2020 09:25

Member · 595 comments

This is not a very good way to make killsays, I'd prefer making killsays based on chat messages but nice script.


website
@Aftery#5051 on Discord
stawbery reloded))
bDED6E9.pngCC3ddf6.pnge2adC5a.png1cBc37C.png2d41fd9.png

Avatar

By LiquidBounce_user25 4 February 2020 10:06

Member · 23 comments

Abuse每次都只用到前2k(  ͡° ͜ ʖ  ͡° )


I love LiquidBounce and CCBlueX

Avatar

By Tsikyng Kirisame 6 February 2020 03:59

Member · 48 comments
badfox wrote

请使用某猫的autolove 滑稽

加到AbuseUtils.js了 现在300多KB


null

Avatar

By Tsikyng Kirisame 6 February 2020 04:03

Member · 48 comments
Aftery wrote

This is not a very good way to make killsays, I'd prefer making killsays based on chat messages but nice script.

I already know it, this way can work in Hypixel.And some servers always show all kinds of kill messages, it's difficult for developers to collect those messages.What's more, this is only a demo.;P I don't use this.


null

Avatar

By Tsikyng Kirisame 6 February 2020 04:07

Member · 48 comments
yorik100 wrote

"value.createBoolean("OnlyPlayer", true);"
Imagine turning that off
@L Creeper
@L Painting
@L Minecart
@L Wither

It's happening in some Chinese server everyday.I can always see that "L Zombie"(僵尸) because of AAC


null

Avatar

By soulplexis 6 February 2020 04:19

Donator · 902 comments
Tsikyng Kirisame wrote
yorik100 wrote

"value.createBoolean("OnlyPlayer", true);"
Imagine turning that off
@L Creeper
@L Painting
@L Minecart
@L Wither

It's happening in some Chinese server everyday.I can always see that "L Zombie"(僵尸) because of AAC

Mine does it too. L O L


Official account of Soulplexis
Script creator, LiquidBounce user, developer of Monix client
If you want to contact me please do that on Discord