斯巴鲁
作者:互联网
function openOption()
r,g,b = getColorRGB(971,210)
h,s,v = rgb2hsv(r,g,b)
r2,g2,b2 = getColorRGB(1008,214)
h2,s2,v2 =rgb2hsv(r2,g2,b2)
while not (v>250 and v2<80) do
tap(1075,60)
mSleep(1000)
r,g,b = getColorRGB(971,210)
h,s,v = rgb2hsv(r,g,b)
r2,g2,b2 = getColorRGB(1008,214)
h2,s2,v2 =rgb2hsv(r2,g2,b2)
end
end
function openMap()
--先检查有没有出卡
r1,g1,b1 = getColorRGB(707,636)
h1,s1,v1 = rgb2hsv(r1,g1,b1)
while h1>210 and s1>100 and v1>160 do
tap(707,636)
r1,g1,b1 = getColorRGB(707,636)
h1,s1,v1 = rgb2hsv(r1,g1,b1)
end
r,g,b = getColorRGB(826,421)
h,s,v = rgb2hsv(r,g,b)
r2,g2,b2 = getColorRGB(711,52)
h2,s2,v2 = rgb2hsv(r2,g2,b2)
while not(v<80 and (s2<20 and v2>170)) do
tap(1193,111)
mSleep(1000)
r,g,b = getColorRGB(826,421)
h,s,v = rgb2hsv(r,g,b)
r2,g2,b2 = getColorRGB(711,52)
h2,s2,v2 = rgb2hsv(r2,g2,b2)
end
end
--rgb转hsv,返回h,s,v三个值
function rgb2hsv(r,g,b)
-- 找出r,g,b最小值和最大值
local min = math.min(r,g,b)
local max = math.max(r,g,b)
local diff = max - min
local h,s,v = 0,0,0
v = max
if max == 0 then
s = 0
else
s = diff
end
if diff ~= 0 then
if r == max then
h = 60 * (g - b) / diff
elseif g == max then
h = 60 * (b - r) / diff + 120
else
h = 60 * (r - g) / diff + 240
end
if h < 0 then
h = h + 360
end
else
h = -1
end
local tmp = math.modf(h)
return tmp,s,v
end
function closePackage()
r,g,b = getColorRGB(1168,59)
h,s,v = rgb2hsv(r,g,b)
toast(string.format("h=%d s=%d v=%d",h,s,v))
while h>12 and s>200 and v>30 do
tap(1168,59)
mSleep(2000)
r,g,b = getColorRGB(1168,59)
h,s,v = rgb2hsv(r,g,b)
toast(string.format("h=%d s=%d v=%d",h,s,v))
end
end
function closeAD()
r,g,b = getColorRGB(1009,112)
h,s,v = rgb2hsv(r,g,b)
toast(string.format("h=%d s=%d v=%d",h,s,v))
while s>5 or v<200 do
mSleep(2000)
r,g,b = getColorRGB(1009,112)
h,s,v = rgb2hsv(r,g,b)
toast(string.format("h=%d s=%d v=%d",h,s,v))
end
r,g,b = getColorRGB(1009,112)
h,s,v = rgb2hsv(r,g,b)
toast(string.format("h=%d s=%d v=%d",h,s,v))
while s<5 and v>200 do
tap(995,78)
mSleep(2000)
r,g,b = getColorRGB(1009,112)
h,s,v = rgb2hsv(r,g,b)
toast(string.format("h=%d s=%d v=%d",h,s,v))
end
end
function switchRole(index)
local x=146
local y=172
if index>0 then
x=277
y=172
end
useWing()
mSleep(20000)
waitPassing()
openOption()
r,g,b = getColorRGB(523,618)
h,s,v = rgb2hsv(r,g,b)
toast(string.format("h=%d s=%d v=%d",h,s,v))
while h<200 or s<90 or v<165 do
tap(964,405)
mSleep(2000)
r,g,b = getColorRGB(523,618)
h,s,v = rgb2hsv(r,g,b)
toast(string.format("h=%d s=%d v=%d",h,s,v))
end
r,g,b = getColorRGB(216,185)
h,s,v = rgb2hsv(r,g,b)
toast(string.format("h=%d s=%d v=%d",h,s,v))
while v>70 do
tap(408,170)
mSleep(2000)
r,g,b = getColorRGB(216,185)
h,s,v = rgb2hsv(r,g,b)
toast(string.format("h=%d s=%d v=%d",h,s,v))
end
tap(x,y)
mSleep(1000)
tap(x,y)
mSleep(1000)
tap(x,y)
mSleep(1000)
tap(811,346)
mSleep(1000)
tap(811,346)
mSleep(1000)
tap(811,346)
mSleep(30000)
closeAD()
end
function checkAndCloseMap()
--先检查有没有出卡
r1,g1,b1 = getColorRGB(707,636)
h1,s1,v1 = rgb2hsv(r1,g1,b1)
while h1>210 and s1>100 and v1>160 do
tap(707,636)
r1,g1,b1 = getColorRGB(707,636)
h1,s1,v1 = rgb2hsv(r1,g1,b1)
end
r,g,b = getColorRGB(826,421)
h,s,v = rgb2hsv(r,g,b)
r2,g2,b2 = getColorRGB(711,52)
h2,s2,v2 = rgb2hsv(r2,g2,b2)
while (v<80 and (s2<20 and v2>170)) do
tap(1077,58)
mSleep(1000)
r,g,b = getColorRGB(826,421)
h,s,v = rgb2hsv(r,g,b)
r2,g2,b2 = getColorRGB(711,52)
h2,s2,v2 = rgb2hsv(r2,g2,b2)
end
end
function openWareHouse()
openMap()
touchDown(817,285)
mSleep(32)
touchMove(817,285)
mSleep(94)
touchMove(817,285)
mSleep(56)
touchUp(817,285)
checkAndCloseMap()
mSleep(2000)
r,g,b = getColorRGB(54,431)
h,s,v = rgb2hsv(r,g,b)
toast(string.format("h=%d s=%d v=%d",h,s,v))
while h<220 or s<105 or v<170 do
tap(624,293)
mSleep(1000)
r,g,b = getColorRGB(54,431)
h,s,v = rgb2hsv(r,g,b)
toast(string.format("h=%d s=%d v=%d",h,s,v))
end
r,g,b = getColorRGB(54,431)
h,s,v = rgb2hsv(r,g,b)
toast(string.format("h=%d s=%d v=%d",h,s,v))
while v<190 do
tap(54,431)
mSleep(1000)
r,g,b = getColorRGB(54,431)
h,s,v = rgb2hsv(r,g,b)
end
end
function openPackage()
r,g,b = getColorRGB(1153,74)
h,s,v = rgb2hsv(r,g,b)
toast(string.format("h=%d s=%d v=%d",h,s,v))
while h>25 or s<210 or v<229 do
tap(981,70)
mSleep(3000)
r,g,b = getColorRGB(1153,74)
h,s,v = rgb2hsv(r,g,b)
toast(string.format("h=%d s=%d v=%d",h,s,v))
end
end
function takeOnAll(isHouseWare,isTakeOut)
x=500
y=581
xx=580
yy=100
x2=722
y2=166
if isHouseWare>0 then
x=696
y=580
xx=651
yy=254
end
if isTakeOut>0 then
x2=175
y2=167
end
i=0
Count = 11
while i<Count do
h2=0
s2=0
v2=0
rr,gg,bb = getColorRGB(xx,yy)
hh,ss,vv = rgb2hsv(rr,gg,bb)
toast(string.format("h=%d s=%d v=%d",hh,ss,vv))
r,g,b = getColorRGB(x,y)
h,s,v = rgb2hsv(r,g,b)
while h<35 or s<180 or v<250 and not((hh>210 and ss>110 and vv>210) or vv>240) do
tap(x2, y2)
mSleep(2000)
if isHouseWare< 1 then
r2,g2,b2 = getColorRGB(998,581)
h2,s2,v2 = rgb2hsv(r2,g2,b2)
if h2>28 and h2<50 and s2>160 and v2>190 and (hh>210 and ss>110 and vv>210) then
break
end
end
r,g,b = getColorRGB(x,y)
h,s,v = rgb2hsv(r,g,b)
rr,gg,bb = getColorRGB(xx,yy)
hh,ss,vv = rgb2hsv(rr,gg,bb)
end
if isHouseWare<1 and (h2>28 and h2<50 and s2>160 and v2>190) then
while h2>28 and h2<50 and s2>160 and v2>190 do
tap(998,581)
mSleep(3000)
r2,g2,b2 = getColorRGB(998,581)
h2,s2,v2 = rgb2hsv(r2,g2,b2)
end
else
r,g,b = getColorRGB(x,y)
h,s,v = rgb2hsv(r,g,b)
rr,gg,bb = getColorRGB(xx,yy)
hh,ss,vv = rgb2hsv(rr,gg,bb)
while h>28 and h<50 and s>160 and v>190 and ((hh>210 and ss>110 and vv>210) or vv>240) do
tap(x,y)
mSleep(3000)
r,g,b = getColorRGB(x,y)
h,s,v = rgb2hsv(r,g,b)
rr,gg,bb = getColorRGB(xx,yy)
hh,ss,vv = rgb2hsv(rr,gg,bb)
end
end
i=i+1
end
closePackage()
end
function takeOffAll()
takeOff(577,124)
mSleep(1000)
takeOff(566,256)
mSleep(1000)
takeOff(556,347)
mSleep(1000)
takeOff(577,443)
mSleep(1000)
takeOff(577,542)
mSleep(1000)
takeOff(577,646)
mSleep(1000)
takeOff(130,147)
mSleep(1000)
takeOff(130,239)
mSleep(1000)
takeOff(130,330)
mSleep(1000)
takeOff(130,540)
mSleep(1000)
takeOff(130,627)
mSleep(1000)
closePackage()
end
function takeOff(x,y)
cx=173
if x < 200 then
cx=173
else
cx=514
end
r,g,b = getColorRGB(cx,y)
h,s,v = rgb2hsv(r,g,b)
toast(string.format("h=%d s=%d v=%d",h,s,v))
while h<35 or s<180 or v<250 do
tap(x,y)
mSleep(1000)
r,g,b = getColorRGB(cx,y)
h,s,v = rgb2hsv(r,g,b)
end
r,g,b = getColorRGB(665,155)
h,s,v = rgb2hsv(r,g,b)
toast(string.format("h=%d s=%d v=%d",h,s,v))
while h>140 and s>180 and v>210 do
tap(897,598)
mSleep(3000)
r,g,b = getColorRGB(665,155)
h,s,v = rgb2hsv(r,g,b)
end
end
function goHome()
useWing()
mSleep(20000)
waitPassing()
openOption()
r,g,b = getColorRGB(932,653)
h,s,v = rgb2hsv(r,g,b)
toast(string.format("h=%d s=%d v=%d",h,s,v))
while h<30 or s<180 or v<250 do
tap(1057,323)
mSleep(1000)
r,g,b = getColorRGB(932,653)
h,s,v = rgb2hsv(r,g,b)
end
r,g,b = getColorRGB(932,653)
h,s,v = rgb2hsv(r,g,b)
toast(string.format("h=%d s=%d v=%d",h,s,v))
while h>30 and s>180 and v>250 do
tap(932,653)
mSleep(1000)
r,g,b = getColorRGB(932,653)
h,s,v = rgb2hsv(r,g,b)
end
end
function saveAllInHouse()
openWareHouse()
takeOnAll(1,0)
end
function goHomeSaveEquipment()
goHome()
mSleep(30000)
waitPassing()
openPackage()
takeOffAll()
mSleep(4000)
openWareHouse()
takeOnAll(1,0)
end
function goHomeWearEquipment()
goHome()
mSleep(30000)
waitPassing()
openWareHouse()
takeOnAll(1,1)
mSleep(3000)
openPackage()
takeOnAll(0,0)
end
function gotoFight()
useWing()
mSleep(30000)
waitPassing()
tap(869,186)
mSleep(4000)
passToKeTe()
openMap()
touchDown(1045,283)
mSleep(18)
touchMove(1045,283)
mSleep(131)
touchMove(1045,283)
mSleep(27)
touchMove(1045,283)
mSleep(4)
touchUp(1045,283)
mSleep(2697)
touchDown(1073,63)
mSleep(49)
touchMove(1073,63)
mSleep(33)
touchMove(1073,63)
mSleep(43)
touchMove(1073,63)
mSleep(0)
touchUp(1073,63)
checkAndCloseMap()
mSleep(40000)
touchDown(981,576)
mSleep(24)
touchMove(981,576)
mSleep(96)
touchMove(981,576)
mSleep(29)
touchUp(981,576)
mSleep(2306)
touchDown(1069,581)
mSleep(15)
touchMove(1069,581)
mSleep(29)
touchMove(1069,581)
mSleep(53)
touchMove(1069,581)
mSleep(26)
touchUp(1069,581)
mSleep(2155)
touchDown(984,578)
mSleep(23)
touchMove(984,578)
mSleep(105)
touchMove(984,578)
mSleep(34)
touchUp(984,578)
mSleep(2813)
touchDown(1064,575)
mSleep(50)
touchMove(1064,575)
mSleep(94)
touchMove(1064,575)
mSleep(0)
touchUp(1064,575)
startFight()
end
function gotoListenMusic()
useWing()
mSleep(30000)
waitPassing()
tap(869,186)
mSleep(4000)
passToNanMen()
openMap()
touchDown(932,195)
mSleep(18)
touchMove(932,195)
mSleep(131)
touchMove(932,195)
mSleep(27)
touchMove(932,195)
mSleep(4)
touchUp(932,195)
mSleep(2697)
touchDown(1073,63)
mSleep(49)
touchMove(1073,63)
mSleep(33)
touchMove(1073,63)
mSleep(43)
touchMove(1073,63)
mSleep(0)
touchUp(1073,63)
checkAndCloseMap()
end
function passToKeTe()
touchDown(1170,472)
mSleep(83)
touchMove(1170,472)
mSleep(1)
touchUp(1170,472)
mSleep(1456)
touchDown(1150,401)
mSleep(26)
touchMove(1150,401)
mSleep(101)
touchMove(1150,401)
mSleep(5)
touchUp(1150,401)
mSleep(2326)
touchDown(487,331)
mSleep(11)
touchMove(487,331)
mSleep(38)
touchMove(487,331)
mSleep(78)
touchMove(487,331)
mSleep(28)
touchMove(487,331)
mSleep(16)
touchUp(487,331)
mSleep(1160)
touchDown(927,535)
mSleep(39)
touchMove(927,535)
mSleep(29)
touchMove(927,535)
mSleep(51)
touchMove(927,533)
mSleep(27)
touchMove(927,515)
mSleep(30)
touchMove(928,492)
mSleep(40)
touchMove(930,468)
mSleep(26)
touchMove(933,444)
mSleep(51)
touchMove(936,420)
mSleep(13)
touchMove(941,397)
mSleep(35)
touchMove(948,374)
mSleep(38)
touchMove(955,353)
mSleep(23)
touchMove(966,325)
mSleep(51)
touchMove(974,304)
mSleep(13)
touchMove(983,286)
mSleep(55)
touchMove(991,271)
mSleep(11)
touchMove(1001,255)
mSleep(34)
touchMove(1008,241)
mSleep(52)
touchMove(1014,231)
mSleep(16)
touchMove(1018,224)
mSleep(23)
touchMove(1021,221)
mSleep(38)
touchMove(1023,218)
mSleep(64)
touchMove(1024,217)
mSleep(26)
touchMove(1026,212)
mSleep(0)
touchUp(1026,212)
mSleep(1364)
touchDown(1107,584)
mSleep(56)
touchMove(1107,584)
mSleep(121)
touchMove(1107,584)
mSleep(17)
touchMove(1107,584)
mSleep(17)
touchUp(1107,584)
mSleep(30000)
waitPassing()
end
function passToNanMen()
touchDown(1170,472)
mSleep(83)
touchMove(1170,472)
mSleep(1)
touchUp(1170,472)
mSleep(1456)
touchDown(1150,401)
mSleep(26)
touchMove(1150,401)
mSleep(101)
touchMove(1150,401)
mSleep(5)
touchUp(1150,401)
mSleep(2717)
touchDown(1089,357)
mSleep(52)
touchMove(1089,357)
mSleep(79)
touchMove(1089,357)
mSleep(81)
touchMove(1089,357)
mSleep(1)
touchUp(1089,357)
mSleep(30000)
waitPassing()
end
function waitPassing()
r,g,b = getColorRGB(18,34)
h,s,v = rgb2hsv(r,g,b)
toast(string.format("h=%d s=%d v=%d",h,s,v))
while h<210 or s<145 or v<245 do
mSleep(2000)
r,g,b = getColorRGB(18,34)
h,s,v = rgb2hsv(r,g,b)
toast(string.format("h=%d s=%d v=%d",h,s,v))
end
mSleep(12000)
end
function fix1()
if Fixing > 0 then
mSleep(500)
touchDown(833,649)
mSleep(94)
touchMove(833,649)
mSleep(10)
touchUp(833,649)
mSleep(522)
touchDown(641,442)
mSleep(18)
touchMove(641,442)
mSleep(114)
touchMove(651,443)
mSleep(32)
touchMove(695,450)
mSleep(32)
touchMove(735,462)
mSleep(34)
touchMove(776,470)
mSleep(32)
touchMove(808,471)
mSleep(34)
touchMove(836,467)
mSleep(31)
touchMove(886,454)
mSleep(34)
touchMove(893,454)
mSleep(33)
touchMove(897,454)
mSleep(31)
touchMove(899,454)
mSleep(33)
touchMove(901,455)
mSleep(35)
touchMove(903,455)
mSleep(32)
touchMove(906,455)
mSleep(31)
touchMove(908,454)
mSleep(32)
touchMove(913,454)
mSleep(34)
touchMove(916,454)
mSleep(31)
touchMove(917,454)
mSleep(33)
touchMove(937,455)
mSleep(33)
touchUp(937,455)
end
end
function fix2()
if Fixing > 0 then
mSleep(1000)
touchDown(833,643)
mSleep(0)
touchMove(833,643)
mSleep(0)
touchMove(833,643)
mSleep(14)
touchUp(833,643)
mSleep(1207)
touchDown(406,420)
mSleep(11)
touchMove(406,420)
mSleep(32)
touchMove(406,420)
mSleep(49)
touchMove(406,420)
mSleep(18)
touchUp(406,420)
end
end
function fix3()
if Fixing > 0 then
mSleep(500)
touchDown(833,646)
mSleep(54)
touchMove(833,646)
mSleep(48)
touchUp(833,646)
mSleep(1165)
touchDown(283,506)
mSleep(25)
touchMove(283,506)
mSleep(33)
touchMove(283,506)
mSleep(73)
touchMove(283,506)
mSleep(10)
touchUp(283,506)
end
end
function chooseSkill()
touchDown(914,660)
mSleep(74)
touchMove(914,660)
mSleep(1)
touchUp(914,660)
if Time>2 then
Fixing=1
Time=0
end
end
function startFight()
Fixing=1
Time=0
fightCount =0
run=1
while run>0 do
fightCount =fightCount+1
Time = Time + 1
checkAndCloseMap()
mSleep(500)
touchDown(1210,101)
mSleep(16)
touchMove(1210,101)
mSleep(67)
touchUp(1210,101)
mSleep(500)
touchDown(1046,265)
mSleep(74)
touchMove(1046,265)
mSleep(34)
touchMove(1046,265)
mSleep(31)
touchMove(1046,265)
mSleep(27)
touchMove(1046,265)
mSleep(1)
touchUp(1046,265)
mSleep(500)
touchDown(1077,54)
mSleep(48)
touchMove(1077,54)
mSleep(17)
touchUp(1077,54)
mSleep(2000)
checkAndCloseMap()
chooseSkill()
mSleep(522)
touchDown(641,442)
mSleep(18)
touchMove(641,442)
mSleep(114)
touchMove(651,443)
mSleep(32)
touchMove(695,450)
mSleep(32)
touchMove(735,462)
mSleep(34)
touchMove(776,470)
mSleep(32)
touchMove(808,471)
mSleep(34)
touchMove(836,467)
mSleep(31)
touchMove(886,454)
mSleep(34)
touchMove(893,454)
mSleep(33)
touchMove(897,454)
mSleep(31)
touchMove(899,454)
mSleep(33)
touchMove(901,455)
mSleep(35)
touchMove(903,455)
mSleep(32)
touchMove(906,455)
mSleep(31)
touchMove(908,454)
mSleep(32)
touchMove(913,454)
mSleep(34)
touchMove(916,454)
mSleep(31)
touchMove(917,454)
mSleep(33)
touchMove(937,455)
mSleep(33)
touchUp(937,455)
fix1()
mSleep(500)
touchDown(1216,107)
mSleep(8)
touchMove(1216,107)
mSleep(91)
touchMove(1216,107)
mSleep(1)
touchUp(1216,107)
mSleep(500)
touchDown(1070,491)
mSleep(94)
touchMove(1070,491)
mSleep(1)
touchUp(1070,491)
mSleep(500)
touchDown(1018,341)
mSleep(17)
touchMove(1018,341)
mSleep(49)
touchMove(1018,341)
mSleep(49)
touchMove(1018,341)
mSleep(27)
touchMove(1018,341)
mSleep(3)
touchUp(1018,341)
mSleep(1000)
touchDown(1083,57)
mSleep(34)
touchMove(1083,57)
mSleep(98)
touchMove(1083,57)
mSleep(1)
touchUp(1083,57)
mSleep(3006)
checkAndCloseMap()
touchDown(833,649)
mSleep(94)
touchMove(833,649)
mSleep(10)
touchUp(833,649)
mSleep(588)
touchDown(670,405)
mSleep(38)
touchMove(670,405)
mSleep(82)
touchMove(677,404)
mSleep(32)
touchMove(710,398)
mSleep(33)
touchMove(866,359)
mSleep(32)
touchMove(877,359)
mSleep(32)
touchMove(883,359)
mSleep(33)
touchMove(885,359)
mSleep(32)
touchMove(886,359)
mSleep(33)
touchMove(888,359)
mSleep(32)
touchMove(890,360)
mSleep(33)
touchMove(891,361)
mSleep(49)
touchMove(900,360)
mSleep(27)
touchMove(901,359)
mSleep(33)
touchMove(903,359)
mSleep(32)
touchMove(904,358)
mSleep(38)
touchUp(904,358)
mSleep(600)
chooseSkill()
mSleep(655)
touchDown(656,431)
mSleep(90)
touchMove(656,431)
mSleep(30)
touchMove(652,431)
mSleep(34)
touchMove(598,430)
mSleep(32)
touchMove(547,429)
mSleep(30)
touchMove(297,417)
mSleep(33)
touchMove(261,422)
mSleep(33)
touchMove(218,435)
mSleep(32)
touchMove(137,461)
mSleep(33)
touchMove(119,466)
mSleep(33)
touchMove(103,473)
mSleep(33)
touchMove(89,479)
mSleep(32)
touchMove(82,483)
mSleep(32)
touchMove(76,486)
mSleep(33)
touchMove(70,488)
mSleep(32)
touchMove(67,489)
mSleep(34)
touchMove(32,472)
mSleep(32)
touchMove(32,472)
mSleep(76)
touchMove(33,472)
mSleep(30)
touchUp(33,472)
fix2()
mSleep(860)
touchDown(1224,104)
mSleep(35)
touchMove(1224,104)
mSleep(42)
touchMove(1224,104)
mSleep(2)
touchUp(1224,104)
mSleep(500)
touchDown(1074,488)
mSleep(16)
touchMove(1074,488)
mSleep(65)
touchMove(1074,488)
mSleep(35)
touchMove(1074,488)
mSleep(3)
touchUp(1074,488)
mSleep(500)
touchDown(982,208)
mSleep(8)
touchMove(982,208)
mSleep(35)
touchMove(982,208)
mSleep(62)
touchMove(982,208)
mSleep(49)
touchMove(982,208)
mSleep(26)
touchMove(982,208)
mSleep(0)
touchUp(982,208)
mSleep(2020)
touchDown(1087,60)
mSleep(36)
touchMove(1087,60)
mSleep(32)
touchMove(1087,60)
mSleep(18)
touchUp(1087,60)
mSleep(2510)
checkAndCloseMap()
touchDown(833,649)
mSleep(86)
touchUp(833,649)
mSleep(615)
touchDown(666,431)
mSleep(26)
touchMove(666,431)
mSleep(32)
touchMove(866,374)
mSleep(31)
touchMove(906,359)
mSleep(34)
touchMove(938,349)
mSleep(32)
touchMove(963,342)
mSleep(33)
touchMove(980,336)
mSleep(35)
touchMove(1068,316)
mSleep(34)
touchMove(1070,316)
mSleep(31)
touchMove(1072,315)
mSleep(32)
touchMove(1073,314)
mSleep(32)
touchMove(1075,315)
mSleep(33)
touchUp(1075,315)
mSleep(1200)
chooseSkill()
mSleep(709)
touchDown(656,440)
mSleep(13)
touchMove(656,440)
mSleep(32)
touchMove(656,440)
mSleep(33)
touchMove(513,499)
mSleep(32)
touchMove(460,493)
mSleep(34)
touchMove(384,467)
mSleep(33)
touchMove(328,456)
mSleep(31)
touchMove(297,458)
mSleep(33)
touchMove(276,464)
mSleep(33)
touchMove(254,473)
mSleep(32)
touchMove(241,481)
mSleep(34)
touchMove(228,487)
mSleep(31)
touchMove(217,492)
mSleep(34)
touchMove(203,498)
mSleep(33)
touchMove(192,505)
mSleep(32)
touchMove(182,512)
mSleep(34)
touchMove(171,521)
mSleep(32)
touchMove(163,527)
mSleep(34)
touchMove(158,531)
mSleep(27)
touchMove(137,539)
mSleep(31)
touchMove(136,539)
mSleep(33)
touchMove(157,559)
mSleep(33)
touchMove(161,559)
mSleep(32)
touchMove(164,557)
mSleep(32)
touchMove(167,556)
mSleep(32)
touchMove(169,555)
mSleep(39)
touchUp(169,555)
fix3()
mSleep(1200)
touchDown(817,644)
mSleep(17)
touchMove(817,644)
mSleep(33)
touchMove(817,644)
mSleep(48)
touchMove(817,644)
mSleep(2)
touchUp(817,644)
mSleep(500)
touchDown(665,400)
mSleep(23)
touchMove(665,400)
mSleep(111)
touchMove(665,400)
mSleep(33)
touchMove(660,392)
mSleep(33)
touchMove(657,386)
mSleep(33)
touchMove(656,383)
mSleep(32)
touchMove(654,379)
mSleep(32)
touchMove(654,377)
mSleep(49)
touchMove(652,375)
mSleep(33)
touchMove(652,374)
mSleep(49)
touchMove(652,373)
mSleep(34)
touchMove(652,373)
mSleep(32)
touchMove(652,372)
mSleep(65)
touchMove(652,372)
mSleep(32)
touchMove(652,372)
mSleep(81)
touchMove(652,371)
mSleep(33)
touchMove(652,371)
mSleep(114)
touchMove(652,370)
mSleep(82)
touchMove(652,370)
mSleep(49)
touchMove(652,370)
mSleep(1)
touchUp(652,370)
Fixing=0
if fightCount > 130 then
run=0
end
end
--战斗完检查有没有出卡
r1,g1,b1 = getColorRGB(707,636)
h1,s1,v1 = rgb2hsv(r1,g1,b1)
while h1>210 and s1>100 and v1>160 do
tap(707,636)
r1,g1,b1 = getColorRGB(707,636)
h1,s1,v1 = rgb2hsv(r1,g1,b1)
end
end
function useWing()
x=500
y=581
x2=722
y2=166
openPackage()
r,g,b = getColorRGB(770,73)
h,s,v = rgb2hsv(r,g,b)
while not (h>220 and s>95 and v>160) do
tap(782,48)
mSleep(2000)
r,g,b = getColorRGB(770,73)
h,s,v = rgb2hsv(r,g,b)
end
r,g,b = getColorRGB(x,y)
h,s,v = rgb2hsv(r,g,b)
while h<35 or s<180 or v<250 do
tap(x2, y2)
mSleep(1200)
r,g,b = getColorRGB(x,y)
h,s,v = rgb2hsv(r,g,b)
end
r2,g2,b2 = getColorRGB(x,y)
h2,s2,v2 = rgb2hsv(r2,g2,b2)
while not (h2<35 or s2<180 or v2<250) do
tap(x,y)
mSleep(2000)
r2,g2,b2 = getColorRGB(x,y)
h2,s2,v2 = rgb2hsv(r2,g2,b2)
end
end
init(1)
goHomeSaveEquipment()
gotoListenMusic()
mSleep(2400000)
switchRole(1)
gotoListenMusic()
mSleep(2400000)
switchRole(1)
gotoListenMusic()
mSleep(2400000)
goHomeWearEquipment()
gotoFight()
goHomeSaveEquipment()
switchRole(1)
goHomeWearEquipment()
gotoFight()
startFight()
goHomeSaveEquipment()
switchRole(0)
goHomeWearEquipment()
标签:end,touchUp,斯巴鲁,touchDown,touchMove,32,mSleep 来源: https://blog.csdn.net/z8774316/article/details/113806874