[SUPPORT] Someone fix this script.
-
This script is cool and skidded, i want to use it but it does not show up at all, someone fix this code:
/// api_version=2 var script = registerScript({ name: "KillSults", version: "1.0", authors: ["Gabriel"] }); var RedeskyWords=[ "/tell %name% What client? To respond do /r (message)", "Config issue %name%", "Vai foder te para o caralho %name%", "Increve-se ao "Coccocoa's Helper" no youtube", "Vai te foder %name%", "O anticheat melhor, AAC", "Vips fodem penis.", "Servidor lixo, vai foder vc mesmo.", "Don't use j75's config. Use mine! Sub me on yt, Coccocoa's Helper.", "Win every HvH with my new config! Get on my channel, Coccocoa's Helper.", "Você tem de pegar um hack, eu recommendo o liquidbounce.net", "Servidor de lx cheio de vips.", "Você é um resto de aborto %name%" ] var target; var EntityPlayer = Java.type('net.minecraft.entity.player.EntityPlayer'); script.registerModule({ name: "KillSults", description: "Insults people when you kill them.", category: "Misc", tag:"NULL", settings: { Mode: Setting.list({ name: "Mode", default: "Redesky", values: ["L","Redesky"] }), } }, 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 "L":{ mc.thePlayer.sendChatMessage("L "+target.getName()); break; } case "Redesky":{ mc.thePlayer.sendChatMessage(AdvertiseWords[parseInt(Math.random()*AdvertiseWords.length)].replace(/%name%/,target.getName())); break; } } target = null; } } }) })
-
@gabriel fixed
var target; var EntityPlayer = Java.type('net.minecraft.entity.player.EntityPlayer'); var RedeskyWords = [ "/tell %name% What client? To respond do /r (message)", "Config issue %name%", "Vai foder te para o caralho %name%", "Increve-se ao 'Coccocoa's Helper' no youtube", "Vai te foder %name%", "O anticheat melhor, AAC", "Vips fodem penis.", "Servidor lixo, vai foder vc mesmo.", "Don't use j75's config. Use mine! Sub me on yt, Coccocoa's Helper.", "Win every HvH with my new config! Get on my channel, Coccocoa's Helper.", "Você tem de pegar um hack, eu recommendo o liquidbounce.net", "Servidor de lx cheio de vips.", "Você é um resto de aborto %name%" ] var script = registerScript({ name: "KillSults", version: "1.0", authors: ["Gabriel"] }); script.registerModule({ name: "KillSults", description: "Insults people when you kill them.", category: "Misc", settings: { Mode: Setting.list({ name: "Mode", default: "Redesky", values: ["L", "Redesky"] }), } }, 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 "L": mc.thePlayer.sendChatMessage("L " + target.getName()); break; case "Redesky": mc.thePlayer.sendChatMessage(RedeskyWords[parseInt(Math.random() * RedeskyWords.length)].replace(/%name%/, target.getName())); break; } target = null; } } }) })
-
@skidma Thanks