Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

  1. Home
  2. ScriptAPI
  3. [SUPPORT] Someone fix this script.

[SUPPORT] Someone fix this script.

Scheduled Pinned Locked Moved ScriptAPI
3 Posts 2 Posters 154 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gabriel
    wrote on last edited by
    #1

    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;
                }
            }
        })
    })
    
    DreamWasFuckedD 1 Reply Last reply
    0
    • DreamWasFuckedD Offline
      DreamWasFuckedD Offline
      DreamWasFucked
      replied to Gabriel on last edited by
      #2

      @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;
                  }
              }
          })
      })
      
      G 1 Reply Last reply
      0
      • G Offline
        G Offline
        Gabriel
        replied to DreamWasFucked on last edited by
        #3

        @skidma Thanks 🙂

        1 Reply Last reply
        0

        About
        • Terms of Service
        • Privacy Policy
        • Status
        • Contact Us
        Downloads
        • Releases
        • Source code
        • License
        Docs
        • Tutorials
        • CustomHUD
        • AutoSettings
        • ScriptAPI
        Community
        • Forum
        • Guilded
        • YouTube
        • Twitter
        • D.Tube
        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups