Hey guys,
I was trying to edit a lua script, but something is wrong.
Since i am not really into this, can someone tell me where the bug is? The red marked line is shown as syntax error. If i remove some lines, it automatically marks the line before the blue text as an error.
best regards,
john
EnablePrimaryMouseButtonEvents(true);
local recoil = not true;
function OnEvent(event, arg)
if (event == “MOUSE_BUTTON_PRESSED” and arg == 9) then
recoil = not recoil
OutputLogMessage(“SCAR-H + RDS”, 2014)
end
if IsMouseButtonPressed(3) and recoil then
Sleep(1)
if (event == “MOUSE_BUTTON_PRESSED” and arg == 1) then
Sleep(85)
MoveMouseRelative(-4,3)
Sleep(85)
MoveMouseRelative(-5,2)
Sleep(85)
MoveMouseRelative(6,1)
Sleep(85)
MoveMouseRelative(-5,2)
Sleep(85)
MoveMouseRelative(6,0)
Sleep(85)
MoveMouseRelative(-6,5)
Sleep(85)
MoveMouseRelative(8,4)
Sleep(85)
MoveMouseRelative(7,4)
Sleep(85)
MoveMouseRelative(-7,1)
Sleep(85)
MoveMouseRelative(-7,1)
Sleep(85)
MoveMouseRelative(4,2)
Sleep(85)
MoveMouseRelative(6,2)
Sleep(85)
MoveMouseRelative(-1,2)
Sleep(85)
MoveMouseRelative(-8,3)
Sleep(85)
MoveMouseRelative(3,3)
Sleep(85)
MoveMouseRelative(6,1)
Sleep(85)
MoveMouseRelative(-3,-1)
Sleep(85)
MoveMouseRelative(0,2)
Sleep(85)
MoveMouseRelative(-1,2)
Sleep(85)
MoveMouseRelative(5,0)
Sleep(85)
MoveMouseRelative(-4,0)
Sleep(85)
MoveMouseRelative(6,0)
Sleep(85)
MoveMouseRelative(3,-2)
Sleep(85)
MoveMouseRelative(-4,-2)
Sleep(85)
MoveMouseRelative(2,-1)
Sleep(85)
MoveMouseRelative(-5,0)
Sleep(85)
MoveMouseRelative(4,0)
Sleep(85)
MoveMouseRelative(-2,-1)
Sleep(85)
MoveMouseRelative(-2,-1)
Sleep(85)
until not IsMouseButtonPressed(3) or not IsMouseButtonPressed(1)
end
end
end