Rust AK Script 2019

Post gaming related scripts
trevtrev4
Posts: 10
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

Code: Select all

#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: 188
Joined: 08 Jul 2019, 05:37
Contact:

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: 8918
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: 2
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: 9
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: 9
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 ?
itskyh
Posts: 1
Joined: 01 Dec 2019, 07:50

Re: Rust AK Script 2019

01 Dec 2019, 10:10

how tf do you add the rest of the bullets, can you help bro
rayen
Posts: 9
Joined: 15 Oct 2019, 07:04

Re: Rust AK Script 2019

12 Dec 2019, 13:32

is it even working for you ?
rayen
Posts: 9
Joined: 15 Oct 2019, 07:04

Re: Rust AK Script 2019

14 Dec 2019, 19:26

@itskyh
bro did it work for you because for me its just the ak pattern but going the wrong way and i tried every fuckin sensitivty
kondi_krul
Posts: 1
Joined: 20 Dec 2019, 06:10

Re: Rust AK Script 2019

20 Dec 2019, 06:16

bro, you must delete from script last line
rayen
Posts: 9
Joined: 15 Oct 2019, 07:04

Re: Rust AK Script 2019

25 Mar 2020, 10:39

@kondi_krul
what do u mean what line ?
gregster
Posts: 8918
Joined: 30 Sep 2013, 06:48

Re: Rust AK Script 2019

25 Mar 2020, 10:48

rayen wrote:
25 Mar 2020, 10:39
@kondi_krul
what do u mean what line ?
He probably meant the line "Similar code but for 4x M249" which was somewhere in the code box in the first post (probably it was overlooked when a moderator - probably me - added the original code tags). I splitted the code now into two code boxes.

Now, what does the user learn? To use code tags themselves, and to not rely on the moderator with the poor eyesight. ;)
rayen
Posts: 9
Joined: 15 Oct 2019, 07:04

Re: Rust AK Script 2019

25 Mar 2020, 11:03

@gregster
bro i did that but the script is just making the ak pattern but in the wrong way can u like gimme ur discord and help me a bit ?
gregster
Posts: 8918
Joined: 30 Sep 2013, 06:48

Re: Rust AK Script 2019

25 Mar 2020, 11:12

I am not talking about the script, just about the (originally missing) code tags in the first post above, which were added for you the original poster trevtrev4 by a moderator (possibly me, back in April 2019). It was one single code box before today, now I separated the code into two code boxes... I guess, these lumped together scripts caused kondi_krul's remark.

Sorry, I can't help you with Rust - I don't even know what kind of game that is or how it works.
rayen
Posts: 9
Joined: 15 Oct 2019, 07:04

Re: Rust AK Script 2019

25 Mar 2020, 11:18

@gregster
oh okey

Return to “Gaming Scripts (v1)”

Who is online

Users browsing this forum: No registered users and 30 guests