Rust AK Script 2019

Post gaming related scripts
trevtrev4
Posts: 2
Joined: 19 Apr 2019, 18:44

Rust AK Script 2019

20 Apr 2019, 09:47

I've put together ab 20 shots of an AK script if anyone would like to check it out here is the code, to finish it off u just have to repeat the loops and adjust the x and y values. the script really only works for close and medium range since I haven't fine-tuned the coordinates.


CODE

Code: Select all

#NoEnv
SendMode Input
 
~F8::Suspend
~End::ExitApp
~F11::Reload
 
LCtrl & ~LButton::
Loop 8

   If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(-5.5,7)
    }
    else
    break
Loop 8

   If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(1,7)
    }
    else
    break
Loop 8

   If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(-7,6.5)
    }
    else
    break
Loop 8

   If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(-7,6.5)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(-1.5,4.5)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(1,6)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(5,3)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(5.5,2)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(6.5,2)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(6.5,2)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(6,0)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(5,2)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(2,4)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(0,5)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(0,5)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(-3,6)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(-4.5,3.5)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(-6,5)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(-6,4)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(-7,3)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(-6,1)
    }
    else
    break

		
Return

mouseXY(x,y)
{
DllCall("mouse_event",int,1,int,x,int,y,uint,0,uint,0)
}



Similar code but for 4x M249

#NoEnv
SendMode Input
 
~F6::Suspend
~End::ExitApp
~F5::Reload
 
LCtrl & ~LButton::
Loop
    If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        moveAmount := (moveAmount = 2) ? 1 : 0
        mouseXY(moveAmount,20)
       
    }
    else
    break
   
Return
 
 
 
mouseXY(x,y)
{
DllCall("mouse_event",int,1,int,x,int,y,uint,0,uint,0)
}
[Mod edit: [code][/code] tags added]
ananthuthilakan
Posts: 30
Joined: 08 Jul 2019, 05:37

Re: Rust AK Script 2019

12 Jul 2019, 00:58

trevtrev4 wrote:
20 Apr 2019, 09:47
I've put together ab 20 shots of an AK script if anyone would like to check it out here is the code, to finish it off u just have to repeat the loops and adjust the x and y values. the script really only works for close and medium range since I haven't fine-tuned the coordinates.


CODE

Code: Select all

#NoEnv
SendMode Input
 
~F8::Suspend
~End::ExitApp
~F11::Reload
 
LCtrl & ~LButton::
Loop 8

   If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(-5.5,7)
    }
    else
    break
Loop 8

   If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(1,7)
    }
    else
    break
Loop 8

   If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(-7,6.5)
    }
    else
    break
Loop 8

   If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(-7,6.5)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(-1.5,4.5)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(1,6)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(5,3)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(5.5,2)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(6.5,2)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(6.5,2)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(6,0)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(5,2)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(2,4)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(0,5)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(0,5)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(-3,6)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(-4.5,3.5)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(-6,5)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(-6,4)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(-7,3)
    }
    else
    break
Loop 8
	If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        mouseXY(-6,1)
    }
    else
    break

		
Return

mouseXY(x,y)
{
DllCall("mouse_event",int,1,int,x,int,y,uint,0,uint,0)
}



Similar code but for 4x M249

#NoEnv
SendMode Input
 
~F6::Suspend
~End::ExitApp
~F5::Reload
 
LCtrl & ~LButton::
Loop
    If GetKeyState("LButton", "LCtrl") {
        Sleep, 6
        moveAmount := (moveAmount = 2) ? 1 : 0
        mouseXY(moveAmount,20)
       
    }
    else
    break
   
Return
 
 
 
mouseXY(x,y)
{
DllCall("mouse_event",int,1,int,x,int,y,uint,0,uint,0)
}
I am new to ahk
can u help me comprehend this
moveAmount := (moveAmount = 2) ? 1 : 0
gregster
Posts: 2976
Joined: 30 Sep 2013, 06:48

Re: Rust AK Script 2019

12 Jul 2019, 01:12

ananthuthilakan wrote:
12 Jul 2019, 00:58
can u help me comprehend this
moveAmount := (moveAmount = 2) ? 1 : 0
It checks if moveAmount equals 2; if it does, it then assigns 1 to moveAmount, if not, it assigns 0
https://www.autohotkey.com/docs/Variables.htm#ternary wrote:?: Ternary operator [v1.0.46+]. This operator is a shorthand replacement for the if-else statement. It evaluates the condition on its left side to determine which of its two branches should become its final result. For example, var := x>y ? 2 : 3 stores 2 in Var if x is greater than y; otherwise it stores 3. To enhance performance, only the winning branch is evaluated (see short-circuit evaluation).
zwilson888
Posts: 1
Joined: 12 Jul 2019, 02:09

Re: Rust AK Script 2019

12 Jul 2019, 02:10

will you please fine tune this and finish the last 10 bullets?? :bravo:
0ak
Posts: 1
Joined: 13 Jul 2019, 06:23

Re: Rust AK Script 2019

13 Jul 2019, 06:28

How does this work with FacePunche’s anti cheat? Has it ever been detected?
flamingeagle03
Posts: 1
Joined: 16 Jul 2019, 06:07

Re: Rust AK Script 2019

16 Jul 2019, 06:09

Hey mate, could you msd me your discord - would like to discuss scripts further :)
Joxley4321
Posts: 1
Joined: 28 Jul 2019, 16:38

Re: Rust AK Script 2019

28 Jul 2019, 16:41

Hey could u pls add me on discord Joxley#7733 because ive got a problem and would like to speak and maybe you could help me out Thanks!
KWM
Posts: 1
Joined: 22 Aug 2019, 16:49

Re: Rust AK Script 2019

24 Aug 2019, 13:30

@trevtrev4
please finish the last 10 bullets
Coopa
Posts: 1
Joined: 04 Oct 2019, 05:30

Re: Rust AK Script 2019

04 Oct 2019, 05:33

Do i need to change my ingame sense or mouse sense?
rayen
Posts: 3
Joined: 15 Oct 2019, 07:04

Re: Rust AK Script 2019

15 Oct 2019, 09:11

yo im getting an error can u help me please
rayen
Posts: 3
Joined: 15 Oct 2019, 07:04

Re: Rust AK Script 2019

15 Oct 2019, 09:20

bro its not working for me its just telling me error 4x m249 and something like that can u help ?

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 5 guests