CODE
function OnEvent(event, arg)
if (event=="G_PRESSED" and arg==1) then
local x, y = GetMousePosition();
local sFmt = string.format("Mouse is at %d,%d\n", x, y);
OutputLCDMessage(sFmt);
end
end
*Use this to get x,y
function OnEvent(event, arg)
if (event == "G_PRESSED" and arg == 6) then
x, y = GetMousePosition();
PressMouseButton(1)
Sleep(10)
MoveMouseTo(41882, 46793)
Sleep(10)
ReleaseMouseButton(1)
Sleep(10)
MoveMouseTo(x, y)
OutputLCDMessage("Looted", 2000)
end
end
*Replace the numbers in MoveMouseTo(34156, 54602) with somewhere in your backpack X,Y's