Advertisement
najwalaylah

sprints forward, jumps, sprints again, jumps then goes back

Aug 23rd, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv  ;This script sprints forward, jumps, sprints again, jumps then goes back.
  2. ;I sleep on 0 and draw my weapons on Q.
  3. ;It also rests after X ammount of runs.
  4.  
  5. WinWait, Mortal Online,
  6. IfWinNotActive, Mortal Online, , WinActivate, Mortal Online,
  7. WinWaitActive, Mortal Online,
  8. Process Priority,,R
  9. #MaxThreads 3
  10.  
  11. !z::ExitApp   ; Alt + z hard-crashes the macro.
  12. f6::Pause      ; F6 Pauses the macro, plays if pressed again.
  13. f7::Reload      ; F7 Reload the macro, if you wish to restart for some reason or update the code.
  14. f8::         ; F8 Runs the macro.
  15.  
  16. Resting_Time := 8000    ; Resting time in ms (1sec = 1000ms) 40000 normal resting or 8000 for inn.
  17. Run_Count := 30      ; Number of times you run before resting.
  18. Jump_amount := 2       ; Number of jumps you jump.
  19. Run_Time := 1000      ; Time you run forward in between jumps in ms. Total run-time = Run_Time * Jump_amount
  20.  
  21. Loop
  22.    {
  23.    Loop, %Run_Count%
  24.       {
  25.       Send, {W Down}
  26.       Sleep, 30
  27.       Loop, %Jump_amount%
  28.          {
  29.          Send, {Shift Down}
  30.          Sleep, %Run_Time%
  31.          Send, {Shift Up}
  32.          Sleep, 30
  33.          Send, {Space}
  34.          Sleep, 50
  35.          }
  36.       Send, {W Up}
  37.       Sleep, 30
  38.       Send, {S Down}
  39.       Sleep, 6000
  40.       Send {S Up}
  41.       }
  42.    Sleep, 1000
  43.    Send, q
  44.    Sleep, 2000
  45.    Send, 0
  46.    Sleep, %Resting_Time%
  47.    Send, w
  48.    Sleep, 1000
  49.    Send, q
  50.    Sleep, 2000
  51.    }
  52. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement