오랜만에 스크립트 가지고 왔네요..
얼마 만인지.... (먼산...)
수동 길대 하기 귀찮아서 만든 간단한 매크로입니다.
길대 대기실이면 전투참여 누르고
전투 끝나면 확인누르고
이 두개만 무한 반복하는놈입니다.
중간에 업적뜨고하는거 터치는 해주셔야 합니다.
지니모션 480X800 240dpi 전용입니다
색값은 조금 여유를 둬놔서 아마 무리없이 돌아갈것으로 예상은됩니다..
var #gfmainx1 57
var #gfmainy1 619
var #gfmainc1 14255
var #gfmainx2 282
var #gfmainy2 528
var #gfmainc2 6513507
var #resultx 43
var #resulty 366
var #resultc 410487
var #확인x 162
var #확인y 455
var #cmpcolor1 0
var #cmpcolor2 0
var #cmpcolor3 0
var #cmpcolor4 0
var #orgcolor1 0
var #orgcolor2 0
var #orgcolor3 0
var #orgcolor4 0
var #cmpnum 0
var #goto 0
var #result1 0
var #result2 0
var #result3 0
var #result4 0
var #result5 0
var #tempcolor 0
var #tempcolorhigh 0
var #tempcolorlow 0
var #offset 15
var #r 0
var #g 0
var #b 0
:start
sleep 1000
getcolor #cmpcolor1 #gfmainx1 #gfmainy1
getcolor #cmpcolor2 #gfmainx2 #gfmainy2
getcolot #cmpcolor3 #resultx #resulty
#orgcolor1 = #gfmainc1
#orgcolor2 = #gfmainc2
#orgcolor3 = #resultc
#goto = 1
#cmpnum = 3
//toast #cmpcolor1 #cmpcolor2 #cmpcolor3 #cmpcolor4
goto :compare
:goto1
//toast #result1 #result2 #result3 #result4
if #result1 == 1
sleep 1000
touchpress 0 #gfmainx1 #gfmainy1
sleep 1000
touchpress 0 #확인x #확인y
sleep 1000
goto :start
elseif #result3 == 1
touchpress 0 #resultx #resulty
sleep 1000
goto :start
endif
goto :start
:compare
#result1 = 0
#result2 = 0
#result3 = 0
#result4 = 0
#result5 = 0
:compare1
if #cmpnum = 0
goto :compare6
endif
//R1 비교
#r = #cmpcolor1 % 256
#tempcolor = #orgcolor1 % 256
#tempcolorhigh = #tempcolor + #offset
#tempcolorlow = #tempcolor - #offset
if #tempcolorhigh < #r
#g = #cmpcolor1 / 256 or #tempcolorlow > #r
goto :compare2
endif
//color1 G 비교% 256
#g = #cmpcolor1 / 256 % 256
#tempcolor = #orgcolor1 / 256 % 256
#tempcolorhigh = #tempcolor + #offset
#tempcolorlow = #tempcolor - #offset
if #tempcolorhigh < #g or #tempcolorlow > #g
goto :compare2
endif
// color1 B 비교
#b = #cmpcolor1 / 256 / 256 % 256
#tempcolor = #orgcolor1 / 256 / 256 % 256
#tempcolorhigh = #tempcolor + #offset
#tempcolorlow = #tempcolor - #offset
if #tempcolorhigh < #b or #tempcolorlow > #b
goto :compare2
endif
#result1 = 1
#resultall = 1
:compare2
if #cmpnum == 1
#cmpnum = 0
goto :compare6
endif
// color2 R 비교
#r = #cmpcolor2 % 256
#tempcolor = #orgcolor2 % 256
#tempcolorhigh = #tempcolor + #offset
#tempcolorlow = #tempcolor - #offset
if #tempcolorhigh < #r or #tempcolorlow > #r
#resultall = 0
goto :compare3
endif
// color2 G 비교
#g = #cmpcolor2 / 256 % 256
#tempcolor = #orgcolor2 / 256 % 256
#tempcolorhigh = #tempcolor + #offset
#tempcolorlow = #tempcolor - #offset
if #tempcolorhigh < #g or #tempcolorlow > #g
#resultall = 0
goto :compare3
endif
// color2 B 비교
#b = #cmpcolor2 / 256 / 256 % 256
#tempcolor = #orgcolor2 / 256 / 256 % 256
#tempcolorhigh = #tempcolor + #offset
#tempcolorlow = #tempcolor - #offset
if #tempcolorhigh < #b or #tempcolorlow > #b
#resultall = 0
goto :compare3
endif
#result2 = 1
:compare3
if #cmpnum == 2
#cmpnum = 0
goto :compare6
endif
// color3 R 비교
#r = #cmpcolor3 % 256
#tempcolor = #orgcolor3 % 256
#tempcolorhigh = #tempcolor + #offset
#tempcolorlow = #tempcolor - #offset
if #tempcolorhigh < #r or #tempcolorlow > #r
#resultall = 0
goto :compare4
endif
// color3 G 비교
#g = #cmpcolor3 / 256 % 256
#tempcolor = #orgcolor3 / 256 % 256
#tempcolorhigh = #tempcolor + #offset
#tempcolorlow = #tempcolor - #offset
if #tempcolorhigh < #g or #tempcolorlow > #g
#resultall = 0
goto :compare4
endif
// color3 B 비교
#b = #cmpcolor3 / 256 / 256 % 256
#tempcolor = #orgcolor3 / 256 / 256 % 256
#tempcolorhigh = #tempcolor + #offset
#tempcolorlow = #tempcolor - #offset
if #tempcolorhigh < #b or #tempcolorlow > #b
#resultall = 0
goto :compare4
endif
#result3 = 1
:compare4
if #cmpnum == 3
#cmpnum = 0
goto :compare6
endif
// color4 R 비교
#r = #cmpcolor4 % 256
#tempcolor = #orgcolor4 % 256
#tempcolorhigh = #tempcolor + #offset
#tempcolorlow = #tempcolor - #offset
if #tempcolorhigh < #r or #tempcolorlow > #r
#resultall = 0
goto :compare5
endif
// color4 G 비교
#g = #cmpcolor4 / 256 % 256
#tempcolor = #orgcolor4 / 256 % 256
#tempcolorhigh = #tempcolor + #offset
#tempcolorlow = #tempcolor - #offset
if #tempcolorhigh < #g or #tempcolorlow > #g
#resultall = 0
goto :compare5
endif
// color4 B 비교
#b = #cmpcolor4 / 256 / 256 % 256
#tempcolor = #orgcolor4 / 256 / 256 % 256
#tempcolorhigh = #tempcolor + #offset
#tempcolorlow = #tempcolor - #offset
if #tempcolorhigh < #b or #tempcolorlow > #b
#resultall = 0
goto :compare5
endif
#result4 = 1
:compare5
if #cmpnum == 4
#cmpnum = 0
goto :compare6
endif
// color5 R 비교
#r = #cmpcolor5 % 256
#tempcolor = #orgcolor5 % 256
#tempcolorhigh = #tempcolor + #offset
#tempcolorlow = #tempcolor - #offset
if #tempcolorhigh < #r or #tempcolorlow > #r
#resultall = 0
goto :compare6
endif
// color5 G 비교
#g = #cmpcolor5 / 256 % 256
#tempcolor = #orgcolor5 / 256 % 256
#tempcolorhigh = #tempcolor + #offset
#tempcolorlow = #tempcolor - #offset
if #tempcolorhigh < #g or #tempcolorlow > #g
#resultall = 0
goto :compare6
endif
// color5 B 비교
#b = #cmpcolor5 / 256 / 256 % 256
#tempcolor = #orgcolor5 / 256 / 256 % 256
#tempcolorhigh = #tempcolor + #offset
#tempcolorlow = #tempcolor - #offset
if #tempcolorhigh < #b or #tempcolorlow > #b
#resultall = 0
goto :compare6
endif
#result5 = 1
goto :goto1
:end