Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Include <Misc.au3>
- #Include<NomadMemory.au3>
- Run("C:\Soldat\Soldat.exe")
- Sleep(500)
- $brtvar = 0
- $Weapon = 0
- $HoldAutoShot = 0
- $Prozess = _memoryopen(ProcessExists("Soldat.exe"))
- While 1 ;Mainwhile
- If _isPressed(01) and $brtvar = 0 then Shot() ;60 NUM NUIf
- If _isPressed(60) then Close()
- WEnd
- Func Shot()
- $Weapon=_MemoryRead(0x00B91685,$Prozess,'byte')
- If $Weapon=8 or 3 or 4 or 9 or 7 or 15 then $HoldAutoShot=0 ; ;autoguns
- If $Weapon=1 or 5 or 6 then $HoldAutoShot=2 ; shotguns
- If $Weapon=8 or 16 then $HoldAutoShot=1 ; shotguns
- ;autoguns press down while 01 is pressed
- if $HoldAutoShot = 0 Then
- While _isPress(01)
- Send("{k down}")
- WEnd
- Send("{k up}")
- endif
- if $HoldAutoShot = 1 Then
- Send("{k down}")
- Sleep(500)
- Send("{k up}")
- endif
- ;one shot for one click
- if $HoldAutoShot = 2 Then
- Send("{k down}")
- Sleep(5)
- Send("{k up}")
- endif
- EndFunc
- Func Close()
- Exit
- EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement