江湖风云录全自动无限挂少林寺扫地任务脚本源代码分享
2016-12-23 11:30:07来源:优游网发布:优游网
以下就是小编为大家带来的江湖风云录全自动无限挂少林寺扫地任务脚本源代码分享:
更多攻略,请点击:江湖风云录新手全流程攻略分享
function zuo(n)
for var=1, n do
mSleep(50)
touchDown(1,40, 980)
mSleep(50)
touchUp(1,40,980)
end
end
function you(n)
for var=1, n do
mSleep(50)
touchDown(1,1000, 980)
mSleep(50)
touchUp(1,1000,980)
end
end
function shang(n)
for var=1, n do
mSleep(50)
touchDown(1,560,250)
mSleep(50)
touchUp(1,560,250)
end
end
function xia(n)
for var=1, n do
mSleep(50)
touchDown(1,560,1300)
mSleep(50)
touchUp(1,560,1300)
end
end
function click(a,dx,dy)
mSleep(100)
touchDown(a,dx,dy)
mSleep(100)
touchUp(a,dx,dy)
mSleep(500)
end
function saodi()
click(1,486,1589)
mSleep(100)
click(1,850,567)
mSleep(5000)
i=i+1
end
z=0
while (z<10) do
bid= frontAppBid()
click(1,500,1582)
click(1,845,570)
if getColor(938,328)==3223857 then
shang(1)
z=z+1
shang(2)
zuo(2)
mSleep(1000)
i=0
while (i<10) do
x, y = findColorInRegionFuzzy(0x4e3300, 90, 40, 172,1060 , 1500);
if x>0 then
if x<555 and y<1111 then -- 左上
if 290-x<60 and 274-x>0 then
zuo(2)
n=1
while (1119-y>150*n) do
n=n+1
end
if n==1 then
xia(1)
saodi()
shang(1)
you(2)
else
shang(n-2)
saodi()
xia(n-2)
you(2)
end
else
n=1
while (540-x>150*n) do
n=n+1
end
zuo(n)
saodi()
you(n)
end
elseif x>555 and y<1111 then -- 右上
if x>600 and x<750 and y>600 and y<750 then
you(1)
shang(1)
saodi()
xia(1)
zuo(1)
elseif x>600 and x <750 and y>900 and y <1050 then
you(1)
xia(1)
saodi()
shang(1)
zuo(1)
elseif x>880 and x<1000 and y>900 and y<1050 then
you(3)
xia(1)
saodi()
shang(1)
zuo(3)
else you(4)
x1,y1=findColorInRegionFuzzy(0x4e3300, 95, 1, 1, 555, 1111);
if 274-x1<50 then
zuo(2)
n=1
while (1119-y1>150*n) do
n=n+1
end
if n==1 then
xia(1)
saodi()
shang(1)
you(2)
else
shang(n-2)
saodi()
xia(n-2)
you(2)
end
else
n=1
while (540-x>150*n) do
n=n+1
end
zuo(n)
saodi()
you(n)
end
zuo(4)
end
elseif x<400 and y>1111 then -- 左下
you(2)
xia(4)
zuo(3)
if y<1340 then
zuo(2)
shang(1)
saodi()
xia(1)
you(2)
else n=1
while (400-x>160*n) do
n=n+1
end
zuo(n)
saodi()
you(n)
end
you(3)
shang(4)
zuo(2)
else
if x>600 and x<750 and y<1350 then
you(2)
xia(3)
zuo(1)
saodi()
you(1)
shang(3)
zuo(2)
elseif x>750 and x<870 and y<1350 then
you(2)
xia(3)
saodi()
shang(3)
zuo(2)
else
you(2)
xia(4)
zuo(3)
n=1
while (x-408>150*n) do
n=n+1
end
you(n)
saodi()
zuo(n)
you(3)
shang(4)
zuo(2)
end
end
elseif x<0 then --
you(6)
shang(3)
zuo(1)
mSleep(500)
x6, y6 = findColorInRegionFuzzy(0x4e3300, 95, 426, 178, 915, 1500);
if x6>0 then
if x6> 718 and y6<1190 then
you(1)
xia(2)
you(1)
saodi()
zuo(1)
shang(2)
zuo(1)
you(1)
xia(3)
zuo(6)
elseif x6>718 and y6>1320 then
you(1)
xia(4)
you(1)
saodi()
zuo(1)
shang(4)
zuo(1)
you(1)
xia(3)
zuo(6)
elseif 1322-y6<100 and 1322-y6 >0 then
you(1)
xia(3)
you(2)
n=1
while (856-x6>150*n) do
n=n+1
end
zuo(n)
saodi()
you(n)
zuo(2)
shang(3)
zuo(1)
you(1)
xia(3)
zuo(6)
else
you(1)
xia(4)
n=1
while (1409-y6>150*n) do
n=n+1
end
shang(n)
saodi()
xia(n)
shang(4)
zuo(1)
you(1)
xia(3)
zuo(6)
end
else you(1)
xia(3)
zuo(4)
xia(4)
mSleep(500)
x9, y9 = findColorInRegionFuzzy(0x4e3300, 95, 470, 640, 865, 1060);
if x9>0 then
if x9>700 then
you(2)
saodi()
zuo(2)
else
xia(1)
saodi()
shang(1)
end
else
zuo(6)
saodi()
you(6)
end
shang(4)
zuo(2)
end
end
mSleep(8000)
end
you(2)
xia(2)
click(1,500,1582)
click(1,845,570)
shang(1)
else
closeApp(bid)
mSleep(2000)
runApp(bid)
mSleep(2000)
while getColor(377,1350)~=8521472
do mSleep(1000)
end
click(1,377,1350)
mSleep(3000)
while
(getColor(554,438) ~=13026816) do
mSleep(1000)
end
click(1,340,1450)
mSleep(1000)
end
end
这个脚本是全自动刷衡山护体神功用的,下面是注意事项
1,本脚本仅支持触动精灵,触动精灵,触动精灵!!这四个字的拼音是chudongjingling!请自行下载安装。
2,仅支持1080p的手机。
3,需要进去游戏,站到少林寺(7,16)的坐标,跟npc随便对话一次,确保home之后还站到原地!
下载触动精灵,点左上角加号,新建脚本,把代码完全复制进去,保存。进去游戏界面站到少林寺7,16。随便对话一次,开启脚本,就不要动了。