Advertisement
Guest User

Untitled

a guest
Mar 8th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.02 KB | None | 0 0
  1. #Include <Misc.au3>
  2. #Include<NomadMemory.au3>
  3.  
  4. Run("C:\Soldat\Soldat.exe")
  5. Sleep(500)
  6.  
  7. $brtvar = 0
  8. $Weapon = 0
  9. $HoldAutoShot = 0
  10. $Prozess = _memoryopen(ProcessExists("Soldat.exe"))
  11.  
  12. While 1 ;Mainwhile
  13.    If _isPressed(01) and $brtvar = 0 then Shot()      ;60 NUM NUIf
  14.    If _isPressed(60) then Close()
  15. WEnd
  16.    
  17.  
  18. Func Shot()
  19.    $Weapon=_MemoryRead(0x00B91685,$Prozess,'byte')
  20.    If $Weapon=8 or 3 or 4 or 9 or 7 or 15 then $HoldAutoShot=0 ; ;autoguns                    
  21.    If $Weapon=1 or 5 or 6 then $HoldAutoShot=2 ; shotguns
  22.    If $Weapon=8 or 16 then $HoldAutoShot=1 ; shotguns
  23.    ;autoguns press down while 01 is pressed
  24.    
  25.    if $HoldAutoShot = 0 Then
  26.       While _isPress(01)
  27.          Send("{k down}")
  28.          WEnd
  29.          Send("{k up}")
  30.       endif
  31.    
  32.    if $HoldAutoShot = 1 Then
  33.       Send("{k down}")
  34.       Sleep(500)
  35.       Send("{k up}")
  36.    endif
  37.      
  38.      
  39.    ;one shot for one click
  40.    if $HoldAutoShot = 2 Then
  41.       Send("{k down}")
  42.       Sleep(5)
  43.       Send("{k up}")
  44.    endif
  45.    
  46. EndFunc
  47.  
  48. Func Close()
  49.    Exit
  50. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement