Script Universal
Script Universal
--1 r301
--2 flatline
--3 volt r99
local switch = {
[1] = function()
if IsKeyLockOn("numlock")then
--Acciones cuando numlock esta activado
if IsMouseButtonPressed(3) then
repeat
--Aqui van las acciones cuando presiono boton derecho
if IsMouseButtonPressed(1) then
repeat
--Instrucciones cuando presiono boton izquierdo
movx = [Link](-2,1)
movy = [Link](1,2)
MoveMouseRelative(0,movy)
MoveMouseRelative(movx,0)
Sleep(15)
--Fin de instrucciones cuando presionas boton izquierdo
until not IsMouseButtonPressed(1)
end
--Fin de acciones cuando presionas boton derecho
until not IsMouseButtonPressed(3)
end
--Fin de acciones cuando numlock esta activado
end
end,
[2] = function()
if IsKeyLockOn("numlock")then
--Acciones cuando numlock esta activado
if IsMouseButtonPressed(3) then
repeat
--Instrucciones cuando presionamos boton izquierdo
if IsMouseButtonPressed(1) then
ajuste = 0
repeat
--Instrucciones cuando presiono boton izquierdo
movx = [Link](1,2)
movy = [Link](1,2)
if(ajuste>42 and ajuste <71) then
movx = [Link](-2,-1)
elseif (ajuste>127) then
movx = [Link](-2,-1)
end
MoveMouseRelative(0,movy)
MoveMouseRelative(movx,0)
ajuste = ajuste+1
Sleep(15)
until not IsMouseButtonPressed(1)
end
--Fin de instrucciones cuando presionamos boton izquierdo
until not IsMouseButtonPressed(3)
end
--Fin de acciones cuando numlock esta activado
end
end,
[3] = function()
if IsKeyLockOn("numlock")then
--Acciones cuando numlock esta activado
if IsMouseButtonPressed(3) then
--Acciones si numlock y boton derecho estan activados
repeat
--Instrucciones cuando presionamos boton izquierdo
if IsMouseButtonPressed(1) then
ajuste = 0
repeat
--Instrucciones cuando presiono boton izquierdo
movx = [Link](1,2)
movy = [Link](2,3)
if(ajuste<50) then
movy = [Link](4,5)
movx = 0
elseif (ajuste>50 and ajuste <70) then
movy = [Link](1,2)
movx = [Link](-1,0)
elseif (ajuste>70) then
movy = [Link](1,2)
movx = 1
end
MoveMouseRelative(0,movy)
ajuste = ajuste+1
Sleep(20)
until not IsMouseButtonPressed(1)
end
--Fin de instrucciones cuando presionamos boton izquierdo
until not IsMouseButtonPressed(3)
end
--Fin de acciones cuando numlock esta activado
end
end
}
end
seleccion = switch[arma]
if (seleccion ) then
seleccion ()
end
end