Guest User

Untitled

a guest
Nov 3rd, 2020
631
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 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 == 6) 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(60) if not IsMouseButtonPressed(1) then break end
  16. MoveMouseRelative(-2, 2)
  17. Sleep(1) if not IsMouseButtonPressed(1) then break end
  18. MoveMouseRelative(-3, 4)
  19. Sleep(1) if not IsMouseButtonPressed(1) then break end
  20. MoveMouseRelative(-4, 6)
  21. Sleep(1) if not IsMouseButtonPressed(1) then break end
  22. MoveMouseRelative(-5, 8)
  23. Sleep(1) if not IsMouseButtonPressed(1) then break end
  24. MoveMouseRelative(0, 10)
  25. Sleep(1) if not IsMouseButtonPressed(1) then break end
  26. MoveMouseRelative(0,10)
  27. Sleep(60) if not IsMouseButtonPressed(1) then break end
  28. MoveMouseRelative(0, 10)
  29. Sleep(60) if not IsMouseButtonPressed(1) then break end
  30. MoveMouseRelative(0, 10)
  31. Sleep(20) if not IsMouseButtonPressed(1) then break end
  32. until not IsMouseButtonPressed(1)
  33. end
  34. end
  35. end
Advertisement
Add Comment
Please, Sign In to add comment