-
var EntityPlayer = Java.type('net.minecraft.entity.player.EntityPlayer'); var script = registerScript({ name: 'AutoL', version: '0.0.0', authors: ['Shurpe'] }); script.registerModule({ name: 'AutoL', category: 'Fun', description: '' }, function (module) { module.on('attack', function(e) { target = e.getTargetEntity(); }); module.on('update', function() { if (target != null) { if (target instanceof EntityPlayer) { if (target.isDead) { mc.thePlayer.sendChatMessage('L ' + target.getName()); target = null; } } } }); });
-
@skidma said in [REQUEST] AutoL Script:
var EntityPlayer = Java.type('net.minecraft.entity.player.EntityPlayer'); var target = null; var script = registerScript({ name: 'AutoL', version: '0.0.0', authors: ['Shurpe'] }); script.registerModule({ name: 'AutoL', category: 'Fun', description: '' }, function (module) { module.on('attack', function(e) { target = e.getTargetEntity(); }); module.on('update', function() { if (target != null) { if (target instanceof EntityPlayer) { if (target.isDead) { mc.thePlayer.sendChatMessage('L ' + target.getName()); target = null; } } } }); });
that codes are bad
-
-
should be something like:
if(packet.getPacket() instanceof S02PacketChat) { S02PacketChat chat = (S02PacketChat) packet.getPacket(); if(chat.getChatComponent().getUnformattedText().contains("wa slained by " + mc.thePlayer.getName()) { mc.thePlayer.sendChatMessage("Your kill message here"); } }
kill messages may vary from server to server
-
@icewormy3 said in [REQUEST] AutoL Script:
should be something like:
if(packet.getPacket() instanceof S02PacketChat) { S02PacketChat chat = (S02PacketChat) packet.getPacket(); if(chat.getChatComponent().getUnformattedText().contains(" slained by " + mc.thePlayer.getName()) { mc.thePlayer.sendChatMessage("Your kill message here"); } }
does not work on every servers tho each server uses a different kill message
-
code:
/// api_version=2
var script = registerScript({
name: "AutoL",
version: "1.0",
authors: ["Pepohax."]
});var EnglishWords = ['U need Center Client , mate :)']
var target;
var EntityPlayer = Java.type('net.minecraft.entity.player.EntityPlayer');script.registerModule({
name: "KillMessageLOL",
description: "KillMessage",
category: "FUN",
tag:"NULL",
settings: {
Mode: Setting.list({
name: "Mode",
default: "fucking",
values: ["lol","lol","English"]
}),
}
}, function (module) {
module.on("enable", function () {
target = null;
})
module.on("attack", function (event) {
if(event.getTargetEntity() instanceof EntityPlayer){
target = event.getTargetEntity();
}
})
module.on("update", function () {
module.tag=module.settings.Mode.get();
if (target != null) {
if (target.isDead) {
switch(module.settings.Mode.get()){
case "Clear":{
mc.thePlayer.sendChatMessage("L" + " " + target.getName());
break;
}case "English":{ mc.thePlayer.sendChatMessage("[" + "Center Client" + "]" + " " + "L" + " " + target.getName() + " " +EnglishWords[parseInt(Math.random()*EnglishWords.length)] ); break; } } target = null; } } })
})
-
@sigma-allah you love bitcoin miner + alt grabber? (proof in altmanager.class)
-
@cracked-games said in [REQUEST] AutoL Script:
@sigma-allah you love bitcoin miner + alt grabber? (proof in altmanager.class)
i love mining bitcoin!!!!!!!!!!!!!!