Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function OnEvent(event, arg)
- OutputLogMessage("event = %s, arg = %d\n", event, arg)
- if (event == "PROFILE_ACTIVATED") then
- EnablePrimaryMouseButtonEvents(true)
- elseif event == "PROFILE_DEACTIVATED" then
- ReleaseMouseButton(2) -- to prevent it from being stuck on
- end
- if (event == "MOUSE_BUTTON_PRESSED" and arg == 6) then
- recoil = not recoil
- spot = not spot
- end
- if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoil) then
- if recoil then
- repeat
- Sleep(60) if not IsMouseButtonPressed(1) then break end
- MoveMouseRelative(-2, 2)
- Sleep(1) if not IsMouseButtonPressed(1) then break end
- MoveMouseRelative(-3, 4)
- Sleep(1) if not IsMouseButtonPressed(1) then break end
- MoveMouseRelative(-4, 6)
- Sleep(1) if not IsMouseButtonPressed(1) then break end
- MoveMouseRelative(-5, 8)
- Sleep(1) if not IsMouseButtonPressed(1) then break end
- MoveMouseRelative(0, 10)
- Sleep(1) if not IsMouseButtonPressed(1) then break end
- MoveMouseRelative(0,10)
- Sleep(60) if not IsMouseButtonPressed(1) then break end
- MoveMouseRelative(0, 10)
- Sleep(60) if not IsMouseButtonPressed(1) then break end
- MoveMouseRelative(0, 10)
- Sleep(20) if not IsMouseButtonPressed(1) then break end
- until not IsMouseButtonPressed(1)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment