编辑代码

------------------------The default scroll wheel is turned on and off one by one-------------------------------------------
offkey = 0 
---------------------------------------------------------------------------------------------------------------------------
--------------------------------------------Permanent debugging qq6509289--------------------------------------------------
-------------------To use, simply change the desired macro to the desired side key number without filling in 0-------------
----------------------------------This area can only be accessed through side keys-----------------------------------------
guitiao = 0      -----------------(Ghost Jump)-----------------------------------------------------------------------------
hk417 = 0        -----------------(hk417)----------------------------------------------------------------------------------
lianyu = 5       -----------------(Purgatory)------------------------------------------------------------------------------
suibu = 0        -----------------(Suibu)----------------------------------------------------------------------------------
sandun = 0       -----------------(Flash squat)----------------------------------------------------------------------------
m4 = 0           -----------------(m4)  -----------------------------------------------------------------------------------
qbz = 0          -----------------(qbz) -----------------------------------------------------------------------------------
leishen = 0      -----------------(This is the speed macro of M4. Hold down this key and keep clicking)--------------------
usp = 0          -----------------(USP)------------------------------------------------------------------------------------
shunju = 0       -----------------(Instant Sniper)-------------------------------------------------------------------------
liujitiao = 0    -----------------(Six)------------------------------------------------------------------------------------
chaojitiao = 0   -----------------(Super Jump (with a 45 degree crosshair tilt)--------------------------------------------
erjitiao = 0     -----------------(Second level jump, stick to the box and hold it down, then click again)-----------------
liantiao = 0     -----------------(Jumping continuously)-------------------------------------------------------------------

ytyt= 0  

uspmin = 30    -------------------(USP Group 1 Minimum Milliseconds)-------------------------------------------------------
uspmax = 60    -------------------(USP Group 1 Maximum Milliseconds)-------------------------------------------------------
uspmin1 = 40   -------------------(USP Group 2 Minimum Milliseconds)-------------------------------------------------------
uspmax1 = 70   -------------------(USP Group 2 Maximum Milliseconds)-------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------
qbztime1 = 20
qbztime2 = 30
qbztime3 = 400
---------------------------------------------------------------------------------------------------------------------------
qbzpower1 = 4
qbzpower2 = 5
---------------------------------------------------------------------------------------------------------------------------
m4time1 = 7
m4time2 = 38
m4time3 = 400
---------------------------------------------------------------------------------------------------------------------------
m4power1 = 4
m4power2 = 3

---------------------------------------------------------------------------------------------------------------------------
aktime1 = 29
aktime2 = 38
---------------------------------------------------------------------------------------------------------------------------
akpower1 = 6
akpower2 = 8



---------------------------------------------------------------------------------------------------------------------------
mintime_q = 80   -----------------(Minimum cutting speed)------------------------------------------------------------------
maxtime_q = 100  -----------------(Maximum cutting speed)------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------

pressgunqbz5 = false
kaiguan = true
pressgunqbz = false
kaiguan2 = false
EnablePrimaryMouseButtonEvents(true)
function OnEvent(event, arg)
x = 0
y = 0

	if(event == "MOUSE_BUTTON_PRESSED" and kaiguan and arg == leishen)then
	    repeat
                     PressMouseButton(1)
			Sleep(35)  
			ReleaseMouseButton(1)
			Sleep(math.random(150,160))
	    until not IsMouseButtonPressed(leishen)		
        end

if (event == "MOUSE_BUTTON_PRESSED" and arg == m4) then
     kaiguan2 = not kaiguan2
   end

  if (event == "MOUSE_BUTTON_PRESSED" and arg == ak) then
    pressgunqbz5 = not pressgunqbz5
end



if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and pressgunqbz5 and kaiguan) then
		Sleep(50)
   while (IsMouseButtonPressed(1) and x < aktime1) do
		MoveMouseRelative(0, akpower1)
         x = x+1
   Sleep(10)
   while (IsMouseButtonPressed(1) and x >= aktime1 and x < aktime2) do
		MoveMouseRelative(0, akpower2)
                 x = x+1
  Sleep(10)
end	
end
end

  
  if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and kaiguan2 and kaiguan) then
    Sleep(110)
    while  (IsMouseButtonPressed(1) and x < m4time1 ) do
      MoveMouseRelative(0, m4power1)
      x = x+1
      y = y-m4power1
      Sleep(10)
      while (IsMouseButtonPressed(1) and x >= m4time1 and x < m4time2 ) do
        MoveMouseRelative(0, m4power2)
        x = x+1
        y = y-m4power2
        OutputLogMessage("y = %s\n", y)
        Sleep(10)
        while (IsMouseButtonPressed(1) and x >= m4time2 and x < m4time3) do
          x = x+1
          y = -121
          Sleep(10)
        end
      end
    end
    if not IsMouseButtonPressed(1) then
      Sleep(20)
      OutputLogMessage("y2 = %s\n", y)
      MoveMouseRelative(0, y)
    end
  end


	if (event == "MOUSE_BUTTON_PRESSED" and arg == offkey) then 
		kaiguan = not kaiguan
		if(kaiguan)then
		OutputLogMessage(" on \n")
		else
		OutputLogMessage(" off \n")
		end
	end

	if (event == "MOUSE_BUTTON_PRESSED" and arg ==qbz ) then
        pressgunqbz = not pressgunqbz
        OutputLogMessage("qbz on \n")
	end
  
  
  if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and pressgunqbz and kaiguan) then
    Sleep(110)
    while  (IsMouseButtonPressed(1) and x < qbztime1) do
      MoveMouseRelative(0, qbzpower1)
      x = x+1
      y = y-qbzpower1
      Sleep(10)
      while (IsMouseButtonPressed(1) and x >= qbztime1 and x < qbztime2) do
        MoveMouseRelative(0, qbzpower2)
        x = x+1
        y = y-qbzpower2
        OutputLogMessage("y = %s\n", y)
        Sleep(10)
        while (IsMouseButtonPressed(1) and x >= qbztime2 and x < qbztime3) do
          x = x+1
          y = -127
          Sleep(10)
        end
      end
    end
    if not IsMouseButtonPressed(1) then
      Sleep(20)
      OutputLogMessage("y2 = %s\n", y)
      MoveMouseRelative(0, y)
    end
  end

	if(event == "MOUSE_BUTTON_PRESSED" and kaiguan and arg == hk417)then
		    repeat
                  
                   PressMouseButton(1)

                  Sleep(math.random(25, 50))

                   ReleaseMouseButton(1)

                  Sleep(math.random(100,130))   

          until not IsMouseButtonPressed(hk417)	
	end
	if(event == "MOUSE_BUTTON_PRESSED" and kaiguan and arg == liujitiao)then
		       PressKey("s")  
		       Sleep(1217) 
		        PressKey("w")
		      Sleep(300)
		      
		      PressKey("lctrl") 
		       Sleep(30)
		       ReleaseKey("lctrl")

		       Sleep(10)
		       PressKey("lctrl") 
		       Sleep(30)
		       ReleaseKey("lctrl")

		       Sleep(10)
		        PressKey("spacebar")
			Sleep(math.random(105,107))
			 PressKey("lctrl") 
			 Sleep(85)
			ReleaseKey("spacebar") 
			Sleep(135)
			ReleaseKey("lctrl")
			Sleep(1000)
			
			PressKey("spacebar")
			Sleep(math.random(105,107))
			 PressKey("lctrl") 
			 Sleep(85)
			ReleaseKey("spacebar") 
			Sleep(135)
			ReleaseKey("lctrl")
			Sleep(1000)
			PressKey("spacebar")
			Sleep(math.random(105,107))
			 PressKey("lctrl") 
			 Sleep(85)
			ReleaseKey("spacebar") 
			Sleep(135)
			ReleaseKey("lctrl")
			Sleep(1000)
			
			ReleaseKey("w")
			Sleep(500)
			PressKey("spacebar")
			Sleep(136)  
			ReleaseKey("spacebar")
			Sleep(500)
			PressKey("spacebar")
			Sleep(135)
			ReleaseKey("spacebar")
			Sleep(106)
			PressKey("lctrl")
			Sleep(30)
			ReleaseKey("lctrl")
			Sleep(60)
			PressKey("spacebar")
			Sleep(107)
			ReleaseKey("spacebar")
			Sleep(math.random(105,107))
			ReleaseKey("s")
			
	end

  if (event == "MOUSE_BUTTON_PRESSED" and kaiguan and arg == usp) then
     PressMouseButton(1)
     Sleep(math.random(30,60))
     ReleaseMouseButton(1)
     MoveMouseRelative(0, 60) 
     Sleep(math.random(20,60))
     repeat
    	  PressMouseButton(1)
    	  Sleep(math.random(30,60))  
    	  ReleaseMouseButton(1)
    	  Sleep(math.random(20,60))
     until not IsMouseButtonPressed(usp)	
  end

 
