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. How to obtain killaura attacking players

How to obtain killaura attacking players

Scheduled Pinned Locked Moved Unsolved ScriptAPI
19 Posts 5 Posters 2.3k Views 1 Watching
  • 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.
  • I Offline
    I Offline
    ibook
    wrote on last edited by
    #10

    Like this?![8N%4O@V_Y]{UJY1J97HN~DV.png](/assets/uploads/files/1642827369666-8n-4o-v_y-ujy1j97hn-dv.png)

    1 Reply Last reply
    0
    • kaduvertK kaduvert

      @ibook

      moduleManager.getModule('KillAura').target
      

      why is everyone so toxic around here?

      I Offline
      I Offline
      ibook
      wrote on last edited by ibook
      #11
      				var player = moduleManager.getModule('KillAura').target
      				//var player = getNearestTarget()
      				//var player = getClosestEntity();
      				if( mc.gameSettings.keyBindForward.isKeyDown() && KillAura.state == true && target != null && !player.isDead && Math.sqrt(Math.pow(mc.thePlayer.posX - player.posX,2) + Math.pow(mc.thePlayer.posZ - player.posZ,2)) != 0 && !LiquidBounce.moduleManager.getModule(Teams.class).isInYourTeam(player)){
      		            var c1 = (mc.thePlayer.posX - player.posX)/(Math.sqrt(Math.pow(mc.thePlayer.posX - player.posX,2) + Math.pow(mc.thePlayer.posZ - player.posZ,2)))
      		            var s1 = (mc.thePlayer.posZ - player.posZ)/(Math.sqrt(Math.pow(mc.thePlayer.posX - player.posX,2) + Math.pow(mc.thePlayer.posZ - player.posZ,2)))
      					chat.print(" C1"+c1+" S1"+s1)
      					if(mc.thePlayer.motionX <= 0.06 || mc.thePlayer.motionZ <= 0.06) {
      					 mc.thePlayer.motionX = motionXZ.get()*s1 - 0.18*motionXZ.get()*c1
      			    	 mc.thePlayer.motionZ = -motionXZ.get()*c1 - 0.18*motionXZ.get()*s1
      
      					} else {
      						
      					 mc.thePlayer.motionX = motionXZ.get()*s1 - 0.18*motionXZ.get()*c1
      			    	 mc.thePlayer.motionZ = -motionXZ.get()*c1 - 0.18*motionXZ.get()*s1
      
      					}
      
      1 Reply Last reply
      0
      • I Offline
        I Offline
        ibook
        wrote on last edited by
        #12

        ! @somedudeyouveneverheardof like this? Why can't I take to get the coordinates of target

        kaduvertK 1 Reply Last reply
        0
        • I ibook

          ! @somedudeyouveneverheardof like this? Why can't I take to get the coordinates of target

          kaduvertK Offline
          kaduvertK Offline
          kaduvert
          wrote on last edited by
          #13

          @ibook

          LiquidBounce.moduleManager.getModule(Teams.class).isInYourTeam(player)
          

          seems to be causing issues and should probably be written as

          moduleManager.getModule('Teams').isInYourTeam(player)
          

          also you should in

          chat.print(" C1"+c1+" S1"+s1)
          

          write "chat" with a capital C because "Chat" is not defined, to know what is defined see:
          https://liquidbounce.net/docs/ScriptAPI/Global Classes, https://liquidbounce.net/docs/ScriptAPI/Global Instances and maybe https://github.com/CCBlueX/LiquidBounce/blob/1cb655a179cb6fb4d3423e28b37348fe7c814963/shared/main/java/net/ccbluex/liquidbounce/script/Script.kt#L45

          1 Reply Last reply
          0
          • A Aftery

            This post is deleted!

            kaduvertK Offline
            kaduvertK Offline
            kaduvert
            wrote on last edited by kaduvert
            #14

            @aftery Almost any support question asked here can be solved with enough research and knowledge. You don't have to tell him what he's doing wrong but if you are here, know the answer - which i assume is true - then why not help him out?

            I can only speak for myself and in my experience it was not as obvious to just "rtfm" because there is no good "How to LiquidBounce script".
            The ressources exist and do solve your question but learning where they are, how to use them and what they mean was difficult and took time for me and probably other people too.

            A I 2 Replies Last reply
            1
            • kaduvertK kaduvert

              @aftery Almost any support question asked here can be solved with enough research and knowledge. You don't have to tell him what he's doing wrong but if you are here, know the answer - which i assume is true - then why not help him out?

              I can only speak for myself and in my experience it was not as obvious to just "rtfm" because there is no good "How to LiquidBounce script".
              The ressources exist and do solve your question but learning where they are, how to use them and what they mean was difficult and took time for me and probably other people too.

              A Offline
              A Offline
              Aftery
              wrote on last edited by
              #15
              This post is deleted!
              kaduvertK 1 Reply Last reply
              1
              • kaduvertK kaduvert

                @aftery Almost any support question asked here can be solved with enough research and knowledge. You don't have to tell him what he's doing wrong but if you are here, know the answer - which i assume is true - then why not help him out?

                I can only speak for myself and in my experience it was not as obvious to just "rtfm" because there is no good "How to LiquidBounce script".
                The ressources exist and do solve your question but learning where they are, how to use them and what they mean was difficult and took time for me and probably other people too.

                I Offline
                I Offline
                ibook
                wrote on last edited by
                #16

                @somedudeyouveneverheardof thank you for your help

                kaduvertK 1 Reply Last reply
                0
                • A Aftery

                  This post is deleted!

                  kaduvertK Offline
                  kaduvertK Offline
                  kaduvert
                  wrote on last edited by kaduvert
                  #17

                  @aftery
                  i think this person has read docs, i once too made the mistakes i see in this thread.
                  i just answering the peoples question will benefit everyone, as these people also "level-up" their knowledge they may publish scripts, help other people and so on.

                  as to the scriptAPI in general, it may not be the best implementation but it certainly works and is useful. i think many people are willing to sacrifice a few frames to modify their game.
                  you could argue that forge mods achieve the same but they are for beginners more difficult to create.
                  i think the scriptAPI is an awesome tool that makes LiquidBounce the 1.8 client for eternity. it may not get updated anymore but the ability to, to some extend, just do that yourself is unique among the vast landscape of clients.

                  1 Reply Last reply
                  0
                  • I ibook

                    @somedudeyouveneverheardof thank you for your help

                    kaduvertK Offline
                    kaduvertK Offline
                    kaduvert
                    wrote on last edited by kaduvert
                    #18

                    @ibook no problem.
                    you should select an answer as the solution, to mark the thread as solved. you may do that to keep the forums organized.

                    I 1 Reply Last reply
                    0
                    • kaduvertK kaduvert

                      @ibook no problem.
                      you should select an answer as the solution, to mark the thread as solved. you may do that to keep the forums organized.

                      I Offline
                      I Offline
                      ibook
                      wrote on last edited by
                      #19

                      @somedudeyouveneverheardof ok I see

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      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