Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. function OnEvent(event, arg)
  2. OutputLogMessage("event = %s, arg = %d\n", event, arg)
  3. if (event == "PROFILE_ACTIVATED") then
  4. EnablePrimaryMouseButtonEvents(true)
  5. elseif event == "PROFILE_DEACTIVATED" then
  6. ReleaseMouseButton(2) -- to prevent it from being stuck on
  7. end
  8. if (event == "MOUSE_BUTTON_PRESSED" and arg == 5) then
  9. recoil = not recoil
  10. spot = not spot
  11. end
  12. if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoil) then
  13. if recoil then
  14. repeat
  15. --Sleep(19)
  16. Sleep(19)
  17. MoveMouseRelative(0, 6)
  18. Sleep(19)
  19. MoveMouseRelative(-7, 7)
  20. Sleep(19)
  21. MoveMouseRelative(-6, 7)
  22. Sleep(19)
  23. MoveMouseRelative(5, 7)
  24. Sleep(19)
  25. MoveMouseRelative(8, 7)
  26. until not IsMouseButtonPressed(1)
  27. end
  28. end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement