CCBlueX Forum

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

    Unsolved Help omgomg

    Kotlin/Java
    1
    2
    91
    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.
    • BobikHatar
      BobikHatar last edited by BobikHatar

      @EventTarget
      private fun onBobik(event: MoveEvent) {
          var isChanged : Boolean = false
          var oldStrafe : Int = 0
          if (killAuraEnableTargetStrafe.get()) {
              if (killAura.rotationStrafeValue.get().toLowerCase().equals("off") || killAura.rotationStrafeValue.get().toLowerCase().equals("silent") || killAura.rotationStrafeValue.get().toLowerCase().equals("strict") && killAura.state == true && speed.state == true && state == true) {
                  if (killAura.rotationStrafeValue.get().toLowerCase().equals("off")) { oldStrafe = 1 }
                  if (killAura.rotationStrafeValue.get().toLowerCase().equals("silent")) { oldStrafe = 2 }
                  if (killAura.rotationStrafeValue.get().toLowerCase().equals("strict")) { oldStrafe = 3 }
      
                  killAura.rotationStrafeValue.changeValue("TargetStrafe")
                  isChanged = true
              }
              if (isChanged == true) {
                  if (killAura.state == false || speed.state == false || state == false) {
                      if (oldStrafe == 1) {
                          killAura.rotationStrafeValue.changeValue("Off")
                          oldStrafe = 0
                          isChanged = false
                      }
                      if (oldStrafe == 2) {
                          killAura.rotationStrafeValue.changeValue("Silent")
                          oldStrafe = 0
                          isChanged = false
                      }
                      if (oldStrafe == 3) {
                          killAura.rotationStrafeValue.changeValue("Strict")
                          oldStrafe = 0
                          isChanged = false
                      }
                  }
              }
          }
      }
      

      why it doesnt want to return old values? idk im dumb
      if if if if if if if if if if if if if if if if if if if if if if if if if

      BobikHatar 1 Reply Last reply Reply Quote 0
      • BobikHatar
        BobikHatar @BobikHatar last edited by

        @bobikhatar said in Help omgomg:

        state == false

        targetstrafe state

        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