배그pubg(스팀) 로지텍 마우스 스크립트 소스

왼쪽 오른쪽같이 누름

local norecoil = true
local norecoilDelay = 1
local norecoilForce = 17 --숫자 올릴수록 내리는 속도 올라감
 
local fastloot = false
local setposmode = false
local fastlootkey_pos1 = 9
local fastlootkey_pos2 = 9
local cords = {{9000,9000},{9000,12000},20500}
--cords{{pos1 x, pos1 y},{pos2 x, pos2 y}, inventory x}
--use setposmode to adjust fastloot.
 
------------------Advanced------------------------
function fastloot(loc)
	local x = math.random(cords[loc][1]-100,cords[loc][1]+100)
	local y = math.random(cords[loc][2]-100,cords[loc][2]+100)
	local d = math.random(cords[3],cords[3]+1000)
	MoveMouseTo(x,y)
	PressMouseButton(1)
	MoveMouseTo(d,y)
	ReleaseMouseButton(1)
end
 
function OnEvent(event, arg)
	if(event=="PROFILE_ACTIVATED") then
		EnablePrimaryMouseButtonEvents(1)
	elseif(event=="PROFILE_DEACTIVATED") then
		ReleaseMouseButton(1)
	elseif(IsMouseButtonPressed(1) and IsMouseButtonPressed(3) and norecoil)then
		repeat
			MoveMouseRelative(0,norecoilForce)
			Sleep(norecoilDelay)
		until not IsMouseButtonPressed(1)
	elseif(setposmode) then
		ClearLog()
		local x, y = GetMousePosition()
		OutputLogMessage("X: "..x.."\nY: "..y.."\n")
	elseif(event=="MOUSE_BUTTON_PRESSED" and fastloot) then
		if(arg==fastlootkey_pos1) then
			fastloot(1)
		elseif(arg==fastlootkey_pos2) then
			fastloot(2)
		end
	end
end