CCBlueX Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    [HLEP]HOW? Detect target injury in scripts!

    Scripts
    4
    16
    355
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • BFFGOLS
      BFFGOLS last edited by

      [if (target.isDead) ]to[[if (target.isInjury,) ]] like this!

      6Sence exit scammed CookieChinese 3 Replies Last reply Reply Quote 0
      • 6Sence
        6Sence @BFFGOLS last edited by

        @bffgols hurttime

        BFFGOLS 1 Reply Last reply Reply Quote 0
        • BFFGOLS
          BFFGOLS @6Sence last edited by

          @6sence no is put in autoL

          6Sence 1 Reply Last reply Reply Quote 0
          • exit scammed
            exit scammed @BFFGOLS last edited by

            @6Sence already said, you can just check if the target's hurt time is bigger than 0

            if (target.hurtTime > 0) { <insert what you want here> }
            
            BFFGOLS 1 Reply Last reply Reply Quote 0
            • 6Sence
              6Sence @BFFGOLS last edited by

              @bffgols ?

              1 Reply Last reply Reply Quote 0
              • BFFGOLS
                BFFGOLS @exit scammed last edited by

                @0x64 thx and can u look this have or no have a wor?

                module.on("update", function () {
                module.tag=module.settings.Mode.get();
                if (target != null) {
                if (target.hurtTime > 0) {
                switch(module.settings.Mode.get()){

                1 Reply Last reply Reply Quote 0
                • BFFGOLS
                  BFFGOLS last edited by

                  script.registerModule({
                  name: "AutoL-tell",
                  description: "AutoL in /tell",
                  category: "Fun",
                  tag:"NULL",
                  settings: {
                  Mode: Setting.list({
                  name: "Mode",
                  default: "Chinese",
                  values: ["Lag","Chinese","English","Advertise"]
                  }),
                  }
                  }, 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.hurtTime > 0) {
                  switch(module.settings.Mode.get()){
                  case "Lag":{
                  mc.thePlayer.sendChatMessage("I'm hacker,pls report me "+target.getName());
                  break;
                  }
                  case "Chinese":{
                  mc.thePlayer.sendChatMessage("/tell "+target.getName()+" "+ChineseWords[parseInt(Math.random()*ChineseWords.length)]);
                  break;
                  }
                  case "English":{
                  mc.thePlayer.sendChatMessage("/tell "+target.getName()+" "+EnglishWords[parseInt(Math.random()*EnglishWords.length)]);
                  break;
                  }
                  case "Advertise":{
                  mc.thePlayer.sendChatMessage("/tell "+target.getName()+" "+AdvertiseWords[parseInt(Math.random()*AdvertiseWords.length)].replace(/%name%/,target.getName()));
                  break;
                  }
                  }
                  target = null;
                  }
                  }
                  })
                  })

                  look pls!!!

                  exit scammed 1 Reply Last reply Reply Quote 1
                  • exit scammed
                    exit scammed @BFFGOLS last edited by

                    that's okay

                    BFFGOLS 2 Replies Last reply Reply Quote 0
                    • BFFGOLS
                      BFFGOLS @exit scammed last edited by

                      @0x64 thx!

                      1 Reply Last reply Reply Quote 0
                      • BFFGOLS
                        BFFGOLS last edited by

                        not work bro!

                        1 Reply Last reply Reply Quote 0
                        • BFFGOLS
                          BFFGOLS last edited by

                          autoL.js

                          u look!

                          1 Reply Last reply Reply Quote 0
                          • CookieChinese
                            CookieChinese @BFFGOLS last edited by

                            @bffgols https://forums.ccbluex.net/topic/299/automessage-9-0-base-by-cookie-mumy

                            BFFGOLS 1 Reply Last reply Reply Quote 0
                            • BFFGOLS
                              BFFGOLS last edited by

                              pls give me scripts

                              1 Reply Last reply Reply Quote 0
                              • BFFGOLS
                                BFFGOLS @CookieChinese last edited by

                                @cookiechinese 你能不能给一个简单一点的?
                                我不想在HY用!

                                1 Reply Last reply Reply Quote 0
                                • BFFGOLS
                                  BFFGOLS @exit scammed last edited by

                                  @0x64 target.getHealth()==0

                                  can use this?

                                  exit scammed 1 Reply Last reply Reply Quote 0
                                  • exit scammed
                                    exit scammed @BFFGOLS last edited by

                                    @bffgols kinda

                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post
                                    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