Advertisement
Guest User

Empyrion "Loot All" script for 1920 X 1080 resolution

a guest
Jun 24th, 2017
2,678
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.05 KB | None | 0 0
  1. function OnEvent(event, arg)
  2.     --OutputLogMessage("event = %s, arg = %s\n", event, arg);
  3.  
  4. -- open a cargo/corpse, press loot all, and exit corpse
  5.     if (event == "MOUSE_BUTTON_PRESSED" and arg == 4) then
  6.       PressAndReleaseKey("t")
  7.       Sleep(250)
  8.       MoveMouseTo( 52489, 9232)
  9.       PressAndReleaseMouseButton(1)
  10.       PressAndReleaseKey("t")
  11.     end
  12.  
  13. -- Cargo is already open, loot all and exit
  14.     if (event == "MOUSE_BUTTON_PRESSED" and arg == 10) then
  15.              
  16.       MoveMouseTo( 52489, 9232)
  17.       PressAndReleaseMouseButton(1)
  18.       PressAndReleaseKey("t")
  19.     end
  20.  
  21. -- use this code between this and the below dashed line to find screen coordinates
  22. -- Click your mouse on the location and it will show up in the gray output window below
  23.     if (event == "MOUSE_BUTTON_PRESSED" and arg == 1) then
  24.         x, y = GetMousePosition();
  25.         OutputLogMessage("Mouse is at %d, %d\n", x, y);
  26.     end
  27. -- You can delete the code between this and the above green
  28. -- "Click your mose" comment if you no longer need to find coordinates
  29.  
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement