Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ;This script sprints forward, jumps, sprints again, jumps then goes back.
- ;I sleep on 0 and draw my weapons on Q.
- ;It also rests after X ammount of runs.
- WinWait, Mortal Online,
- IfWinNotActive, Mortal Online, , WinActivate, Mortal Online,
- WinWaitActive, Mortal Online,
- Process Priority,,R
- #MaxThreads 3
- !z::ExitApp ; Alt + z hard-crashes the macro.
- f6::Pause ; F6 Pauses the macro, plays if pressed again.
- f7::Reload ; F7 Reload the macro, if you wish to restart for some reason or update the code.
- f8:: ; F8 Runs the macro.
- Resting_Time := 8000 ; Resting time in ms (1sec = 1000ms) 40000 normal resting or 8000 for inn.
- Run_Count := 30 ; Number of times you run before resting.
- Jump_amount := 2 ; Number of jumps you jump.
- Run_Time := 1000 ; Time you run forward in between jumps in ms. Total run-time = Run_Time * Jump_amount
- Loop
- {
- Loop, %Run_Count%
- {
- Send, {W Down}
- Sleep, 30
- Loop, %Jump_amount%
- {
- Send, {Shift Down}
- Sleep, %Run_Time%
- Send, {Shift Up}
- Sleep, 30
- Send, {Space}
- Sleep, 50
- }
- Send, {W Up}
- Sleep, 30
- Send, {S Down}
- Sleep, 6000
- Send {S Up}
- }
- Sleep, 1000
- Send, q
- Sleep, 2000
- Send, 0
- Sleep, %Resting_Time%
- Send, w
- Sleep, 1000
- Send, q
- Sleep, 2000
- }
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement