Page 1 of 2

Rust AK Script 2019

Posted: 20 Apr 2019, 09:47
by trevtrev4
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]

Re: Rust AK Script 2019

Posted: 12 Jul 2019, 00:58
by ananthuthilakan
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

Re: Rust AK Script 2019

Posted: 12 Jul 2019, 01:12
by gregster
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).

Re: Rust AK Script 2019

Posted: 12 Jul 2019, 02:10
by zwilson888
will you please fine tune this and finish the last 10 bullets?? :bravo:

Re: Rust AK Script 2019

Posted: 13 Jul 2019, 06:28
by 0ak
How does this work with FacePunche’s anti cheat? Has it ever been detected?

Re: Rust AK Script 2019

Posted: 16 Jul 2019, 06:09
by flamingeagle03
Hey mate, could you msd me your discord - would like to discuss scripts further :)

Re: Rust AK Script 2019

Posted: 28 Jul 2019, 16:41
by Joxley4321
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!

Re: Rust AK Script 2019

Posted: 24 Aug 2019, 13:30
by KWM
@trevtrev4
please finish the last 10 bullets

Re: Rust AK Script 2019

Posted: 04 Oct 2019, 05:33
by Coopa
Do i need to change my ingame sense or mouse sense?

Re: Rust AK Script 2019

Posted: 15 Oct 2019, 09:11
by rayen
yo im getting an error can u help me please

Re: Rust AK Script 2019

Posted: 15 Oct 2019, 09:20
by rayen
bro its not working for me its just telling me error 4x m249 and something like that can u help ?

Re: Rust AK Script 2019

Posted: 01 Dec 2019, 10:10
by itskyh
how tf do you add the rest of the bullets, can you help bro

Re: Rust AK Script 2019

Posted: 12 Dec 2019, 13:32
by rayen
is it even working for you ?

Re: Rust AK Script 2019

Posted: 14 Dec 2019, 19:26
by rayen
@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

Re: Rust AK Script 2019

Posted: 20 Dec 2019, 06:16
by kondi_krul
bro, you must delete from script last line

Re: Rust AK Script 2019

Posted: 25 Mar 2020, 10:39
by rayen
@kondi_krul
what do u mean what line ?

Re: Rust AK Script 2019

Posted: 25 Mar 2020, 10:48
by gregster
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. ;)

Re: Rust AK Script 2019

Posted: 25 Mar 2020, 11:03
by rayen
@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 ?

Re: Rust AK Script 2019

Posted: 25 Mar 2020, 11:12
by gregster
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.

Re: Rust AK Script 2019

Posted: 25 Mar 2020, 11:18
by rayen
@gregster
oh okey