if(event == "MOUSE_BUTTON_PRESSED" and kaiguan and arg == lianyu)then
repeat	
			PressMouseButton(1)
			Sleep(math.random(100,185))  
			ReleaseMouseButton(1)
			Sleep(math.random(10,25))
	until not IsMouseButtonPressed(lianyu)	
	end
	if(event == "MOUSE_BUTTON_PRESSED" and kaiguan and arg == chaojitiao)then
	            PressKey("s")
		      Sleep(5)
		        PressKey("w")
		      Sleep(600)
		      
		      PressKey("lctrl") 
		       Sleep(30)
		       ReleaseKey("lctrl")

		       Sleep(100)
		       PressKey("lctrl") 
		       Sleep(30)
		       ReleaseKey("lctrl")

		       Sleep(20)
		        PressKey("spacebar")
		    
		        Sleep(107)
			 PressKey("lctrl") 
			 Sleep(85)
			ReleaseKey("spacebar") 
			Sleep(135)
			ReleaseKey("lctrl")

			ReleaseKey("s")
			ReleaseKey("w")
	end
	if(event == "MOUSE_BUTTON_PRESSED" and kaiguan and arg == erjitiao)then
		    PressKey("spacebar")
			Sleep(math.random(135,137))  
			ReleaseKey("spacebar")
			Sleep(math.random(500,502))
			PressKey("spacebar")
			Sleep(math.random(105,107))
			PressKey("lctrl")
			Sleep(85)
			ReleaseKey("spacebar")
			Sleep(135)
			ReleaseKey("lctrl")
	end
	if(event == "MOUSE_BUTTON_PRESSED" and kaiguan and arg == guitiao)then
	       PressKey("spacebar")
		Sleep(math.random(10,20))  
		ReleaseKey("spacebar")
		Sleep(math.random(10,20))
		PressKey("lctrl")
		Sleep(math.random(10,20))
		repeat	
		  PressKey("spacebar")
		  Sleep(math.random(10,20))  
		  ReleaseKey("spacebar")
		  Sleep(math.random(10,20))
		until not IsMouseButtonPressed(guitiao)
		ReleaseKey("lctrl")
	end
	if(event == "MOUSE_BUTTON_PRESSED" and kaiguan and arg == shunju)then
  	  PressMouseButton(3);
      Sleep(10);
      ReleaseMouseButton(3);
      Sleep(10);
      PressMouseButton(1);
      Sleep(10);
      ReleaseMouseButton(1);
      Sleep(50);
      PressKey("3");
      Sleep(50);
      ReleaseKey("3");
      Sleep(50);
      PressKey("1");
      Sleep(50);
      ReleaseKey("1");
      Sleep(50);
      PressKey("1");
      Sleep(50);
      ReleaseKey("1");
	end
if(event == "MOUSE_BUTTON_PRESSED" and kaiguan and arg == suibu)then  
             repeat
                  
               PressKey("w")                                                                  

            Sleep(math.random(10,50))                                  

          ReleaseKey("w")   

        Sleep(math.random(20,65))   

          until not IsMouseButtonPressed(suibu)
            end
            	if(event == "MOUSE_BUTTON_PRESSED" and kaiguan and arg == liantiao)then
ClearLog ()
OutputLogMessage("guitiao1_ing\n")
		repeat	
		    PressKey("spacebar")
		Sleep(math.random(5,28))  
			ReleaseKey("spacebar")
		Sleep(math.random(10,28))
		until not IsMouseButtonPressed(liantiao)
	end
if(event == "MOUSE_BUTTON_PRESSED" and kaiguan and arg == sandun)then           
        repeat	
		    
			PressKey("lctrl")
			Sleep(math.random(15,17)) 
			ReleaseKey("lctrl")
		       Sleep(math.random(15,17))
		       PressKey("lctrl")
		       Sleep(math.random(15,17))
		       ReleaseKey("lctrl")
		until not IsMouseButtonPressed(sandun)
		end
end