CCBlueX Forum

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

    AAC5 Fly (Test)

    Scripts
    10
    14
    1967
    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.
    • qwq Liulihaocai
      qwq Liulihaocai last edited by qwq Liulihaocai

      This script 50% may make aac5 think you are "unconfirmed teleport"
      and this fly is sooo slow

      video https://www.youtube.com/watch?v=AW8mSGSN_1g

      /// api_version=2
      var script = registerScript({
      	name: "ScriptModule",
      	version: "1.0",
      	authors: ["liulihaocai"]
      });
      
      var Double=Java.type('java.lang.Double')
      // var PacketUtils=Java.type('net.ccbluex.liquidbounce.utils.PacketUtils')
      var C03PacketPlayer=Java.type('net.minecraft.network.play.client.C03PacketPlayer')
      var S08PacketPlayerPosLook=Java.type('net.minecraft.network.play.server.S08PacketPlayerPosLook')
      var S40PacketDisconnect=Java.type('net.minecraft.network.play.server.S40PacketDisconnect')
      
      Math.toRadians = function (degrees) {
          return degrees * Math.PI / 180;
      };
      
      script.registerModule({
      	name: "AACv5Fly",
      	description: "Konsolas不要理会谣言与中伤",
          category: "Movement"
      }, function (module) {
      	var status=0
      	var pk=null
      
      	var packets=[]
      
      	function sendPacketNoEvent(packet){
      		packets.push(packet)
      		mc.getNetHandler().addToSendQueue(packet)
      	}
      
      	module.on("update", function () { try {
      
              if(mc.thePlayer.onGround){
      			Chat.print("JUMP INTO AIR AND TOGGLE THIS MODULE")
      			module.setState(false)
      			return
      		}
      
      		mc.gameSettings.keyBindForward.pressed=status!=1
      		mc.thePlayer.motionX = 0;
      		mc.thePlayer.motionZ = 0;
      		mc.thePlayer.motionY = 0;
      		mc.thePlayer.rotationYaw=launchYaw
      		mc.thePlayer.rotationPitch=launchPitch
      		if(status==1){
      			if(pk!=null){
      				sendPacketNoEvent(pk);
      				var dist=0.13
      				var yaw=Math.toRadians(mc.thePlayer.rotationYaw)
      				var x = -Math.sin(yaw) * dist
      				var z = Math.cos(yaw) * dist
      				mc.thePlayer.setPosition(mc.thePlayer.posX + x, mc.thePlayer.posY, mc.thePlayer.posZ + z)
      				sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(
      						mc.thePlayer.posX,
      						mc.thePlayer.posY,
      						mc.thePlayer.posZ,
      						false));
      				Chat.print("CLIP "+mc.thePlayer.posX+" "+mc.thePlayer.posY+" "+mc.thePlayer.posZ)
      			}
      			sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX,1.7976931348623157E+308,mc.thePlayer.posZ,true));
      			pk=new C03PacketPlayer.C06PacketPlayerPosLook(mc.thePlayer.posX,mc.thePlayer.posY,mc.thePlayer.posZ, mc.thePlayer.rotationYaw, mc.thePlayer.rotationPitch, false)
      			Chat.print("MAKEFLAG "+mc.thePlayer.posX+" "+mc.thePlayer.posY+" "+mc.thePlayer.posZ)
      		}else if(status==2){
      			tick++
      			if(tick>=2){
      				status=1
      			}
      		}
      	}catch(err){Chat.print(err);}
      	});
       
      	module.on("packet", function (event) { try{
      		var packet = event.getPacket();
      
              if(packet instanceof S08PacketPlayerPosLook){
                  event.cancelEvent()
      			if(status==0){
      				mc.thePlayer.setPosition(packet.getX(), packet.getY(), packet.getZ());
      				sendPacketNoEvent(new C03PacketPlayer.C06PacketPlayerPosLook(mc.thePlayer.posX,mc.thePlayer.posY,mc.thePlayer.posZ, packet.getYaw(), packet.getPitch(), false));
      				Chat.print("FLAG "+mc.thePlayer.posX+" "+mc.thePlayer.posY+" "+mc.thePlayer.posZ);
      				if(mc.thePlayer.posX==lastPosX&&mc.thePlayer.posZ==lastPosZ){
      					sameCount++
      					Chat.print("SAME "+sameCount)
      					if(sameCount>=5){
      						status=1
      						mc.timer.timerSpeed=0.1
      						sameCount=0
      						return
      					}
      				}
      				var dist=0.13
      				var yaw=Math.toRadians(mc.thePlayer.rotationYaw)
      				var x = -Math.sin(yaw) * dist
      				var z = Math.cos(yaw) * dist
      				mc.thePlayer.setPosition(mc.thePlayer.posX + x, mc.thePlayer.posY, mc.thePlayer.posZ + z)
      				sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(
      						mc.thePlayer.posX,
      						mc.thePlayer.posY,
      						mc.thePlayer.posZ,
      						false));
      				Chat.print("CLIP "+mc.thePlayer.posX+" "+mc.thePlayer.posY+" "+mc.thePlayer.posZ)
      				lastPosX=mc.thePlayer.posX
      				lastPosZ=mc.thePlayer.posZ
      				sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX,1.7976931348623157E+308,mc.thePlayer.posZ,true));
      			}else{
      				if(mc.timer.timerSpeed<=1.2){
      					sameCount++
      					Chat.print("SAME "+sameCount)
      					if(sameCount>=sameCountReach){
      						sameCount=0
      						sameCountReach+=13
      						mc.timer.timerSpeed+=0.4
      					}
      				}
      				Chat.print("PKFLAG "+packet.getX()+" "+packet.getY()+" "+packet.getZ());
      				// if(packet.getX()!=mc.thePlayer.posX||packet.getZ()!=mc.thePlayer.posZ){
      				// 	mc.thePlayer.setPosition(packet.getX(), packet.getY(), packet.getZ());
      				// 	sendPacketNoEvent(new C03PacketPlayer.C06PacketPlayerPosLook(mc.thePlayer.posX,mc.thePlayer.posY,mc.thePlayer.posZ, packet.getYaw(), packet.getPitch(), false));
      				// }
      				// if(packets.indexOf(packet.getX()+":"+packet.getZ())<(packets.length-2)){
      				// 	packets=[]
      				// 	mc.thePlayer.setPosition(packet.getX(), packet.getY(), packet.getZ());
      				// 	Chat.print("DIFFFLAG "+mc.thePlayer.posX+" "+mc.thePlayer.posY+" "+mc.thePlayer.posZ);
      				// 	status=2
      				// 	tick=0
      				// }else{
      					
      				// }
      				// if(mc.thePlayer.getDistance(packet.getX(), packet.getY(), packet.getZ())>1){
      				// 	mc.thePlayer.setPosition(packet.getX(), packet.getY(), packet.getZ());
      				// 	Chat.print("LONGFLAG "+packet.getX()+" "+packet.getY()+" "+packet.getZ());
      				// }
      			}
                  // mc.getNetHandler().addToSendQueue(new C06(packet.getX(), packet.getY(), packet.getZ(), packet.getYaw(), packet.getPitch(), false));
              }
      		if(packet instanceof C03PacketPlayer&&(packets.indexOf(packet)==-1)){
      			// Chat.print("C03 "+packet.x+" "+packet.y+" "+packet.z)
                  event.cancelEvent()
      		}
      		if(packet instanceof S40PacketDisconnect){
      			module.setState(false)
      		}
      		// if(packet instanceof C03PacketPlayer.C06PacketPlayerPosLook){
      		// 	Chat.print("C06 "+packet.x+" "+packet.y+" "+packet.z)
      		// }
      	}catch(err){
      		Chat.print(err);
      	};
      	});
      	module.on("enable", function () {
      		mc.thePlayer.motionX = 0;
      		mc.thePlayer.motionZ = 0;
      		mc.thePlayer.motionY = 0;
      		status=0
      		lastPosX=0
      		lastPosZ=0
      		sameCount=0
      		tick=0
      		launchYaw=mc.thePlayer.rotationYaw
      		launchPitch=mc.thePlayer.rotationPitch
      		sameCountReach=5
      		pk=null
      		sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX,1.7976931348623157E+308,mc.thePlayer.posZ,true));
      	});
      	module.on("disable", function () {
      		mc.thePlayer.motionY = 0;
      		mc.timer.timerSpeed = 1.0;
      		
      		mc.gameSettings.keyBindForward.pressed=false
      
      		if(pk!=null)
      			sendPacketNoEvent(pk);
      
      		packets.clear()
      	});
      })
      
      
      Natsu CzechHek ENDER1355 FaaatPotato 4 Replies Last reply Reply Quote 6
      • closed.
        closed. last edited by

        very sexy!!!!!!!!!!!

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

          cool but ur showing debugs the aac5 owner wouldn't even need the code to patch it since u just gave him all the info he needs

          qwq Liulihaocai 1 Reply Last reply Reply Quote 0
          • Natsu
            Natsu @qwq Liulihaocai last edited by

            wow, That Script is So Cool

            1 Reply Last reply Reply Quote 1
            • CzechHek
              CzechHek @qwq Liulihaocai last edited by

              @qwq-liulihaocai that's not how you send packets without triggering onPacket tho

              qwq Liulihaocai 1 Reply Last reply Reply Quote 0
              • ENDER1355
                ENDER1355 Banned @qwq Liulihaocai last edited by

                @qwq-liulihaocai happy to see you back, i love ur client fdpclient and this thing is freaking awesome

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

                  @6sence lol

                  1 Reply Last reply Reply Quote 0
                  • qwq Liulihaocai
                    qwq Liulihaocai @CzechHek last edited by

                    @czechhek ik, my custom lb have the real sendPacketNoEvent, and i just want it support original lb

                    CzechHek 1 Reply Last reply Reply Quote 0
                    • qwq Liulihaocai
                      qwq Liulihaocai @ENDER1355 last edited by

                      @ender1355 ty

                      1 Reply Last reply Reply Quote 0
                      • FaaatPotato
                        FaaatPotato @qwq Liulihaocai last edited by

                        @qwq-liulihaocai epic

                        1 Reply Last reply Reply Quote 0
                        • CzechHek
                          CzechHek @qwq Liulihaocai last edited by

                          @qwq-liulihaocai should have just ported standard one to script api

                          https://github.com/CzechHek/Core/blob/82457082bb5bd82b3abbad668d9667fae123407b/Core.lib#L172

                          M 1 Reply Last reply Reply Quote 2
                          • M
                            mems Moderator @CzechHek last edited by

                            @czechhek and what do you gain from silent packets?

                            I 1 Reply Last reply Reply Quote 0
                            • I
                              i forgor @mems last edited by

                              @mems not crashing the client? if you send a packet in packet event it will loop, and eventually crash the client

                              1 Reply Last reply Reply Quote 0
                              • DAVID. PDF
                                DAVID. PDF last edited by

                                This post is deleted!
                                1 Reply Last reply Reply Quote 0
                                • Referenced by  Plumer Man Plumer Man 
                                • 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