2017. 2. 6. 13:52ㆍ99. 정리전 - IT/29. IT 잡동지식
가만히 놔둬도 렙업 자동, 광고 건너뛰기 기능
AUTO TOUCH 용 LUA SCRIPT 공개
(주의 !!! iPhone6 Plus 만 적용됨)
유물순서
노동자의 펜던트
충성의반지
타이탄창
영웅의방패
광기의헬멧
광휘의지팡이
예언서(골드관련)
선견의 양피지-아이기스-아카나망토-자수정지팡이/레테강물/영웅의검
천상의검
신성한징벌
에덴의과실/고대의부적/폭풍의검/다모클레스의검
퓨리자매의활
죽음의도끼(데미지관련)
그림자의책(그냥 필수)
TT2_01.AllFriendsLvUp.lua
CREATETIME="2017-03-13 19:38:51";
adaptResolution(1242, 2208);
adaptOrientation(ORIENTATION_TYPE.PORTRAIT);
-- 터치유휴시간
local ms = 15000.00;
function attackOfPet()
multiTouch4(1, 608.89, 480.50, 2, 926.88, 767.32, 3, 601.16, 486.34, 4, 179.75, 549.10)
multiTouch4(5, 830.22, 551.02, 6, 287.04, 867.76, 7, 309.27, 582.90, 8, 924.94, 640.84);
multiTouch4(1, 1051.56, 520.13, 2, 245.48, 524.00, 3, 825.39, 1058.95, 4, 897.88, 511.44);
multiTouch4(5, 426.22, 518.21, 6, 230.01, 616.69, 7, 389.49, 631.17, 8, 599.22, 530.74);
multiTouch4(1, 857.29, 649.54, 2, 1079.59, 635.99, 3, 213.58, 493.11, 4, 323.77, 572.28);
multiTouch4(5, 218.42, 750.10, 6, 363.39, 750.30, 7, 219.38, 823.35, 8, 389.49, 807.89);
multiTouch4(1, 591.49, 1006.80, 2, 714.24, 1065.69, 3, 920.11, 1098.54, 4, 1080.55, 1093.72);
multiTouch4(5, 884.35, 970.11, 6, 1034.16, 962.40, 7, 854.39, 886.08, 8, 1027.39, 862.94);
multiTouch4(1, 207.78, 967.21, 2, 376.92, 956.60, 3, 213.58, 1074.39, 4, 352.76, 1071.49);
multiTouch4(5, 857.29, 766.38, 6, 1044.79, 749.94, 7, 1023.53, 1006.80, 8, 203.92, 1051.21);
multiTouch2(1, 60.87, 623.46, 2, 84.07, 914.12);
end
function attackOfFriends()
multiTouch4(1, 56.04, 520.13, 2, 36.71, 646.64, 3, 103.40, 666.92, 4, 203.92, 647.58);
multiTouch4(5, 31.88, 855.19, 6, 82.14, 862.94, 7, 189.42, 857.14, 8, 196.19, 849.39);
multiTouch4(1, 57.97, 1135.23, 2, 172.99, 1145.84, 3, 265.77, 1141.03, 4, 322.80, 1123.64);
multiTouch4(5, 899.81, 1145.84, 6, 962.64, 1122.67, 7, 1017.73, 1156.46, 8, 1120.18, 1128.46);
multiTouch4(1, 1211.03, 1108.12, 2, 948.14, 895.75, 3, 1018.70, 886.08, 4, 1092.15, 897.67);
multiTouch4(5, 1190.74, 888.98, 6, 1028.36, 648.56, 7, 1135.64, 653.38, 8, 1219.73, 665.94);
multiTouch4(1, 262.88, 1082.13, 2, 1132.75, 527.84, 3, 1058.32, 527.84, 4, 931.71, 550.08);
multiTouch4(5, 250.31, 576.12, 6, 1167.54, 505.64, 7, 1162.71, 602.20, 8, 1192.67, 788.58);
multiTouch4(1, 27.04, 802.09, 2, 1016.76, 855.19, 3, 147.86, 1037.70, 4, 126.60, 790.50);
multiTouch4(5, 1220.70, 625.38, 6, 150.76, 642.76, 7, 989.70, 520.13, 8, 105.33, 516.25);
multiTouch4(1, 1199.44, 383.00, 2, 981.00, 407.16, 3, 205.85, 422.59, 4, 1200.40, 477.64);
multiTouch2(1, 1096.98, 358.88, 2, 312.17, 448.67);
end
function multiTouch1(id1,x1,y1)
if getColor(x1, y1) == adOkColor then
adNoSelect();
else
touchDown(id1, x1, y1);
usleep(ms);
touchUp(id1, x1, y1);
usleep(ms);
end
end
function multiTouch2(id1,x1,y1, id2,x2,y2)
--[[
if getColor(x1, y1) == adOkColor or
getColor(x2, y2) == adOkColor then
adNoSelect();
else ]]--
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
usleep(ms);
-- end
end
function multiTouch3(id1,x1,y1, id2,x2,y2, id3,x3,y3)
--[[
if getColor(x1, y1) == adOkColor or
getColor(x2, y2) == adOkColor or
getColor(x3, y3) == adOkColor then
adNoSelect();
else ]]--
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
usleep(ms);
-- end
end
function multiTouch4(id1,x1,y1, id2,x2,y2, id3,x3,y3, id4,x4,y4)
--[[
if getColor(x1, y1) == adOkColor or
getColor(x2, y2) == adOkColor or
getColor(x3, y3) == adOkColor or
getColor(x4, y4) == adOkColor then
adNoSelect();
else ]]--
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
touchDown(id4, x4, y4);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
touchUp(id4, x4, y4);
usleep(ms);
-- end
end
-- 광고버튼 무시하기
local adNoButton = 16417035; -- (150.00, 1700.00)
local adYesButton = 2728910; -- (1000.00, 1700.00)
function adPopupCancel()
if getColor(150.00, 1700.00) == adNoButton then
multiTouch1(9, 150.00, 1700.00);
end
end
-- 친구들렙업하기(보이는 리스트 상에서 하→상)
function friendsLvUpD2U()
for variable = 2080, 1340, -50 do
-- 친구들랩업 스크롤 중 구매최대 버튼까지 도달시
if getColor(1217.00, variable) == 5928316 then
friendsTabScrollLast();
for subVariable = 2080, 1340, -50 do
adPopupCancel();
for push = 1, 4, 1 do
multiTouch1(1, 1217.00, subVariable);
attackOfPet();
end
end
return;
end
adPopupCancel();
for push = 1, 4, 1 do
multiTouch1(1, 1217.00, variable);
attackOfPet();
end
end
end
-- 스크롤 약간 하단으로 내리기↓
function friendsTabScrollDn()
touchDown(1, 100.00, 2060);usleep(ms);
for variable = 2000, 1500, -40 do
touchMove(1, 100, variable);usleep(ms);
end
touchUp(1, 100.00, 1440);usleep(ms);
end
-- 스크롤 약간 상단으로 올리기↑
function friendsTabScrollUp()
touchDown(1, 100.00, 1440);usleep(ms);
for variable = 1500, 2000, 40 do
touchMove(1, 100, variable);usleep(ms);
end
touchUp(1, 100.00, 2060);usleep(ms);
end
-- 스크롤 최하단으로 내리기↓
function friendsTabScrollLast()
for variable = 1, 3, 1 do
touchDown(1, 620.49, 1936.68);usleep(ms);
touchMove(1, 616.62, 1813.10);usleep(ms);
touchMove(1, 657.22, 1504.09);usleep(ms);
touchMove(1, 754.83, 1001.01);usleep(ms);
touchMove(1, 933.64, 371.41);usleep(ms);
touchUp(1, 1055.42, 60.51);usleep(ms*50);
end
end
-- 스크롤 최상단으로 올리기↑
function friendsTabScrollFirst()
for variable = 1, 3, 1 do
touchDown(1, 700, 1400);usleep(ms);
touchMove(1, 700, 1450);usleep(ms);
touchMove(1, 700, 1600);usleep(ms);
touchMove(1, 700, 1800);usleep(ms);
touchMove(1, 700, 2000);usleep(ms);
touchMove(1, 700, 2150);usleep(ms);
touchUp(1, 700, 2200);usleep(ms*50);
end
end
-- 보스전 상태에서 보스전 비활성화때 보스전으로 들어가기
function enableBossAttack()
if getColor(960.00, 60.00) == 15691794 and
getColor(1107.00, 93.00) ~= 16777215 then
multiTouch1(1, 960.00, 60.00);
end
end
-- 친구들리스트탭활성화 (비활성:6422304, 활성:10616662)
function enableFriendsTab()
for loop = 0, 2, 1 do
-- 시작전 유휴시간
usleep(ms*50);
if getColor(312.17, 2181.01) == 6422304 then
multiTouch1(1, 312.17, 2181.01);
end
end
end
--[ main ]-----------------------------------------
-- 친구들리스트활성화
enableFriendsTab();
friendsTabScrollLast();
while true do
friendsLvUpD2U();
friendsTabScrollUp();
enableBossAttack();
end
TT2_02.Last1stFriendLvUp.lua
CREATETIME="2017-03-10 08:22:02";
adaptResolution(1242, 2208);
adaptOrientation(ORIENTATION_TYPE.PORTRAIT);
local ms = 25000.00;
function multiTouch1(id1,x1,y1)
touchDown(id1, x1, y1);
usleep(ms);
touchUp(id1, x1, y1);
usleep(ms);
end
function multiTouch2(id1,x1,y1, id2,x2,y2)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
usleep(ms);
end
function multiTouch3(id1,x1,y1, id2,x2,y2, id3,x3,y3)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
usleep(ms);
end
function multiTouch4(id1,x1,y1, id2,x2,y2, id3,x3,y3, id4,x4,y4)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
touchDown(id4, x4, y4);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
touchUp(id4, x4, y4);
usleep(ms);
end
function multiTouch8(id1,x1,y1, id2,x2,y2, id3,x3,y3, id4,x4,y4, id5,x5,y5, id6,x6,y6, id7,x7,y7, id8,x8,y8)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
touchDown(id4, x4, y4);
touchDown(id5, x5, y5);
touchDown(id6, x6, y6);
touchDown(id7, x7, y7);
touchDown(id8, x8, y8);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
touchUp(id4, x4, y4);
touchUp(id5, x5, y5);
touchUp(id6, x6, y6);
touchUp(id7, x7, y7);
touchUp(id8, x8, y8);
usleep(ms);
end
function attackOfPet()
multiTouch4(1, 608.89, 480.50, 2, 926.88, 767.32, 3, 601.16, 486.34, 4, 179.75, 549.10)
multiTouch4(5, 830.22, 551.02, 6, 287.04, 867.76, 7, 309.27, 582.90, 8, 924.94, 640.84);
multiTouch4(1, 1051.56, 520.13, 2, 245.48, 524.00, 3, 825.39, 1058.95, 4, 897.88, 511.44);
multiTouch4(5, 426.22, 518.21, 6, 230.01, 616.69, 7, 389.49, 631.17, 8, 599.22, 530.74);
multiTouch4(1, 857.29, 649.54, 2, 1079.59, 635.99, 3, 213.58, 493.11, 4, 323.77, 572.28);
multiTouch4(5, 218.42, 750.10, 6, 363.39, 750.30, 7, 219.38, 823.35, 8, 389.49, 807.89);
multiTouch4(1, 591.49, 1006.80, 2, 714.24, 1065.69, 3, 920.11, 1098.54, 4, 1080.55, 1093.72);
multiTouch4(5, 884.35, 970.11, 6, 1034.16, 962.40, 7, 854.39, 886.08, 8, 1027.39, 862.94);
multiTouch4(1, 207.78, 967.21, 2, 376.92, 956.60, 3, 213.58, 1074.39, 4, 352.76, 1071.49);
multiTouch4(5, 857.29, 766.38, 6, 1044.79, 749.94, 7, 1023.53, 1006.80, 8, 203.92, 1051.21);
multiTouch2(1, 60.87, 623.46, 2, 84.07, 914.12);
end
function attackOfFriends()
multiTouch4(1, 56.04, 520.13, 2, 36.71, 646.64, 3, 103.40, 666.92, 4, 203.92, 647.58);
multiTouch4(5, 31.88, 855.19, 6, 82.14, 862.94, 7, 189.42, 857.14, 8, 196.19, 849.39);
multiTouch4(1, 57.97, 1135.23, 2, 172.99, 1145.84, 3, 265.77, 1141.03, 4, 322.80, 1123.64);
multiTouch4(5, 899.81, 1145.84, 6, 962.64, 1122.67, 7, 1017.73, 1156.46, 8, 1120.18, 1128.46);
multiTouch4(1, 1211.03, 1108.12, 2, 948.14, 895.75, 3, 1018.70, 886.08, 4, 1092.15, 897.67);
multiTouch4(5, 1190.74, 888.98, 6, 1028.36, 648.56, 7, 1135.64, 653.38, 8, 1219.73, 665.94);
multiTouch4(1, 262.88, 1082.13, 2, 1132.75, 527.84, 3, 1058.32, 527.84, 4, 931.71, 550.08);
multiTouch4(5, 250.31, 576.12, 6, 1167.54, 505.64, 7, 1162.71, 602.20, 8, 1192.67, 788.58);
multiTouch4(1, 27.04, 802.09, 2, 1016.76, 855.19, 3, 147.86, 1037.70, 4, 126.60, 790.50);
multiTouch4(5, 1220.70, 625.38, 6, 150.76, 642.76, 7, 989.70, 520.13, 8, 105.33, 516.25);
multiTouch4(1, 1199.44, 383.00, 2, 981.00, 407.16, 3, 205.85, 422.59, 4, 1200.40, 477.64);
multiTouch2(1, 1096.98, 358.88, 2, 312.17, 448.67);
end
-- 스크롤 최하단으로 내리기
function friendsTabScrollLast()
for variable = 0, 2, 1 do
touchDown(1, 620.49, 1936.68);usleep(ms);
touchMove(1, 616.62, 1813.10);usleep(ms);
touchMove(1, 657.22, 1504.09);usleep(ms);
touchMove(1, 754.83, 1001.01);usleep(ms);
touchMove(1, 933.64, 371.41);usleep(ms);
touchUp(1, 1055.42, 60.51);usleep(ms*50);
end
end
-- 광고버튼 무시하기
local adNoButton = 16417035; -- (150.00, 1700.00)
local adYesButton = 2728910; -- (1000.00, 1700.00)
function adPopupCancel()
if getColor(150.00, 1700.00) == adNoButton then
multiTouch1(1, 150.00, 1700.00);
end
end
-- 보스전 상태에서 보스전 비활성화때 보스전으로 들어가기
function enableBossAttack()
if getColor(960.00, 60.00) == 15691794 and
getColor(1107.00, 93.00) ~= 16777215 then
multiTouch1(1, 960.00, 60.00);
end
end
-- 친구들리스트탭 활성화 (비활성:6422304, 활성:10616662)
function enableFriendsTab()
for loop = 0, 2, 1 do
-- 시작전 유휴시간
usleep(ms*50);
if getColor(312.17, 2181.01) == 6422304 then
multiTouch1(1, 312.17, 2181.01);
end
end
end
--[ main ]-----------------------------------------
-- 친구들리스트탭 활성화
enableFriendsTab();
-- 스크롤 최하단으로 내리기
friendsTabScrollLast();
-- 보스어택
enableBossAttack();
while true do
for variable = 0, 10, 1 do
attackOfPet();
adPopupCancel();
end
for push = 1, 4, 1 do
-- 1st FinLevelUp
multiTouch1(1, 1217.00, 1632.52);
-- 2nd FinLevelUp
-- multiTouch1(1, 1217.00, 1861.38);
-- 3rd LevelUp
-- multiTouch1(1, 1217.00, 2020.00);
end
end
TT2_03.Last2ndFriendLvUp.lua
CREATETIME="2017-03-10 08:22:02";
adaptResolution(1242, 2208);
adaptOrientation(ORIENTATION_TYPE.PORTRAIT);
local ms = 25000.00;
function multiTouch1(id1,x1,y1)
touchDown(id1, x1, y1);
usleep(ms);
touchUp(id1, x1, y1);
usleep(ms);
end
function multiTouch2(id1,x1,y1, id2,x2,y2)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
usleep(ms);
end
function multiTouch3(id1,x1,y1, id2,x2,y2, id3,x3,y3)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
usleep(ms);
end
function multiTouch4(id1,x1,y1, id2,x2,y2, id3,x3,y3, id4,x4,y4)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
touchDown(id4, x4, y4);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
touchUp(id4, x4, y4);
usleep(ms);
end
function multiTouch8(id1,x1,y1, id2,x2,y2, id3,x3,y3, id4,x4,y4, id5,x5,y5, id6,x6,y6, id7,x7,y7, id8,x8,y8)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
touchDown(id4, x4, y4);
touchDown(id5, x5, y5);
touchDown(id6, x6, y6);
touchDown(id7, x7, y7);
touchDown(id8, x8, y8);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
touchUp(id4, x4, y4);
touchUp(id5, x5, y5);
touchUp(id6, x6, y6);
touchUp(id7, x7, y7);
touchUp(id8, x8, y8);
usleep(ms);
end
function attackOfPet()
multiTouch4(1, 608.89, 480.50, 2, 926.88, 767.32, 3, 601.16, 486.34, 4, 179.75, 549.10)
multiTouch4(5, 830.22, 551.02, 6, 287.04, 867.76, 7, 309.27, 582.90, 8, 924.94, 640.84);
multiTouch4(1, 1051.56, 520.13, 2, 245.48, 524.00, 3, 825.39, 1058.95, 4, 897.88, 511.44);
multiTouch4(5, 426.22, 518.21, 6, 230.01, 616.69, 7, 389.49, 631.17, 8, 599.22, 530.74);
multiTouch4(1, 857.29, 649.54, 2, 1079.59, 635.99, 3, 213.58, 493.11, 4, 323.77, 572.28);
multiTouch4(5, 218.42, 750.10, 6, 363.39, 750.30, 7, 219.38, 823.35, 8, 389.49, 807.89);
multiTouch4(1, 591.49, 1006.80, 2, 714.24, 1065.69, 3, 920.11, 1098.54, 4, 1080.55, 1093.72);
multiTouch4(5, 884.35, 970.11, 6, 1034.16, 962.40, 7, 854.39, 886.08, 8, 1027.39, 862.94);
multiTouch4(1, 207.78, 967.21, 2, 376.92, 956.60, 3, 213.58, 1074.39, 4, 352.76, 1071.49);
multiTouch4(5, 857.29, 766.38, 6, 1044.79, 749.94, 7, 1023.53, 1006.80, 8, 203.92, 1051.21);
multiTouch2(1, 60.87, 623.46, 2, 84.07, 914.12);
end
function attackOfFriends()
multiTouch4(1, 56.04, 520.13, 2, 36.71, 646.64, 3, 103.40, 666.92, 4, 203.92, 647.58);
multiTouch4(5, 31.88, 855.19, 6, 82.14, 862.94, 7, 189.42, 857.14, 8, 196.19, 849.39);
multiTouch4(1, 57.97, 1135.23, 2, 172.99, 1145.84, 3, 265.77, 1141.03, 4, 322.80, 1123.64);
multiTouch4(5, 899.81, 1145.84, 6, 962.64, 1122.67, 7, 1017.73, 1156.46, 8, 1120.18, 1128.46);
multiTouch4(1, 1211.03, 1108.12, 2, 948.14, 895.75, 3, 1018.70, 886.08, 4, 1092.15, 897.67);
multiTouch4(5, 1190.74, 888.98, 6, 1028.36, 648.56, 7, 1135.64, 653.38, 8, 1219.73, 665.94);
multiTouch4(1, 262.88, 1082.13, 2, 1132.75, 527.84, 3, 1058.32, 527.84, 4, 931.71, 550.08);
multiTouch4(5, 250.31, 576.12, 6, 1167.54, 505.64, 7, 1162.71, 602.20, 8, 1192.67, 788.58);
multiTouch4(1, 27.04, 802.09, 2, 1016.76, 855.19, 3, 147.86, 1037.70, 4, 126.60, 790.50);
multiTouch4(5, 1220.70, 625.38, 6, 150.76, 642.76, 7, 989.70, 520.13, 8, 105.33, 516.25);
multiTouch4(1, 1199.44, 383.00, 2, 981.00, 407.16, 3, 205.85, 422.59, 4, 1200.40, 477.64);
multiTouch2(1, 1096.98, 358.88, 2, 312.17, 448.67);
end
-- 스크롤 최하단으로 내리기
function friendsTabScrollLast()
for variable = 0, 2, 1 do
touchDown(1, 620.49, 1936.68);usleep(ms);
touchMove(1, 616.62, 1813.10);usleep(ms);
touchMove(1, 657.22, 1504.09);usleep(ms);
touchMove(1, 754.83, 1001.01);usleep(ms);
touchMove(1, 933.64, 371.41);usleep(ms);
touchUp(1, 1055.42, 60.51);usleep(ms*50);
end
end
-- 광고버튼 무시하기
local adNoButton = 16417035; -- (150.00, 1700.00)
local adYesButton = 2728910; -- (1000.00, 1700.00)
function adPopupCancel()
if getColor(150.00, 1700.00) == adNoButton then
multiTouch1(1, 150.00, 1700.00);
end
end
-- 보스전 상태에서 보스전 비활성화때 보스전으로 들어가기
function enableBossAttack()
if getColor(960.00, 60.00) == 15691794 and
getColor(1107.00, 93.00) ~= 16777215 then
multiTouch1(1, 960.00, 60.00);
end
end
-- 친구들리스트탭 활성화 (비활성:6422304, 활성:10616662)
function enableFriendsTab()
for loop = 0, 2, 1 do
-- 시작전 유휴시간
usleep(ms*50);
if getColor(312.17, 2181.01) == 6422304 then
multiTouch1(1, 312.17, 2181.01);
end
end
end
--[ main ]-----------------------------------------
-- 친구들리스트탭 활성화
enableFriendsTab();
-- 스크롤 최하단으로 내리기
friendsTabScrollLast();
-- 보스어택
enableBossAttack();
while true do
for variable = 0, 10, 1 do
attackOfPet();
adPopupCancel();
end
for push = 1, 4, 1 do
-- 1st FinLevelUp
-- multiTouch1(1, 1217.00, 1632.52);
-- 2nd FinLevelUp
multiTouch1(1, 1217.00, 1861.38);
-- 3rd LevelUp
-- multiTouch1(1, 1217.00, 2020.00);
end
end
TT2_04.Last3rdFriendLvUp.lua
CREATETIME="2017-03-10 08:22:02";
adaptResolution(1242, 2208);
adaptOrientation(ORIENTATION_TYPE.PORTRAIT);
local ms = 25000.00;
function multiTouch1(id1,x1,y1)
touchDown(id1, x1, y1);
usleep(ms);
touchUp(id1, x1, y1);
usleep(ms);
end
function multiTouch2(id1,x1,y1, id2,x2,y2)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
usleep(ms);
end
function multiTouch3(id1,x1,y1, id2,x2,y2, id3,x3,y3)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
usleep(ms);
end
function multiTouch4(id1,x1,y1, id2,x2,y2, id3,x3,y3, id4,x4,y4)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
touchDown(id4, x4, y4);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
touchUp(id4, x4, y4);
usleep(ms);
end
function multiTouch8(id1,x1,y1, id2,x2,y2, id3,x3,y3, id4,x4,y4, id5,x5,y5, id6,x6,y6, id7,x7,y7, id8,x8,y8)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
touchDown(id4, x4, y4);
touchDown(id5, x5, y5);
touchDown(id6, x6, y6);
touchDown(id7, x7, y7);
touchDown(id8, x8, y8);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
touchUp(id4, x4, y4);
touchUp(id5, x5, y5);
touchUp(id6, x6, y6);
touchUp(id7, x7, y7);
touchUp(id8, x8, y8);
usleep(ms);
end
function attackOfPet()
multiTouch4(1, 608.89, 480.50, 2, 926.88, 767.32, 3, 601.16, 486.34, 4, 179.75, 549.10)
multiTouch4(5, 830.22, 551.02, 6, 287.04, 867.76, 7, 309.27, 582.90, 8, 924.94, 640.84);
multiTouch4(1, 1051.56, 520.13, 2, 245.48, 524.00, 3, 825.39, 1058.95, 4, 897.88, 511.44);
multiTouch4(5, 426.22, 518.21, 6, 230.01, 616.69, 7, 389.49, 631.17, 8, 599.22, 530.74);
multiTouch4(1, 857.29, 649.54, 2, 1079.59, 635.99, 3, 213.58, 493.11, 4, 323.77, 572.28);
multiTouch4(5, 218.42, 750.10, 6, 363.39, 750.30, 7, 219.38, 823.35, 8, 389.49, 807.89);
multiTouch4(1, 591.49, 1006.80, 2, 714.24, 1065.69, 3, 920.11, 1098.54, 4, 1080.55, 1093.72);
multiTouch4(5, 884.35, 970.11, 6, 1034.16, 962.40, 7, 854.39, 886.08, 8, 1027.39, 862.94);
multiTouch4(1, 207.78, 967.21, 2, 376.92, 956.60, 3, 213.58, 1074.39, 4, 352.76, 1071.49);
multiTouch4(5, 857.29, 766.38, 6, 1044.79, 749.94, 7, 1023.53, 1006.80, 8, 203.92, 1051.21);
multiTouch2(1, 60.87, 623.46, 2, 84.07, 914.12);
end
function attackOfFriends()
multiTouch4(1, 56.04, 520.13, 2, 36.71, 646.64, 3, 103.40, 666.92, 4, 203.92, 647.58);
multiTouch4(5, 31.88, 855.19, 6, 82.14, 862.94, 7, 189.42, 857.14, 8, 196.19, 849.39);
multiTouch4(1, 57.97, 1135.23, 2, 172.99, 1145.84, 3, 265.77, 1141.03, 4, 322.80, 1123.64);
multiTouch4(5, 899.81, 1145.84, 6, 962.64, 1122.67, 7, 1017.73, 1156.46, 8, 1120.18, 1128.46);
multiTouch4(1, 1211.03, 1108.12, 2, 948.14, 895.75, 3, 1018.70, 886.08, 4, 1092.15, 897.67);
multiTouch4(5, 1190.74, 888.98, 6, 1028.36, 648.56, 7, 1135.64, 653.38, 8, 1219.73, 665.94);
multiTouch4(1, 262.88, 1082.13, 2, 1132.75, 527.84, 3, 1058.32, 527.84, 4, 931.71, 550.08);
multiTouch4(5, 250.31, 576.12, 6, 1167.54, 505.64, 7, 1162.71, 602.20, 8, 1192.67, 788.58);
multiTouch4(1, 27.04, 802.09, 2, 1016.76, 855.19, 3, 147.86, 1037.70, 4, 126.60, 790.50);
multiTouch4(5, 1220.70, 625.38, 6, 150.76, 642.76, 7, 989.70, 520.13, 8, 105.33, 516.25);
multiTouch4(1, 1199.44, 383.00, 2, 981.00, 407.16, 3, 205.85, 422.59, 4, 1200.40, 477.64);
multiTouch2(1, 1096.98, 358.88, 2, 312.17, 448.67);
end
-- 스크롤 최하단으로 내리기
function friendsTabScrollLast()
for variable = 0, 2, 1 do
touchDown(1, 620.49, 1936.68);usleep(ms);
touchMove(1, 616.62, 1813.10);usleep(ms);
touchMove(1, 657.22, 1504.09);usleep(ms);
touchMove(1, 754.83, 1001.01);usleep(ms);
touchMove(1, 933.64, 371.41);usleep(ms);
touchUp(1, 1055.42, 60.51);usleep(ms*50);
end
end
-- 광고버튼 무시하기
local adNoButton = 16417035; -- (150.00, 1700.00)
local adYesButton = 2728910; -- (1000.00, 1700.00)
function adPopupCancel()
if getColor(150.00, 1700.00) == adNoButton then
multiTouch1(1, 150.00, 1700.00);
end
end
-- 보스전 상태에서 보스전 비활성화때 보스전으로 들어가기
function enableBossAttack()
if getColor(960.00, 60.00) == 15691794 and
getColor(1107.00, 93.00) ~= 16777215 then
multiTouch1(1, 960.00, 60.00);
end
end
-- 친구들리스트탭 활성화 (비활성:6422304, 활성:10616662)
function enableFriendsTab()
for loop = 0, 2, 1 do
-- 시작전 유휴시간
usleep(ms*50);
if getColor(312.17, 2181.01) == 6422304 then
multiTouch1(1, 312.17, 2181.01);
end
end
end
--[ main ]-----------------------------------------
-- 친구들리스트탭 활성화
enableFriendsTab();
-- 스크롤 최하단으로 내리기
friendsTabScrollLast();
-- 보스어택
enableBossAttack();
while true do
for variable = 0, 10, 1 do
attackOfPet();
adPopupCancel();
end
for push = 1, 4, 1 do
-- 1st FinLevelUp
-- multiTouch1(1, 1217.00, 1632.52);
-- 2nd FinLevelUp
-- multiTouch1(1, 1217.00, 1861.38);
-- 3rd LevelUp
multiTouch1(1, 1217.00, 2020.00);
end
end
TT2_05.ClanWar.lua
CREATETIME="2017-02-03 00:44:52";
adaptResolution(1242, 2208);
adaptOrientation(ORIENTATION_TYPE.PORTRAIT);
-- 터치유휴시간:타격량
-- 14500 : 581
-- 15000 : 584
-- 15250 : 580
-- 15500 : 580
-- 16000 : 579
-- 16500 : 577
-- 17500 : 569
local ms = 15000.00;
function attackOfPet()
multiTouch4(1, 608.89, 480.50, 2, 926.88, 767.32, 3, 601.16, 486.34, 4, 179.75, 549.10)
multiTouch4(5, 830.22, 551.02, 6, 287.04, 867.76, 7, 309.27, 582.90, 8, 924.94, 640.84);
multiTouch4(1, 1051.56, 520.13, 2, 245.48, 524.00, 3, 825.39, 1058.95, 4, 897.88, 511.44);
multiTouch4(5, 426.22, 518.21, 6, 230.01, 616.69, 7, 389.49, 631.17, 8, 599.22, 530.74);
multiTouch4(1, 857.29, 649.54, 2, 1079.59, 635.99, 3, 213.58, 493.11, 4, 323.77, 572.28);
multiTouch4(5, 218.42, 750.10, 6, 363.39, 750.30, 7, 219.38, 823.35, 8, 389.49, 807.89);
multiTouch4(1, 591.49, 1006.80, 2, 714.24, 1065.69, 3, 920.11, 1098.54, 4, 1080.55, 1093.72);
multiTouch4(5, 884.35, 970.11, 6, 1034.16, 962.40, 7, 854.39, 886.08, 8, 1027.39, 862.94);
multiTouch4(1, 207.78, 967.21, 2, 376.92, 956.60, 3, 213.58, 1074.39, 4, 352.76, 1071.49);
multiTouch4(5, 857.29, 766.38, 6, 1044.79, 749.94, 7, 1023.53, 1006.80, 8, 203.92, 1051.21);
multiTouch2(1, 60.87, 623.46, 2, 84.07, 914.12);
end
function attackOfFriends()
multiTouch4(1, 56.04, 520.13, 2, 36.71, 646.64, 3, 103.40, 666.92, 4, 203.92, 647.58);
multiTouch4(5, 31.88, 855.19, 6, 82.14, 862.94, 7, 189.42, 857.14, 8, 196.19, 849.39);
multiTouch4(1, 57.97, 1135.23, 2, 172.99, 1145.84, 3, 265.77, 1141.03, 4, 322.80, 1123.64);
multiTouch4(5, 899.81, 1145.84, 6, 962.64, 1122.67, 7, 1017.73, 1156.46, 8, 1120.18, 1128.46);
multiTouch4(1, 1211.03, 1108.12, 2, 948.14, 895.75, 3, 1018.70, 886.08, 4, 1092.15, 897.67);
multiTouch4(5, 1190.74, 888.98, 6, 1028.36, 648.56, 7, 1135.64, 653.38, 8, 1219.73, 665.94);
multiTouch4(1, 262.88, 1082.13, 2, 1132.75, 527.84, 3, 1058.32, 527.84, 4, 931.71, 550.08);
multiTouch4(5, 250.31, 576.12, 6, 1167.54, 505.64, 7, 1162.71, 602.20, 8, 1192.67, 788.58);
multiTouch4(1, 27.04, 802.09, 2, 1016.76, 855.19, 3, 147.86, 1037.70, 4, 126.60, 790.50);
multiTouch4(5, 1220.70, 625.38, 6, 150.76, 642.76, 7, 989.70, 520.13, 8, 105.33, 516.25);
multiTouch4(1, 1199.44, 383.00, 2, 981.00, 407.16, 3, 205.85, 422.59, 4, 1200.40, 477.64);
multiTouch2(1, 1096.98, 358.88, 2, 312.17, 448.67);
end
function multiTouch1(id1,x1,y1)
if getColor(x1, y1) == adOkColor then
adNoSelect();
else
touchDown(id1, x1, y1);
usleep(ms);
touchUp(id1, x1, y1);
usleep(ms);
end
end
function multiTouch2(id1,x1,y1, id2,x2,y2)
--[[
if getColor(x1, y1) == adOkColor or
getColor(x2, y2) == adOkColor then
adNoSelect();
else ]]--
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
usleep(ms);
-- end
end
function multiTouch3(id1,x1,y1, id2,x2,y2, id3,x3,y3)
--[[
if getColor(x1, y1) == adOkColor or
getColor(x2, y2) == adOkColor or
getColor(x3, y3) == adOkColor then
adNoSelect();
else ]]--
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
usleep(ms);
-- end
end
function multiTouch4(id1,x1,y1, id2,x2,y2, id3,x3,y3, id4,x4,y4)
--[[
if getColor(x1, y1) == adOkColor or
getColor(x2, y2) == adOkColor or
getColor(x3, y3) == adOkColor or
getColor(x4, y4) == adOkColor then
adNoSelect();
else ]]--
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
touchDown(id4, x4, y4);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
touchUp(id4, x4, y4);
usleep(ms);
-- end
end
-- 광고버튼 무시하기
local adNoButton = 16417035; -- (150.00, 1700.00)
local adYesButton = 2728910; -- (1000.00, 1700.00)
function adPopupCancel()
if getColor(150.00, 1700.00) == adNoButton then
multiTouch1(9, 150.00, 1700.00);
end
end
-- 친구들렙업하기(상위로훑으며)
function friendsLvUpD2U()
for variable = 2080, 1340, -50 do
adPopupCancel();
--[[
local bool = true;
-- 랩업회색버튼의수
for c = 150, 200, 1 do
if getColor(1216.00, variable) == rgbToInt(c, c, c) then
bool = false;
break;
end
end
if bool then
]]--
for push = 1, 4, 1 do
multiTouch1(1, 1216.00, variable);
attackOfPet();
end
-- end
end
end
-- 스크롤 약간 하단으로 내리기
function friendsTabScrollDn()
touchDown(1, 100.00, 2060);usleep(ms);
for variable = 2000, 1500, -20 do
touchMove(1, 100, variable);usleep(ms);
end
touchUp(1, 100.00, 1440);usleep(ms);
end
-- 스크롤 약간 상단으로 올리기
function friendsTabScrollUp()
touchDown(1, 100.00, 1440);usleep(ms);
for variable = 1500, 2000, 20 do
touchMove(1, 100, variable);usleep(ms);
end
touchUp(1, 100.00, 2060);usleep(ms);
end
-- 스크롤 최하단으로 내리기
function friendsTabScrollLast()
for variable = 1, 3, 1 do
touchDown(1, 620.49, 1936.68);usleep(ms);
touchMove(1, 616.62, 1813.10);usleep(ms);
touchMove(1, 657.22, 1504.09);usleep(ms);
touchMove(1, 754.83, 1001.01);usleep(ms);
touchMove(1, 933.64, 371.41);usleep(ms);
touchUp(1, 1055.42, 60.51);usleep(ms*50);
end
end
-- 스크롤 최상단으로 올리기
function friendsTabScrollFirst()
for variable = 1, 3, 1 do
touchDown(1, 700, 1400);usleep(ms);
touchMove(1, 700, 1450);usleep(ms);
touchMove(1, 700, 1600);usleep(ms);
touchMove(1, 700, 1800);usleep(ms);
touchMove(1, 700, 2000);usleep(ms);
touchMove(1, 700, 2150);usleep(ms);
touchUp(1, 700, 2200);usleep(ms*50);
end
end
-- 보스전 상태에서 보스전 비활성화때 보스전으로 들어가기
function enableBossAttack()
if getColor(960.00, 60.00) == 15691794 and
getColor(1107.00, 93.00) ~= 16777215 then
multiTouch1(1, 960.00, 60.00);
end
end
-- 친구들리스트탭활성화 (비활성:6422304, 활성:10616662)
function enableFriendsTab()
for loop = 0, 2, 1 do
-- 시작전 유휴시간
usleep(ms*50);
if getColor(312.17, 2181.01) == 6422304 then
multiTouch1(1, 312.17, 2181.01);
end
end
end
function clanWarClose()
if getColor(1106.00, 127.00) == 4405296 then
multiTouch1(1, 1106.00, 127.00);
-- 클랜전 빠져나오기
return;
end
end
--[ main ]-----------------------------------------
--( 클랜전 )---------------
while true do
attackOfPet();
adPopupCancel();
enableBossAttack();
clanWarClose();
end
--( 친구들랩업 )------------
-- 친구들리스트탭 활성화
enableFriendsTab();
while true do
-- 친구들리스트활성화
enableFriendsTab()
friendsTabScrollLast();
for i = 1, 13, 1 do
-- 친구들랩업 스크롤 중 구매최대 버튼까지 도달시 반복문 끝냄
if getColor(1200.00, 1400.00) == 4280659 then
return;
else
friendsLvUpD2U();
friendsTabScrollUp();
enableBossAttack();
end
end
for i = 1, 10, 1 do
attackOfPet();
end
end
TT2_08.HeroLevelUp.lua
CREATETIME="2017-02-03 00:44:52";
adaptResolution(1242, 2208);
adaptOrientation(ORIENTATION_TYPE.PORTRAIT);
-- 14500 : 581
-- 15000 : 584
-- 15250 : 580
-- 15500 : 580
-- 16000 : 579
-- 16500 : 577
-- 17500 : 569
local ms = 25000.00;
function attackOfPet()
multiTouch4(1, 608.89, 480.50, 2, 926.88, 767.32, 3, 601.16, 486.34, 4, 179.75, 549.10)
multiTouch4(5, 830.22, 551.02, 6, 287.04, 867.76, 7, 309.27, 582.90, 8, 924.94, 640.84);
multiTouch4(1, 1051.56, 520.13, 2, 245.48, 524.00, 3, 825.39, 1058.95, 4, 897.88, 511.44);
multiTouch4(5, 426.22, 518.21, 6, 230.01, 616.69, 7, 389.49, 631.17, 8, 599.22, 530.74);
multiTouch4(1, 857.29, 649.54, 2, 1079.59, 635.99, 3, 213.58, 493.11, 4, 323.77, 572.28);
multiTouch4(5, 218.42, 750.10, 6, 363.39, 750.30, 7, 219.38, 823.35, 8, 389.49, 807.89);
multiTouch4(1, 591.49, 1006.80, 2, 714.24, 1065.69, 3, 920.11, 1098.54, 4, 1080.55, 1093.72);
multiTouch4(5, 884.35, 970.11, 6, 1034.16, 962.40, 7, 854.39, 886.08, 8, 1027.39, 862.94);
multiTouch4(1, 207.78, 967.21, 2, 376.92, 956.60, 3, 213.58, 1074.39, 4, 352.76, 1071.49);
multiTouch4(5, 857.29, 766.38, 6, 1044.79, 749.94, 7, 1023.53, 1006.80, 8, 203.92, 1051.21);
multiTouch2(1, 60.87, 623.46, 2, 84.07, 914.12);
end
function attackOfFriends()
multiTouch4(1, 56.04, 520.13, 2, 36.71, 646.64, 3, 103.40, 666.92, 4, 203.92, 647.58);
multiTouch4(5, 31.88, 855.19, 6, 82.14, 862.94, 7, 189.42, 857.14, 8, 196.19, 849.39);
multiTouch4(1, 57.97, 1135.23, 2, 172.99, 1145.84, 3, 265.77, 1141.03, 4, 322.80, 1123.64);
multiTouch4(5, 899.81, 1145.84, 6, 962.64, 1122.67, 7, 1017.73, 1156.46, 8, 1120.18, 1128.46);
multiTouch4(1, 1211.03, 1108.12, 2, 948.14, 895.75, 3, 1018.70, 886.08, 4, 1092.15, 897.67);
multiTouch4(5, 1190.74, 888.98, 6, 1028.36, 648.56, 7, 1135.64, 653.38, 8, 1219.73, 665.94);
multiTouch4(1, 262.88, 1082.13, 2, 1132.75, 527.84, 3, 1058.32, 527.84, 4, 931.71, 550.08);
multiTouch4(5, 250.31, 576.12, 6, 1167.54, 505.64, 7, 1162.71, 602.20, 8, 1192.67, 788.58);
multiTouch4(1, 27.04, 802.09, 2, 1016.76, 855.19, 3, 147.86, 1037.70, 4, 126.60, 790.50);
multiTouch4(5, 1220.70, 625.38, 6, 150.76, 642.76, 7, 989.70, 520.13, 8, 105.33, 516.25);
multiTouch4(1, 1199.44, 383.00, 2, 981.00, 407.16, 3, 205.85, 422.59, 4, 1200.40, 477.64);
multiTouch2(1, 1096.98, 358.88, 2, 312.17, 448.67);
end
function multiTouch1(id1,x1,y1)
touchDown(id1, x1, y1);
usleep(ms);
touchUp(id1, x1, y1);
usleep(ms);
end
function multiTouch2(id1,x1,y1, id2,x2,y2)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
usleep(ms);
end
function multiTouch3(id1,x1,y1, id2,x2,y2, id3,x3,y3)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
usleep(ms);
end
function multiTouch4(id1,x1,y1, id2,x2,y2, id3,x3,y3, id4,x4,y4)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
touchDown(id4, x4, y4);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
touchUp(id4, x4, y4);
usleep(ms);
end
function multiTouch8(id1,x1,y1, id2,x2,y2, id3,x3,y3, id4,x4,y4, id5,x5,y5, id6,x6,y6, id7,x7,y7, id8,x8,y8)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
touchDown(id4, x4, y4);
touchDown(id5, x5, y5);
touchDown(id6, x6, y6);
touchDown(id7, x7, y7);
touchDown(id8, x8, y8);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
touchUp(id4, x4, y4);
touchUp(id5, x5, y5);
touchUp(id6, x6, y6);
touchUp(id7, x7, y7);
touchUp(id8, x8, y8);
usleep(ms);
end
-- 광고버튼 무시하기
local adNoButton = 16417035; -- (150.00, 1700.00)
local adYesButton = 2728910; -- (1000.00, 1700.00)
function adPopupCancel()
if getColor(150.00, 1700.00) == adNoButton then
multiTouch1(9, 150.00, 1700.00);
end
end
-- 보스전 상태에서 보스전 비활성화때 보스전으로 들어가기
function enableBossAttack()
if getColor(960.00, 60.00) == 15691794 and
getColor(1107.00, 93.00) ~= 16777215 then
multiTouch1(1, 960.00, 60.00);
end
end
-- 스크롤 최상단으로 올리기
function friendsTabScrollFirst()
for variable = 0, 2, 1 do
touchDown(1, 700, 1400);usleep(ms);
touchMove(1, 700, 1450);usleep(ms);
touchMove(1, 700, 1600);usleep(ms);
touchMove(1, 700, 1800);usleep(ms);
touchMove(1, 700, 2000);usleep(ms);
touchMove(1, 700, 2150);usleep(ms);
touchUp(1, 700, 2200);usleep(ms*50);
end
end
-- 주인공탭 활성화
function enableHeroTab()
for loop = 0, 2, 1 do
-- 시작전 유휴시간
usleep(ms*50);
if getColor(94.00, 2157.00) ~= 11653343 then
multiTouch1(1, 94.00, 2157.00);
end
end
end
--[ main ]-----------------------------------------
-- 주인공탭 활성화
enableHeroTab();
-- 스크롤 최상단으로 올리기
friendsTabScrollFirst();
while true do
for variable = 0, 5, 1 do
attackOfPet();
attackOfFriends();
adPopupCancel();
end
-- [LevelUp]
multiTouch1(1, 1216.00, 1568.81);
enableBossAttack();
end
TT2_09.Last4FriendsLvUp.lua
CREATETIME="2017-02-03 00:44:35";
adaptResolution(1242, 2208);
adaptOrientation(ORIENTATION_TYPE.PORTRAIT);
-- 터치유휴시간
local ms = 15000.00;
function attackOfPet()
multiTouch4(1, 608.89, 480.50, 2, 926.88, 767.32, 3, 601.16, 486.34, 4, 179.75, 549.10)
multiTouch4(5, 830.22, 551.02, 6, 287.04, 867.76, 7, 309.27, 582.90, 8, 924.94, 640.84);
multiTouch4(1, 1051.56, 520.13, 2, 245.48, 524.00, 3, 825.39, 1058.95, 4, 897.88, 511.44);
multiTouch4(5, 426.22, 518.21, 6, 230.01, 616.69, 7, 389.49, 631.17, 8, 599.22, 530.74);
multiTouch4(1, 857.29, 649.54, 2, 1079.59, 635.99, 3, 213.58, 493.11, 4, 323.77, 572.28);
multiTouch4(5, 218.42, 750.10, 6, 363.39, 750.30, 7, 219.38, 823.35, 8, 389.49, 807.89);
multiTouch4(1, 591.49, 1006.80, 2, 714.24, 1065.69, 3, 920.11, 1098.54, 4, 1080.55, 1093.72);
multiTouch4(5, 884.35, 970.11, 6, 1034.16, 962.40, 7, 854.39, 886.08, 8, 1027.39, 862.94);
multiTouch4(1, 207.78, 967.21, 2, 376.92, 956.60, 3, 213.58, 1074.39, 4, 352.76, 1071.49);
multiTouch4(5, 857.29, 766.38, 6, 1044.79, 749.94, 7, 1023.53, 1006.80, 8, 203.92, 1051.21);
multiTouch2(1, 60.87, 623.46, 2, 84.07, 914.12);
end
function attackOfFriends()
multiTouch4(1, 56.04, 520.13, 2, 36.71, 646.64, 3, 103.40, 666.92, 4, 203.92, 647.58);
multiTouch4(5, 31.88, 855.19, 6, 82.14, 862.94, 7, 189.42, 857.14, 8, 196.19, 849.39);
multiTouch4(1, 57.97, 1135.23, 2, 172.99, 1145.84, 3, 265.77, 1141.03, 4, 322.80, 1123.64);
multiTouch4(5, 899.81, 1145.84, 6, 962.64, 1122.67, 7, 1017.73, 1156.46, 8, 1120.18, 1128.46);
multiTouch4(1, 1211.03, 1108.12, 2, 948.14, 895.75, 3, 1018.70, 886.08, 4, 1092.15, 897.67);
multiTouch4(5, 1190.74, 888.98, 6, 1028.36, 648.56, 7, 1135.64, 653.38, 8, 1219.73, 665.94);
multiTouch4(1, 262.88, 1082.13, 2, 1132.75, 527.84, 3, 1058.32, 527.84, 4, 931.71, 550.08);
multiTouch4(5, 250.31, 576.12, 6, 1167.54, 505.64, 7, 1162.71, 602.20, 8, 1192.67, 788.58);
multiTouch4(1, 27.04, 802.09, 2, 1016.76, 855.19, 3, 147.86, 1037.70, 4, 126.60, 790.50);
multiTouch4(5, 1220.70, 625.38, 6, 150.76, 642.76, 7, 989.70, 520.13, 8, 105.33, 516.25);
multiTouch4(1, 1199.44, 383.00, 2, 981.00, 407.16, 3, 205.85, 422.59, 4, 1200.40, 477.64);
multiTouch2(1, 1096.98, 358.88, 2, 312.17, 448.67);
end
function multiTouch1(id1,x1,y1)
if getColor(x1, y1) == adOkColor then
adNoSelect();
else
touchDown(id1, x1, y1);
usleep(ms);
touchUp(id1, x1, y1);
usleep(ms);
end
end
function multiTouch2(id1,x1,y1, id2,x2,y2)
--[[
if getColor(x1, y1) == adOkColor or
getColor(x2, y2) == adOkColor then
adNoSelect();
else ]]--
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
usleep(ms);
-- end
end
function multiTouch3(id1,x1,y1, id2,x2,y2, id3,x3,y3)
--[[
if getColor(x1, y1) == adOkColor or
getColor(x2, y2) == adOkColor or
getColor(x3, y3) == adOkColor then
adNoSelect();
else ]]--
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
usleep(ms);
-- end
end
function multiTouch4(id1,x1,y1, id2,x2,y2, id3,x3,y3, id4,x4,y4)
--[[
if getColor(x1, y1) == adOkColor or
getColor(x2, y2) == adOkColor or
getColor(x3, y3) == adOkColor or
getColor(x4, y4) == adOkColor then
adNoSelect();
else ]]--
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
touchDown(id4, x4, y4);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
touchUp(id4, x4, y4);
usleep(ms);
-- end
end
-- 광고버튼 무시하기
local adNoButton = 16417035; -- (150.00, 1700.00)
local adYesButton = 2728910; -- (1000.00, 1700.00)
function adPopupCancel()
if getColor(150.00, 1700.00) == adNoButton then
multiTouch1(9, 150.00, 1700.00);
end
end
-- 친구들렙업하기(상위로훑으며)
function friendsLvUpD2U()
for variable = 2080, 1340, -50 do
adPopupCancel();
--[[
local bool = true;
-- 랩업회색버튼의수
for c = 150, 200, 1 do
if getColor(1217.00, variable) == rgbToInt(c, c, c) then
bool = false;
break;
end
end
if bool then
]]--
for push = 1, 4, 1 do
multiTouch1(1, 1217.00, variable);
end
-- end
end
end
function friendsTabScrollDn()
touchDown(1, 100.00, 2060);usleep(ms);
for variable = 2000, 1500, -20 do
touchMove(1, 100, variable);usleep(ms);
end
touchUp(1, 100.00, 1440);usleep(ms);
end
function friendsTabScrollUp()
touchDown(1, 100.00, 1440);usleep(ms);
for variable = 1500, 2000, 20 do
touchMove(1, 100, variable);usleep(ms);
end
touchUp(1, 100.00, 2060);usleep(ms);
end
-- 스크롤 최하단으로 내리기
function friendsTabScrollLast()
for variable = 0, 2, 1 do
touchDown(1, 620.49, 1936.68);usleep(ms);
touchMove(1, 616.62, 1813.10);usleep(ms);
touchMove(1, 657.22, 1504.09);usleep(ms);
touchMove(1, 754.83, 1001.01);usleep(ms);
touchMove(1, 933.64, 371.41);usleep(ms);
touchUp(1, 1055.42, 60.51);usleep(ms*50);
end
end
-- 스크롤 최상단으로 올리기
function friendsTabScrollFirst()
for variable = 0, 2, 1 do
touchDown(1, 700, 1400);usleep(ms);
touchMove(1, 700, 1450);usleep(ms);
touchMove(1, 700, 1600);usleep(ms);
touchMove(1, 700, 1800);usleep(ms);
touchMove(1, 700, 2000);usleep(ms);
touchMove(1, 700, 2150);usleep(ms);
touchUp(1, 700, 2200);usleep(ms*50);
end
end
-- 보스전 상태에서 보스전 비활성화때 보스전으로 들어가기
function enableBossAttack()
if getColor(960.00, 60.00) == 15691794 and
getColor(1107.00, 93.00) ~= 16777215 then
multiTouch1(1, 960.00, 60.00);
end
end
-- 친구들리스트탭활성화 (비활성:6422304, 활성:10616662)
function enableFriendList()
for loop = 0, 2, 1 do
-- 시작전 유휴시간
usleep(ms*50);
if getColor(312.17, 2181.01) == 6422304 then
multiTouch1(1, 312.17, 2181.01);
end
end
end
--[ main ]-----------------------------------------
-- 친구들리스트활성화
enableFriendList();
-- 스크롤 최하단으로 내리기
friendsTabScrollLast();
while true do
friendsLvUpD2U();
enableBossAttack();
for variableLoop = 1, 10, 1 do
adPopupCancel();
attackOfPet();
end
end
TT2_99.getColor.lua
CREATETIME="2017-02-05 02:40:30";
adaptResolution(1242, 2208);
adaptOrientation(ORIENTATION_TYPE.PORTRAIT);
function pickColor(s, x, y)
local c = getColor(x, y);
local r, g, b = intToRgb(c);
local result = findColor(c, 1, {x, y, 1, 1});
for i, v in pairs(result) do
--[[
touchDown(9, x, y);
usleep(250000.00);
touchUp(9, x, y);
usleep(250000.00);
]]--
alert(string.format("c:%d, x:%f, y:%f", c, v[1], v[2]) .."\n"..
string.format("R:%d, G:%d, B:%d", r, g, b));
end
end
function searchOfColor(c, x1, y1, x2, y2)
local r, g, b = intToRgb(c);
local result = findColor(c, 1, {x1, y1, x2-x1, y2-y1});
for x = x1, x2, 1 do
for y = y1, y2, 1 do
log("c:%d, x:%f, y:%f", intToRgb(getColor(x, y)), x, y)
end
end
for i, v in pairs(result) do
alert(string.format("c:%d, x:%f, y:%f", c, v[1], v[2]) .."\n"..
string.format("R:%d, G:%d, B:%d", r, g, b));
end
end
--[[
local bool = true;
-- 랩업회색버튼의수
for c = 150, 200, 1 do
if getColor(1217.00, variable) == rgbToInt(c, c, c) then
bool = false;
break;
end
end
if bool then
]]--
---------------------------
-- 전투나가기 16777215 (1107.00, 93.00)
-- 보스전투빨강 15691794 (960.00, 60.00)
-- 주인공탭 11653343 (94.00, 2157.00)
-- 하트탭 16003853 (930.00, 2172.00)
-- 별탭 4599928 (1144.00, 2148.00)
-- 프랜즈정보창 4405296 (1114.00, 375.00)
-- 구매최대버튼 4280659 (1200.00, 1400.00)
-- 데이몬아이콘 5056285 (122.00, 2017.00)
-- 친구랩업회색 10987431 (1216.00, y1)
-- 친구랩업파랑 6078693 (1216.00, y1)
-- 광고 괜찮습 16417035 (150.00, 1700.00)
-- 광고 시계 2728910 (1000.00, 1700.00)
-- 클랜워닫기 4405296 (1106.00, 127.00)
---------------------------
-- 컬러추출
pickColor(2, 1217.00, 1400.00);
-- 보스전투
-- searchOfColor(6361855, 950, 60, 1050, 80);
----------------------------------------------------[ 과거절취선 ]----------------------------------------------------
01. TT2_주인공랩업.lua
CREATETIME="2017-02-03 00:44:52";
adaptResolution(1242, 2208);
adaptOrientation(ORIENTATION_TYPE.PORTRAIT);
-- 14500 : 581
-- 15000 : 584
-- 15250 : 580
-- 15500 : 580
-- 16000 : 579
-- 16500 : 577
-- 17500 : 569
local ms = 25000.00;
function attackOfPet()
multiTouch4(1, 608.89, 480.50, 2, 926.88, 767.32, 3, 601.16, 486.34, 4, 179.75, 549.10)
multiTouch4(5, 830.22, 551.02, 6, 287.04, 867.76, 7, 309.27, 582.90, 8, 924.94, 640.84);
multiTouch4(1, 1051.56, 520.13, 2, 245.48, 524.00, 3, 825.39, 1058.95, 4, 897.88, 511.44);
multiTouch4(5, 426.22, 518.21, 6, 230.01, 616.69, 7, 389.49, 631.17, 8, 599.22, 530.74);
multiTouch4(1, 857.29, 649.54, 2, 1079.59, 635.99, 3, 213.58, 493.11, 4, 323.77, 572.28);
multiTouch4(5, 218.42, 750.10, 6, 363.39, 750.30, 7, 219.38, 823.35, 8, 389.49, 807.89);
multiTouch4(1, 591.49, 1006.80, 2, 714.24, 1065.69, 3, 920.11, 1098.54, 4, 1080.55, 1093.72);
multiTouch4(5, 884.35, 970.11, 6, 1034.16, 962.40, 7, 854.39, 886.08, 8, 1027.39, 862.94);
multiTouch4(1, 207.78, 967.21, 2, 376.92, 956.60, 3, 213.58, 1074.39, 4, 352.76, 1071.49);
multiTouch4(5, 857.29, 766.38, 6, 1044.79, 749.94, 7, 1023.53, 1006.80, 8, 203.92, 1051.21);
multiTouch2(1, 60.87, 623.46, 2, 84.07, 914.12);
end
function attackOfFriends()
multiTouch4(1, 56.04, 520.13, 2, 36.71, 646.64, 3, 103.40, 666.92, 4, 203.92, 647.58);
multiTouch4(5, 31.88, 855.19, 6, 82.14, 862.94, 7, 189.42, 857.14, 8, 196.19, 849.39);
multiTouch4(1, 57.97, 1135.23, 2, 172.99, 1145.84, 3, 265.77, 1141.03, 4, 322.80, 1123.64);
multiTouch4(5, 899.81, 1145.84, 6, 962.64, 1122.67, 7, 1017.73, 1156.46, 8, 1120.18, 1128.46);
multiTouch4(1, 1211.03, 1108.12, 2, 948.14, 895.75, 3, 1018.70, 886.08, 4, 1092.15, 897.67);
multiTouch4(5, 1190.74, 888.98, 6, 1028.36, 648.56, 7, 1135.64, 653.38, 8, 1219.73, 665.94);
multiTouch4(1, 262.88, 1082.13, 2, 1132.75, 527.84, 3, 1058.32, 527.84, 4, 931.71, 550.08);
multiTouch4(5, 250.31, 576.12, 6, 1167.54, 505.64, 7, 1162.71, 602.20, 8, 1192.67, 788.58);
multiTouch4(1, 27.04, 802.09, 2, 1016.76, 855.19, 3, 147.86, 1037.70, 4, 126.60, 790.50);
multiTouch4(5, 1220.70, 625.38, 6, 150.76, 642.76, 7, 989.70, 520.13, 8, 105.33, 516.25);
multiTouch4(1, 1199.44, 383.00, 2, 981.00, 407.16, 3, 205.85, 422.59, 4, 1200.40, 477.64);
multiTouch2(1, 1096.98, 358.88, 2, 312.17, 448.67);
end
function multiTouch1(id1,x1,y1)
touchDown(id1, x1, y1);
usleep(ms);
touchUp(id1, x1, y1);
usleep(ms);
end
function multiTouch2(id1,x1,y1, id2,x2,y2)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
usleep(ms);
end
function multiTouch3(id1,x1,y1, id2,x2,y2, id3,x3,y3)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
usleep(ms);
end
function multiTouch4(id1,x1,y1, id2,x2,y2, id3,x3,y3, id4,x4,y4)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
touchDown(id4, x4, y4);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
touchUp(id4, x4, y4);
usleep(ms);
end
function multiTouch8(id1,x1,y1, id2,x2,y2, id3,x3,y3, id4,x4,y4, id5,x5,y5, id6,x6,y6, id7,x7,y7, id8,x8,y8)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
touchDown(id4, x4, y4);
touchDown(id5, x5, y5);
touchDown(id6, x6, y6);
touchDown(id7, x7, y7);
touchDown(id8, x8, y8);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
touchUp(id4, x4, y4);
touchUp(id5, x5, y5);
touchUp(id6, x6, y6);
touchUp(id7, x7, y7);
touchUp(id8, x8, y8);
usleep(ms);
end
-- 광고버튼 무시하기
local adNoButton = 16417035; -- (150.00, 1700.00)
local adYesButton = 2728910; -- (1000.00, 1700.00)
function adPopupCancel()
if getColor(150.00, 1700.00) == adNoButton then
multiTouch1(9, 150.00, 1700.00);
end
end
-- 보스전 상태에서 보스전 비활성화때 보스전으로 들어가기
function enableBossAttack()
if getColor(960.00, 60.00) == 15691794 and
getColor(1107.00, 93.00) ~= 16777215 then
multiTouch1(1, 960.00, 60.00);
end
end
-- 스크롤 최상단으로 올리기
function friendsTabScrollFirst()
for variable = 0, 2, 1 do
touchDown(1, 700, 1400);usleep(ms);
touchMove(1, 700, 1450);usleep(ms);
touchMove(1, 700, 1600);usleep(ms);
touchMove(1, 700, 1800);usleep(ms);
touchMove(1, 700, 2000);usleep(ms);
touchMove(1, 700, 2150);usleep(ms);
touchUp(1, 700, 2200);usleep(ms*50);
end
end
-- 주인공탭 활성화
function enableHeroTab()
for loop = 0, 2, 1 do
-- 시작전 유휴시간
usleep(ms*50);
if getColor(94.00, 2157.00) ~= 11653343 then
multiTouch1(1, 94.00, 2157.00);
end
end
end
--[ main ]-----------------------------------------
-- 주인공탭 활성화
enableHeroTab();
-- 스크롤 최상단으로 올리기
friendsTabScrollFirst();
while true do
for variable = 0, 5, 1 do
attackOfPet();
attackOfFriends();
adPopupCancel();
end
-- [LevelUp]
multiTouch1(1, 1216.00, 1568.81);
enableBossAttack();
end
02. TT2_친구들 마지막 까지 스크롤 하여 4명에 대하여 랩업.lua
CREATETIME="2017-02-03 00:44:35";
adaptResolution(1242, 2208);
adaptOrientation(ORIENTATION_TYPE.PORTRAIT);
-- 터치유휴시간
local ms = 15000.00;
function attackOfPet()
multiTouch4(1, 608.89, 480.50, 2, 926.88, 767.32, 3, 601.16, 486.34, 4, 179.75, 549.10)
multiTouch4(5, 830.22, 551.02, 6, 287.04, 867.76, 7, 309.27, 582.90, 8, 924.94, 640.84);
multiTouch4(1, 1051.56, 520.13, 2, 245.48, 524.00, 3, 825.39, 1058.95, 4, 897.88, 511.44);
multiTouch4(5, 426.22, 518.21, 6, 230.01, 616.69, 7, 389.49, 631.17, 8, 599.22, 530.74);
multiTouch4(1, 857.29, 649.54, 2, 1079.59, 635.99, 3, 213.58, 493.11, 4, 323.77, 572.28);
multiTouch4(5, 218.42, 750.10, 6, 363.39, 750.30, 7, 219.38, 823.35, 8, 389.49, 807.89);
multiTouch4(1, 591.49, 1006.80, 2, 714.24, 1065.69, 3, 920.11, 1098.54, 4, 1080.55, 1093.72);
multiTouch4(5, 884.35, 970.11, 6, 1034.16, 962.40, 7, 854.39, 886.08, 8, 1027.39, 862.94);
multiTouch4(1, 207.78, 967.21, 2, 376.92, 956.60, 3, 213.58, 1074.39, 4, 352.76, 1071.49);
multiTouch4(5, 857.29, 766.38, 6, 1044.79, 749.94, 7, 1023.53, 1006.80, 8, 203.92, 1051.21);
multiTouch2(1, 60.87, 623.46, 2, 84.07, 914.12);
end
function attackOfFriends()
multiTouch4(1, 56.04, 520.13, 2, 36.71, 646.64, 3, 103.40, 666.92, 4, 203.92, 647.58);
multiTouch4(5, 31.88, 855.19, 6, 82.14, 862.94, 7, 189.42, 857.14, 8, 196.19, 849.39);
multiTouch4(1, 57.97, 1135.23, 2, 172.99, 1145.84, 3, 265.77, 1141.03, 4, 322.80, 1123.64);
multiTouch4(5, 899.81, 1145.84, 6, 962.64, 1122.67, 7, 1017.73, 1156.46, 8, 1120.18, 1128.46);
multiTouch4(1, 1211.03, 1108.12, 2, 948.14, 895.75, 3, 1018.70, 886.08, 4, 1092.15, 897.67);
multiTouch4(5, 1190.74, 888.98, 6, 1028.36, 648.56, 7, 1135.64, 653.38, 8, 1219.73, 665.94);
multiTouch4(1, 262.88, 1082.13, 2, 1132.75, 527.84, 3, 1058.32, 527.84, 4, 931.71, 550.08);
multiTouch4(5, 250.31, 576.12, 6, 1167.54, 505.64, 7, 1162.71, 602.20, 8, 1192.67, 788.58);
multiTouch4(1, 27.04, 802.09, 2, 1016.76, 855.19, 3, 147.86, 1037.70, 4, 126.60, 790.50);
multiTouch4(5, 1220.70, 625.38, 6, 150.76, 642.76, 7, 989.70, 520.13, 8, 105.33, 516.25);
multiTouch4(1, 1199.44, 383.00, 2, 981.00, 407.16, 3, 205.85, 422.59, 4, 1200.40, 477.64);
multiTouch2(1, 1096.98, 358.88, 2, 312.17, 448.67);
end
function multiTouch1(id1,x1,y1)
if getColor(x1, y1) == adOkColor then
adNoSelect();
else
touchDown(id1, x1, y1);
usleep(ms);
touchUp(id1, x1, y1);
usleep(ms);
end
end
function multiTouch2(id1,x1,y1, id2,x2,y2)
--[[
if getColor(x1, y1) == adOkColor or
getColor(x2, y2) == adOkColor then
adNoSelect();
else ]]--
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
usleep(ms);
-- end
end
function multiTouch3(id1,x1,y1, id2,x2,y2, id3,x3,y3)
--[[
if getColor(x1, y1) == adOkColor or
getColor(x2, y2) == adOkColor or
getColor(x3, y3) == adOkColor then
adNoSelect();
else ]]--
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
usleep(ms);
-- end
end
function multiTouch4(id1,x1,y1, id2,x2,y2, id3,x3,y3, id4,x4,y4)
--[[
if getColor(x1, y1) == adOkColor or
getColor(x2, y2) == adOkColor or
getColor(x3, y3) == adOkColor or
getColor(x4, y4) == adOkColor then
adNoSelect();
else ]]--
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
touchDown(id4, x4, y4);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
touchUp(id4, x4, y4);
usleep(ms);
-- end
end
-- 광고버튼 무시하기
local adNoButton = 16417035; -- (150.00, 1700.00)
local adYesButton = 2728910; -- (1000.00, 1700.00)
function adPopupCancel()
if getColor(150.00, 1700.00) == adNoButton then
multiTouch1(9, 150.00, 1700.00);
end
end
-- 친구들렙업하기(상위로훑으며)
function friendsLvUpD2U()
for variable = 2080, 1340, -50 do
adPopupCancel();
--[[
local bool = true;
-- 랩업회색버튼의수
for c = 150, 200, 1 do
if getColor(1217.00, variable) == rgbToInt(c, c, c) then
bool = false;
break;
end
end
if bool then
]]--
for push = 1, 4, 1 do
multiTouch1(1, 1217.00, variable);
end
-- end
end
end
function friendsTabScrollDn()
touchDown(1, 100.00, 2060);usleep(ms);
for variable = 2000, 1500, -20 do
touchMove(1, 100, variable);usleep(ms);
end
touchUp(1, 100.00, 1440);usleep(ms);
end
function friendsTabScrollUp()
touchDown(1, 100.00, 1440);usleep(ms);
for variable = 1500, 2000, 20 do
touchMove(1, 100, variable);usleep(ms);
end
touchUp(1, 100.00, 2060);usleep(ms);
end
-- 스크롤 최하단으로 내리기
function friendsTabScrollLast()
for variable = 0, 2, 1 do
touchDown(1, 620.49, 1936.68);usleep(ms);
touchMove(1, 616.62, 1813.10);usleep(ms);
touchMove(1, 657.22, 1504.09);usleep(ms);
touchMove(1, 754.83, 1001.01);usleep(ms);
touchMove(1, 933.64, 371.41);usleep(ms);
touchUp(1, 1055.42, 60.51);usleep(ms*50);
end
end
-- 스크롤 최상단으로 올리기
function friendsTabScrollFirst()
for variable = 0, 2, 1 do
touchDown(1, 700, 1400);usleep(ms);
touchMove(1, 700, 1450);usleep(ms);
touchMove(1, 700, 1600);usleep(ms);
touchMove(1, 700, 1800);usleep(ms);
touchMove(1, 700, 2000);usleep(ms);
touchMove(1, 700, 2150);usleep(ms);
touchUp(1, 700, 2200);usleep(ms*50);
end
end
-- 보스전 상태에서 보스전 비활성화때 보스전으로 들어가기
function enableBossAttack()
if getColor(960.00, 60.00) == 15691794 and
getColor(1107.00, 93.00) ~= 16777215 then
multiTouch1(1, 960.00, 60.00);
end
end
-- 친구들리스트탭활성화 (비활성:6422304, 활성:10616662)
function enableFriendList()
for loop = 0, 2, 1 do
-- 시작전 유휴시간
usleep(ms*50);
if getColor(312.17, 2181.01) == 6422304 then
multiTouch1(1, 312.17, 2181.01);
end
end
end
--[ main ]-----------------------------------------
-- 친구들리스트활성화
enableFriendList();
-- 스크롤 최하단으로 내리기
friendsTabScrollLast();
while true do
friendsLvUpD2U();
enableBossAttack();
for variableLoop = 1, 10, 1 do
adPopupCancel();
attackOfPet();
end
end
03. TT2_모든 친구들 골고루 랩업.lua
CREATETIME="2017-03-13 19:38:51";
adaptResolution(1242, 2208);
adaptOrientation(ORIENTATION_TYPE.PORTRAIT);
-- 터치유휴시간
local ms = 15000.00;
function attackOfPet()
multiTouch4(1, 608.89, 480.50, 2, 926.88, 767.32, 3, 601.16, 486.34, 4, 179.75, 549.10)
multiTouch4(5, 830.22, 551.02, 6, 287.04, 867.76, 7, 309.27, 582.90, 8, 924.94, 640.84);
multiTouch4(1, 1051.56, 520.13, 2, 245.48, 524.00, 3, 825.39, 1058.95, 4, 897.88, 511.44);
multiTouch4(5, 426.22, 518.21, 6, 230.01, 616.69, 7, 389.49, 631.17, 8, 599.22, 530.74);
multiTouch4(1, 857.29, 649.54, 2, 1079.59, 635.99, 3, 213.58, 493.11, 4, 323.77, 572.28);
multiTouch4(5, 218.42, 750.10, 6, 363.39, 750.30, 7, 219.38, 823.35, 8, 389.49, 807.89);
multiTouch4(1, 591.49, 1006.80, 2, 714.24, 1065.69, 3, 920.11, 1098.54, 4, 1080.55, 1093.72);
multiTouch4(5, 884.35, 970.11, 6, 1034.16, 962.40, 7, 854.39, 886.08, 8, 1027.39, 862.94);
multiTouch4(1, 207.78, 967.21, 2, 376.92, 956.60, 3, 213.58, 1074.39, 4, 352.76, 1071.49);
multiTouch4(5, 857.29, 766.38, 6, 1044.79, 749.94, 7, 1023.53, 1006.80, 8, 203.92, 1051.21);
multiTouch2(1, 60.87, 623.46, 2, 84.07, 914.12);
end
function attackOfFriends()
multiTouch4(1, 56.04, 520.13, 2, 36.71, 646.64, 3, 103.40, 666.92, 4, 203.92, 647.58);
multiTouch4(5, 31.88, 855.19, 6, 82.14, 862.94, 7, 189.42, 857.14, 8, 196.19, 849.39);
multiTouch4(1, 57.97, 1135.23, 2, 172.99, 1145.84, 3, 265.77, 1141.03, 4, 322.80, 1123.64);
multiTouch4(5, 899.81, 1145.84, 6, 962.64, 1122.67, 7, 1017.73, 1156.46, 8, 1120.18, 1128.46);
multiTouch4(1, 1211.03, 1108.12, 2, 948.14, 895.75, 3, 1018.70, 886.08, 4, 1092.15, 897.67);
multiTouch4(5, 1190.74, 888.98, 6, 1028.36, 648.56, 7, 1135.64, 653.38, 8, 1219.73, 665.94);
multiTouch4(1, 262.88, 1082.13, 2, 1132.75, 527.84, 3, 1058.32, 527.84, 4, 931.71, 550.08);
multiTouch4(5, 250.31, 576.12, 6, 1167.54, 505.64, 7, 1162.71, 602.20, 8, 1192.67, 788.58);
multiTouch4(1, 27.04, 802.09, 2, 1016.76, 855.19, 3, 147.86, 1037.70, 4, 126.60, 790.50);
multiTouch4(5, 1220.70, 625.38, 6, 150.76, 642.76, 7, 989.70, 520.13, 8, 105.33, 516.25);
multiTouch4(1, 1199.44, 383.00, 2, 981.00, 407.16, 3, 205.85, 422.59, 4, 1200.40, 477.64);
multiTouch2(1, 1096.98, 358.88, 2, 312.17, 448.67);
end
function multiTouch1(id1,x1,y1)
if getColor(x1, y1) == adOkColor then
adNoSelect();
else
touchDown(id1, x1, y1);
usleep(ms);
touchUp(id1, x1, y1);
usleep(ms);
end
end
function multiTouch2(id1,x1,y1, id2,x2,y2)
--[[
if getColor(x1, y1) == adOkColor or
getColor(x2, y2) == adOkColor then
adNoSelect();
else ]]--
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
usleep(ms);
-- end
end
function multiTouch3(id1,x1,y1, id2,x2,y2, id3,x3,y3)
--[[
if getColor(x1, y1) == adOkColor or
getColor(x2, y2) == adOkColor or
getColor(x3, y3) == adOkColor then
adNoSelect();
else ]]--
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
usleep(ms);
-- end
end
function multiTouch4(id1,x1,y1, id2,x2,y2, id3,x3,y3, id4,x4,y4)
--[[
if getColor(x1, y1) == adOkColor or
getColor(x2, y2) == adOkColor or
getColor(x3, y3) == adOkColor or
getColor(x4, y4) == adOkColor then
adNoSelect();
else ]]--
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
touchDown(id4, x4, y4);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
touchUp(id4, x4, y4);
usleep(ms);
-- end
end
-- 광고버튼 무시하기
local adNoButton = 16417035; -- (150.00, 1700.00)
local adYesButton = 2728910; -- (1000.00, 1700.00)
function adPopupCancel()
if getColor(150.00, 1700.00) == adNoButton then
multiTouch1(9, 150.00, 1700.00);
end
end
-- 친구들렙업하기(보이는 리스트 상에서 하→상)
function friendsLvUpD2U()
for variable = 2080, 1340, -50 do
adPopupCancel();
--[[
local bool = true;
-- 랩업회색버튼의수
for c = 150, 200, 1 do
if getColor(1217.00, variable) == rgbToInt(c, c, c) then
bool = false;
break;
end
end
if bool then
]]--
for push = 1, 4, 1 do
multiTouch1(1, 1217.00, variable);
attackOfPet();
end
-- end
end
end
-- 스크롤 약간 하단으로 내리기↓
function friendsTabScrollDn()
touchDown(1, 100.00, 2060);usleep(ms);
for variable = 2000, 1500, -40 do
touchMove(1, 100, variable);usleep(ms);
end
touchUp(1, 100.00, 1440);usleep(ms);
end
-- 스크롤 약간 상단으로 올리기↑
function friendsTabScrollUp()
touchDown(1, 100.00, 1440);usleep(ms);
for variable = 1500, 2000, 40 do
touchMove(1, 100, variable);usleep(ms);
end
touchUp(1, 100.00, 2060);usleep(ms);
end
-- 스크롤 최하단으로 내리기↓
function friendsTabScrollLast()
for variable = 1, 3, 1 do
touchDown(1, 620.49, 1936.68);usleep(ms);
touchMove(1, 616.62, 1813.10);usleep(ms);
touchMove(1, 657.22, 1504.09);usleep(ms);
touchMove(1, 754.83, 1001.01);usleep(ms);
touchMove(1, 933.64, 371.41);usleep(ms);
touchUp(1, 1055.42, 60.51);usleep(ms*50);
end
end
-- 스크롤 최상단으로 올리기↑
function friendsTabScrollFirst()
for variable = 1, 3, 1 do
touchDown(1, 700, 1400);usleep(ms);
touchMove(1, 700, 1450);usleep(ms);
touchMove(1, 700, 1600);usleep(ms);
touchMove(1, 700, 1800);usleep(ms);
touchMove(1, 700, 2000);usleep(ms);
touchMove(1, 700, 2150);usleep(ms);
touchUp(1, 700, 2200);usleep(ms*50);
end
end
-- 보스전 상태에서 보스전 비활성화때 보스전으로 들어가기
function enableBossAttack()
if getColor(960.00, 60.00) == 15691794 and
getColor(1107.00, 93.00) ~= 16777215 then
multiTouch1(1, 960.00, 60.00);
end
end
-- 친구들리스트탭활성화 (비활성:6422304, 활성:10616662)
function enableFriendsTab()
for loop = 0, 2, 1 do
-- 시작전 유휴시간
usleep(ms*50);
if getColor(312.17, 2181.01) == 6422304 then
multiTouch1(1, 312.17, 2181.01);
end
end
end
--[ main ]-----------------------------------------
while true do
-- 친구들리스트활성화
enableFriendsTab()
friendsTabScrollLast();
for i = 1, 10, 1 do
-- 친구들랩업 스크롤 중 구매최대 버튼까지 도달시 반복문 끝냄
if getColor(1200.00, 1400.00) == 4280659 then
return;
else
friendsLvUpD2U();
friendsTabScrollUp();
enableBossAttack();
end
end
for i = 1, 10, 1 do
attackOfPet();
end
end
04. TT2_랩2800이상 도달시 핀, 노니, 데이먼 중 하나만 집중 랩업.lua
CREATETIME="2017-03-10 08:22:02";
adaptResolution(1242, 2208);
adaptOrientation(ORIENTATION_TYPE.PORTRAIT);
local ms = 25000.00;
function multiTouch1(id1,x1,y1)
touchDown(id1, x1, y1);
usleep(ms);
touchUp(id1, x1, y1);
usleep(ms);
end
function multiTouch2(id1,x1,y1, id2,x2,y2)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
usleep(ms);
end
function multiTouch3(id1,x1,y1, id2,x2,y2, id3,x3,y3)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
usleep(ms);
end
function multiTouch4(id1,x1,y1, id2,x2,y2, id3,x3,y3, id4,x4,y4)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
touchDown(id4, x4, y4);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
touchUp(id4, x4, y4);
usleep(ms);
end
function multiTouch8(id1,x1,y1, id2,x2,y2, id3,x3,y3, id4,x4,y4, id5,x5,y5, id6,x6,y6, id7,x7,y7, id8,x8,y8)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
touchDown(id4, x4, y4);
touchDown(id5, x5, y5);
touchDown(id6, x6, y6);
touchDown(id7, x7, y7);
touchDown(id8, x8, y8);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
touchUp(id4, x4, y4);
touchUp(id5, x5, y5);
touchUp(id6, x6, y6);
touchUp(id7, x7, y7);
touchUp(id8, x8, y8);
usleep(ms);
end
function attackOfPet()
multiTouch4(1, 608.89, 480.50, 2, 926.88, 767.32, 3, 601.16, 486.34, 4, 179.75, 549.10)
multiTouch4(5, 830.22, 551.02, 6, 287.04, 867.76, 7, 309.27, 582.90, 8, 924.94, 640.84);
multiTouch4(1, 1051.56, 520.13, 2, 245.48, 524.00, 3, 825.39, 1058.95, 4, 897.88, 511.44);
multiTouch4(5, 426.22, 518.21, 6, 230.01, 616.69, 7, 389.49, 631.17, 8, 599.22, 530.74);
multiTouch4(1, 857.29, 649.54, 2, 1079.59, 635.99, 3, 213.58, 493.11, 4, 323.77, 572.28);
multiTouch4(5, 218.42, 750.10, 6, 363.39, 750.30, 7, 219.38, 823.35, 8, 389.49, 807.89);
multiTouch4(1, 591.49, 1006.80, 2, 714.24, 1065.69, 3, 920.11, 1098.54, 4, 1080.55, 1093.72);
multiTouch4(5, 884.35, 970.11, 6, 1034.16, 962.40, 7, 854.39, 886.08, 8, 1027.39, 862.94);
multiTouch4(1, 207.78, 967.21, 2, 376.92, 956.60, 3, 213.58, 1074.39, 4, 352.76, 1071.49);
multiTouch4(5, 857.29, 766.38, 6, 1044.79, 749.94, 7, 1023.53, 1006.80, 8, 203.92, 1051.21);
multiTouch2(1, 60.87, 623.46, 2, 84.07, 914.12);
end
function attackOfFriends()
multiTouch4(1, 56.04, 520.13, 2, 36.71, 646.64, 3, 103.40, 666.92, 4, 203.92, 647.58);
multiTouch4(5, 31.88, 855.19, 6, 82.14, 862.94, 7, 189.42, 857.14, 8, 196.19, 849.39);
multiTouch4(1, 57.97, 1135.23, 2, 172.99, 1145.84, 3, 265.77, 1141.03, 4, 322.80, 1123.64);
multiTouch4(5, 899.81, 1145.84, 6, 962.64, 1122.67, 7, 1017.73, 1156.46, 8, 1120.18, 1128.46);
multiTouch4(1, 1211.03, 1108.12, 2, 948.14, 895.75, 3, 1018.70, 886.08, 4, 1092.15, 897.67);
multiTouch4(5, 1190.74, 888.98, 6, 1028.36, 648.56, 7, 1135.64, 653.38, 8, 1219.73, 665.94);
multiTouch4(1, 262.88, 1082.13, 2, 1132.75, 527.84, 3, 1058.32, 527.84, 4, 931.71, 550.08);
multiTouch4(5, 250.31, 576.12, 6, 1167.54, 505.64, 7, 1162.71, 602.20, 8, 1192.67, 788.58);
multiTouch4(1, 27.04, 802.09, 2, 1016.76, 855.19, 3, 147.86, 1037.70, 4, 126.60, 790.50);
multiTouch4(5, 1220.70, 625.38, 6, 150.76, 642.76, 7, 989.70, 520.13, 8, 105.33, 516.25);
multiTouch4(1, 1199.44, 383.00, 2, 981.00, 407.16, 3, 205.85, 422.59, 4, 1200.40, 477.64);
multiTouch2(1, 1096.98, 358.88, 2, 312.17, 448.67);
end
-- 스크롤 최하단으로 내리기
function friendsTabScrollLast()
for variable = 0, 2, 1 do
touchDown(1, 620.49, 1936.68);usleep(ms);
touchMove(1, 616.62, 1813.10);usleep(ms);
touchMove(1, 657.22, 1504.09);usleep(ms);
touchMove(1, 754.83, 1001.01);usleep(ms);
touchMove(1, 933.64, 371.41);usleep(ms);
touchUp(1, 1055.42, 60.51);usleep(ms*50);
end
end
-- 광고버튼 무시하기
local adNoButton = 16417035; -- (150.00, 1700.00)
local adYesButton = 2728910; -- (1000.00, 1700.00)
function adPopupCancel()
if getColor(150.00, 1700.00) == adNoButton then
multiTouch1(1, 150.00, 1700.00);
end
end
-- 보스전 상태에서 보스전 비활성화때 보스전으로 들어가기
function enableBossAttack()
if getColor(960.00, 60.00) == 15691794 and
getColor(1107.00, 93.00) ~= 16777215 then
multiTouch1(1, 960.00, 60.00);
end
end
-- 친구들리스트탭 활성화 (비활성:6422304, 활성:10616662)
function enableFriendsTab()
for loop = 0, 2, 1 do
-- 시작전 유휴시간
usleep(ms*50);
if getColor(312.17, 2181.01) == 6422304 then
multiTouch1(1, 312.17, 2181.01);
end
end
end
--[ main ]-----------------------------------------
-- 친구들리스트탭 활성화
enableFriendsTab();
-- 스크롤 최하단으로 내리기
friendsTabScrollLast();
while true do
for variable = 0, 10, 1 do
attackOfPet();
adPopupCancel();
enableBossAttack();
end
-- DamonLevelUp
for push = 1, 4, 1 do
multiTouch1(1, 1217.00, 2020.00);
end
end
05. TT2_ 클랜전 난타, 클랜전이 끝난 후 자동 랩업 모드로 변경됨.lua
CREATETIME="2017-02-03 00:44:52";
adaptResolution(1242, 2208);
adaptOrientation(ORIENTATION_TYPE.PORTRAIT);
-- 터치유휴시간:타격량
-- 14500 : 581
-- 15000 : 584
-- 15250 : 580
-- 15500 : 580
-- 16000 : 579
-- 16500 : 577
-- 17500 : 569
local ms = 15000.00;
function attackOfPet()
multiTouch4(1, 608.89, 480.50, 2, 926.88, 767.32, 3, 601.16, 486.34, 4, 179.75, 549.10)
multiTouch4(5, 830.22, 551.02, 6, 287.04, 867.76, 7, 309.27, 582.90, 8, 924.94, 640.84);
multiTouch4(1, 1051.56, 520.13, 2, 245.48, 524.00, 3, 825.39, 1058.95, 4, 897.88, 511.44);
multiTouch4(5, 426.22, 518.21, 6, 230.01, 616.69, 7, 389.49, 631.17, 8, 599.22, 530.74);
multiTouch4(1, 857.29, 649.54, 2, 1079.59, 635.99, 3, 213.58, 493.11, 4, 323.77, 572.28);
multiTouch4(5, 218.42, 750.10, 6, 363.39, 750.30, 7, 219.38, 823.35, 8, 389.49, 807.89);
multiTouch4(1, 591.49, 1006.80, 2, 714.24, 1065.69, 3, 920.11, 1098.54, 4, 1080.55, 1093.72);
multiTouch4(5, 884.35, 970.11, 6, 1034.16, 962.40, 7, 854.39, 886.08, 8, 1027.39, 862.94);
multiTouch4(1, 207.78, 967.21, 2, 376.92, 956.60, 3, 213.58, 1074.39, 4, 352.76, 1071.49);
multiTouch4(5, 857.29, 766.38, 6, 1044.79, 749.94, 7, 1023.53, 1006.80, 8, 203.92, 1051.21);
multiTouch2(1, 60.87, 623.46, 2, 84.07, 914.12);
end
function attackOfFriends()
multiTouch4(1, 56.04, 520.13, 2, 36.71, 646.64, 3, 103.40, 666.92, 4, 203.92, 647.58);
multiTouch4(5, 31.88, 855.19, 6, 82.14, 862.94, 7, 189.42, 857.14, 8, 196.19, 849.39);
multiTouch4(1, 57.97, 1135.23, 2, 172.99, 1145.84, 3, 265.77, 1141.03, 4, 322.80, 1123.64);
multiTouch4(5, 899.81, 1145.84, 6, 962.64, 1122.67, 7, 1017.73, 1156.46, 8, 1120.18, 1128.46);
multiTouch4(1, 1211.03, 1108.12, 2, 948.14, 895.75, 3, 1018.70, 886.08, 4, 1092.15, 897.67);
multiTouch4(5, 1190.74, 888.98, 6, 1028.36, 648.56, 7, 1135.64, 653.38, 8, 1219.73, 665.94);
multiTouch4(1, 262.88, 1082.13, 2, 1132.75, 527.84, 3, 1058.32, 527.84, 4, 931.71, 550.08);
multiTouch4(5, 250.31, 576.12, 6, 1167.54, 505.64, 7, 1162.71, 602.20, 8, 1192.67, 788.58);
multiTouch4(1, 27.04, 802.09, 2, 1016.76, 855.19, 3, 147.86, 1037.70, 4, 126.60, 790.50);
multiTouch4(5, 1220.70, 625.38, 6, 150.76, 642.76, 7, 989.70, 520.13, 8, 105.33, 516.25);
multiTouch4(1, 1199.44, 383.00, 2, 981.00, 407.16, 3, 205.85, 422.59, 4, 1200.40, 477.64);
multiTouch2(1, 1096.98, 358.88, 2, 312.17, 448.67);
end
function multiTouch1(id1,x1,y1)
if getColor(x1, y1) == adOkColor then
adNoSelect();
else
touchDown(id1, x1, y1);
usleep(ms);
touchUp(id1, x1, y1);
usleep(ms);
end
end
function multiTouch2(id1,x1,y1, id2,x2,y2)
--[[
if getColor(x1, y1) == adOkColor or
getColor(x2, y2) == adOkColor then
adNoSelect();
else ]]--
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
usleep(ms);
-- end
end
function multiTouch3(id1,x1,y1, id2,x2,y2, id3,x3,y3)
--[[
if getColor(x1, y1) == adOkColor or
getColor(x2, y2) == adOkColor or
getColor(x3, y3) == adOkColor then
adNoSelect();
else ]]--
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
usleep(ms);
-- end
end
function multiTouch4(id1,x1,y1, id2,x2,y2, id3,x3,y3, id4,x4,y4)
--[[
if getColor(x1, y1) == adOkColor or
getColor(x2, y2) == adOkColor or
getColor(x3, y3) == adOkColor or
getColor(x4, y4) == adOkColor then
adNoSelect();
else ]]--
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
touchDown(id4, x4, y4);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
touchUp(id4, x4, y4);
usleep(ms);
-- end
end
-- 광고버튼 무시하기
local adNoButton = 16417035; -- (150.00, 1700.00)
local adYesButton = 2728910; -- (1000.00, 1700.00)
function adPopupCancel()
if getColor(150.00, 1700.00) == adNoButton then
multiTouch1(9, 150.00, 1700.00);
end
end
-- 친구들렙업하기(상위로훑으며)
function friendsLvUpD2U()
for variable = 2080, 1340, -50 do
adPopupCancel();
--[[
local bool = true;
-- 랩업회색버튼의수
for c = 150, 200, 1 do
if getColor(1216.00, variable) == rgbToInt(c, c, c) then
bool = false;
break;
end
end
if bool then
]]--
for push = 1, 4, 1 do
multiTouch1(1, 1216.00, variable);
attackOfPet();
end
-- end
end
end
-- 스크롤 약간 하단으로 내리기
function friendsTabScrollDn()
touchDown(1, 100.00, 2060);usleep(ms);
for variable = 2000, 1500, -20 do
touchMove(1, 100, variable);usleep(ms);
end
touchUp(1, 100.00, 1440);usleep(ms);
end
-- 스크롤 약간 상단으로 올리기
function friendsTabScrollUp()
touchDown(1, 100.00, 1440);usleep(ms);
for variable = 1500, 2000, 20 do
touchMove(1, 100, variable);usleep(ms);
end
touchUp(1, 100.00, 2060);usleep(ms);
end
-- 스크롤 최하단으로 내리기
function friendsTabScrollLast()
for variable = 1, 3, 1 do
touchDown(1, 620.49, 1936.68);usleep(ms);
touchMove(1, 616.62, 1813.10);usleep(ms);
touchMove(1, 657.22, 1504.09);usleep(ms);
touchMove(1, 754.83, 1001.01);usleep(ms);
touchMove(1, 933.64, 371.41);usleep(ms);
touchUp(1, 1055.42, 60.51);usleep(ms*50);
end
end
-- 스크롤 최상단으로 올리기
function friendsTabScrollFirst()
for variable = 1, 3, 1 do
touchDown(1, 700, 1400);usleep(ms);
touchMove(1, 700, 1450);usleep(ms);
touchMove(1, 700, 1600);usleep(ms);
touchMove(1, 700, 1800);usleep(ms);
touchMove(1, 700, 2000);usleep(ms);
touchMove(1, 700, 2150);usleep(ms);
touchUp(1, 700, 2200);usleep(ms*50);
end
end
-- 보스전 상태에서 보스전 비활성화때 보스전으로 들어가기
function enableBossAttack()
if getColor(960.00, 60.00) == 15691794 and
getColor(1107.00, 93.00) ~= 16777215 then
multiTouch1(1, 960.00, 60.00);
end
end
-- 친구들리스트탭활성화 (비활성:6422304, 활성:10616662)
function enableFriendsTab()
for loop = 0, 2, 1 do
-- 시작전 유휴시간
usleep(ms*50);
if getColor(312.17, 2181.01) == 6422304 then
multiTouch1(1, 312.17, 2181.01);
end
end
end
function clanWarClose()
if getColor(1106.00, 127.00) == 4405296 then
multiTouch1(1, 1106.00, 127.00);
-- 클랜전 빠져나오기
return;
end
end
--[ main ]-----------------------------------------
--( 클랜전 )---------------
while true do
attackOfPet();
clanWarClose();
end
--( 친구들랩업 )------------
-- 친구들리스트탭 활성화
enableFriendsTab();
while true do
-- 친구들리스트활성화
enableFriendsTab()
friendsTabScrollLast();
for i = 1, 13, 1 do
-- 친구들랩업 스크롤 중 구매최대 버튼까지 도달시 반복문 끝냄
if getColor(1200.00, 1400.00) == 4280659 then
return;
else
friendsLvUpD2U();
friendsTabScrollUp();
enableBossAttack();
end
end
for i = 1, 10, 1 do
attackOfPet();
end
end
99. 좌표에 따른 색깔추출.lua
CREATETIME="2017-02-05 02:40:30";
adaptResolution(1242, 2208);
adaptOrientation(ORIENTATION_TYPE.PORTRAIT);
function pickColor(s, x, y)
local c = getColor(x, y);
local r, g, b = intToRgb(c);
local result = findColor(c, 1, {x, y, 1, 1});
for i, v in pairs(result) do
--[[
touchDown(9, x, y);
usleep(250000.00);
touchUp(9, x, y);
usleep(250000.00);
]]--
alert(string.format("c:%d, x:%f, y:%f", c, v[1], v[2]) .."\n"..
string.format("R:%d, G:%d, B:%d", r, g, b));
end
end
function searchOfColor(c, x1, y1, x2, y2)
local r, g, b = intToRgb(c);
local result = findColor(c, 1, {x1, y1, x2-x1, y2-y1});
for x = x1, x2, 1 do
for y = y1, y2, 1 do
log("c:%d, x:%f, y:%f", intToRgb(getColor(x, y)), x, y)
end
end
for i, v in pairs(result) do
alert(string.format("c:%d, x:%f, y:%f", c, v[1], v[2]) .."\n"..
string.format("R:%d, G:%d, B:%d", r, g, b));
end
end
---------------------------
-- 전투나가기 16777215 (1107.00, 93.00)
-- 보스전투빨강 15691794 (960.00, 60.00)
-- 주인공탭 11653343 (94.00, 2157.00)
-- 하트탭 16003853 (930.00, 2172.00)
-- 별탭 4599928 (1144.00, 2148.00)
-- 프랜즈정보창 4405296 (1114.00, 375.00)
-- 구매최대버튼 4280659 (1200.00, 1400.00)
-- 데이몬아이콘 5056285 (122.00, 2017.00)
-- 친구랩업회색 10987431 (1216.00, y1)
-- 친구랩업파랑 6078693 (1216.00, y1)
-- 광고 괜찮습 16417035 (150.00, 1700.00)
-- 광고 시계 2728910 (1000.00, 1700.00)
-- 클랜워닫기 4405296 (1106.00, 127.00)
---------------------------
-- 컬러추출
pickColor(2, 122, 2038);
-- 보스전투
-- searchOfColor(6361855, 950, 60, 1050, 80);
----------------------------------------------------[ 과거절취선 ]----------------------------------------------------
01. 주인공렙업.lua - 렙업버튼색깔인식, 광고무시
CREATETIME="2017-02-03 00:44:52";
adaptResolution(1242, 2208);
adaptOrientation(ORIENTATION_TYPE.PORTRAIT);
-- 14500 : 581
-- 15000 : 584
-- 15250 : 580
-- 15500 : 580
-- 16000 : 579
-- 16500 : 577
-- 17500 : 569
local ms = 25000.00;
function checkColor(color, x, y)
local result = findColor(color, 1, {x, y, 1, 1});
for i, v in pairs(result) do
usleep(ms);
touchDown(1, x, y);
usleep(ms);
touchUp(1, x, y);
usleep(ms);
-- alert(string.format("c:%d, x:%f, y:%f", color, v[1], v[2]));
end
end
function multiTouch1(id1,x1,y1)
touchDown(id1, x1, y1);
usleep(ms);
touchUp(id1, x1, y1);
usleep(ms);
end
function multiTouch2(id1,x1,y1, id2,x2,y2)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
usleep(ms);
end
function multiTouch3(id1,x1,y1, id2,x2,y2, id3,x3,y3)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
usleep(ms);
end
function multiTouch4(id1,x1,y1, id2,x2,y2, id3,x3,y3, id4,x4,y4)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
touchDown(id4, x4, y4);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
touchUp(id4, x4, y4);
usleep(ms);
end
function multiTouch8(id1,x1,y1, id2,x2,y2, id3,x3,y3, id4,x4,y4, id5,x5,y5, id6,x6,y6, id7,x7,y7, id8,x8,y8)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
touchDown(id4, x4, y4);
touchDown(id5, x5, y5);
touchDown(id6, x6, y6);
touchDown(id7, x7, y7);
touchDown(id8, x8, y8);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
touchUp(id4, x4, y4);
touchUp(id5, x5, y5);
touchUp(id6, x6, y6);
touchUp(id7, x7, y7);
touchUp(id8, x8, y8);
usleep(ms);
end
function diamondPushIgnore(i, x, y)
local color = getColor(x, y);
-- [다이아버튼컬러:3158064]
if color ~= 3158064 then
usleep(ms);
touchDown(i, x, y);
usleep(ms);
touchUp(i, x, y);
usleep(ms);
end
-- alert(string.format("c:%d, x:%f, y:%f", color, v[1], v[2]));
end
while true do
usleep(ms);
for variable = 0, 10, 1 do
multiTouch4(1, 608.89, 480.50, 2, 926.88, 767.32, 3, 601.16, 486.34, 4, 179.75, 549.10)
multiTouch4(5, 830.22, 551.02, 6, 287.04, 867.76, 7, 309.27, 582.90, 8, 924.94, 640.84);
multiTouch4(1, 1051.56, 520.13, 2, 245.48, 524.00, 3, 825.39, 1058.95, 4, 897.88, 511.44);
multiTouch4(5, 426.22, 518.21, 6, 230.01, 616.69, 7, 389.49, 631.17, 8, 599.22, 530.74);
multiTouch4(1, 857.29, 649.54, 2, 1079.59, 635.99, 3, 213.58, 493.11, 4, 323.77, 572.28);
multiTouch4(5, 218.42, 750.10, 6, 363.39, 750.30, 7, 219.38, 823.35, 8, 389.49, 807.89);
multiTouch4(1, 591.49, 1006.80, 2, 714.24, 1065.69, 3, 920.11, 1098.54, 4, 1080.55, 1093.72);
multiTouch4(5, 884.35, 970.11, 6, 1034.16, 962.40, 7, 854.39, 886.08, 8, 1027.39, 862.94);
multiTouch4(1, 207.78, 967.21, 2, 376.92, 956.60, 3, 213.58, 1074.39, 4, 352.76, 1071.49);
multiTouch4(5, 857.29, 766.38, 6, 1044.79, 749.94, 7, 1023.53, 1006.80, 8, 203.92, 1051.21);
multiTouch4(1, 56.04, 520.13, 2, 36.71, 646.64, 3, 103.40, 666.92, 4, 203.92, 647.58);
multiTouch4(5, 31.88, 855.19, 6, 82.14, 862.94, 7, 189.42, 857.14, 8, 196.19, 849.39);
multiTouch4(1, 57.97, 1135.23, 2, 172.99, 1145.84, 3, 265.77, 1141.03, 4, 322.80, 1123.64);
multiTouch4(5, 899.81, 1145.84, 6, 962.64, 1122.67, 7, 1017.73, 1156.46, 8, 1120.18, 1128.46);
multiTouch4(1, 1211.03, 1108.12, 2, 948.14, 895.75, 3, 1018.70, 886.08, 4, 1092.15, 897.67);
multiTouch4(5, 1190.74, 888.98, 6, 1028.36, 648.56, 7, 1135.64, 653.38, 8, 1219.73, 665.94);
multiTouch4(1, 262.88, 1082.13, 2, 1132.75, 527.84, 3, 1058.32, 527.84, 4, 931.71, 550.08);
multiTouch4(5, 250.31, 576.12, 6, 1167.54, 505.64, 7, 1162.71, 602.20, 8, 1192.67, 788.58);
multiTouch4(1, 27.04, 802.09, 2, 1016.76, 855.19, 3, 147.86, 1037.70, 4, 126.60, 790.50);
multiTouch4(5, 1220.70, 625.38, 6, 150.76, 642.76, 7, 989.70, 520.13, 8, 105.33, 516.25);
--------------------------------------
-- [광고버튼컬러:2862554]
checkColor(2862554, 340.20, 1666.31);
--------------------------------------
end
--------------------------------------
-- [LevelUp]
checkColor(8524543, 1157.87, 1568.81);
--------------------------------------
end
02. 영웅레벨업.lua - 실수로 다이아몬드 사용 무시
CREATETIME="2017-02-03 00:44:35";
adaptResolution(1242, 2208);
adaptOrientation(ORIENTATION_TYPE.PORTRAIT);
local ms = 25000.00;
function checkColor(color, x, y)
local result = findColor(color, 1, {x, y, 1, 1});
for i, v in pairs(result) do
usleep(ms);
touchDown(1, x, y);
usleep(ms);
touchUp(1, x, y);
usleep(ms);
-- alert(string.format("c:%d, x:%f, y:%f", color, v[1], v[2]));
end
end
function multiTouch1(id1,x1,y1)
touchDown(id1, x1, y1);
usleep(ms);
touchUp(id1, x1, y1);
usleep(ms);
end
function multiTouch2(id1,x1,y1, id2,x2,y2)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
usleep(ms);
end
function multiTouch3(id1,x1,y1, id2,x2,y2, id3,x3,y3)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
usleep(ms);
end
function multiTouch4(id1,x1,y1, id2,x2,y2, id3,x3,y3, id4,x4,y4)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
touchDown(id4, x4, y4);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
touchUp(id4, x4, y4);
usleep(ms);
end
function multiTouch8(id1,x1,y1, id2,x2,y2, id3,x3,y3, id4,x4,y4, id5,x5,y5, id6,x6,y6, id7,x7,y7, id8,x8,y8)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
touchDown(id4, x4, y4);
touchDown(id5, x5, y5);
touchDown(id6, x6, y6);
touchDown(id7, x7, y7);
touchDown(id8, x8, y8);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
touchUp(id4, x4, y4);
touchUp(id5, x5, y5);
touchUp(id6, x6, y6);
touchUp(id7, x7, y7);
touchUp(id8, x8, y8);
usleep(ms);
end
function diamondPushIgnore(i, x, y)
local color = getColor(x, y);
-- [다이아버튼컬러:3158064]
if color ~= 3158064 then
usleep(ms);
touchDown(i, x, y);
usleep(ms);
touchUp(i, x, y);
usleep(ms);
end
-- alert(string.format("c:%d, x:%f, y:%f", color, v[1], v[2]));
end
while true do
usleep(ms);
for variable = 0, 50, 1 do
multiTouch4(1, 608.89, 480.50, 2, 926.88, 767.32, 3, 601.16, 486.34, 4, 179.75, 549.10)
multiTouch4(5, 830.22, 551.02, 6, 287.04, 867.76, 7, 309.27, 582.90, 8, 924.94, 640.84);
multiTouch4(1, 1051.56, 520.13, 2, 245.48, 524.00, 3, 825.39, 1058.95, 4, 897.88, 511.44);
multiTouch4(5, 426.22, 518.21, 6, 230.01, 616.69, 7, 389.49, 631.17, 8, 599.22, 530.74);
multiTouch4(1, 857.29, 649.54, 2, 1079.59, 635.99, 3, 213.58, 493.11, 4, 323.77, 572.28);
multiTouch4(5, 218.42, 750.10, 6, 363.39, 750.30, 7, 219.38, 823.35, 8, 389.49, 807.89);
multiTouch4(1, 591.49, 1006.80, 2, 714.24, 1065.69, 3, 920.11, 1098.54, 4, 1080.55, 1093.72);
multiTouch4(5, 884.35, 970.11, 6, 1034.16, 962.40, 7, 854.39, 886.08, 8, 1027.39, 862.94);
multiTouch4(1, 207.78, 967.21, 2, 376.92, 956.60, 3, 213.58, 1074.39, 4, 352.76, 1071.49);
multiTouch4(5, 857.29, 766.38, 6, 1044.79, 749.94, 7, 1023.53, 1006.80, 8, 203.92, 1051.21);
multiTouch4(1, 56.04, 520.13, 2, 36.71, 646.64, 3, 103.40, 666.92, 4, 203.92, 647.58);
multiTouch4(5, 31.88, 855.19, 6, 82.14, 862.94, 7, 189.42, 857.14, 8, 196.19, 849.39);
multiTouch4(1, 57.97, 1135.23, 2, 172.99, 1145.84, 3, 265.77, 1141.03, 4, 322.80, 1123.64);
multiTouch4(5, 899.81, 1145.84, 6, 962.64, 1122.67, 7, 1017.73, 1156.46, 8, 1120.18, 1128.46);
multiTouch4(1, 1211.03, 1108.12, 2, 948.14, 895.75, 3, 1018.70, 886.08, 4, 1092.15, 897.67);
multiTouch4(5, 1190.74, 888.98, 6, 1028.36, 648.56, 7, 1135.64, 653.38, 8, 1219.73, 665.94);
multiTouch4(1, 262.88, 1082.13, 2, 1132.75, 527.84, 3, 1058.32, 527.84, 4, 931.71, 550.08);
multiTouch4(5, 250.31, 576.12, 6, 1167.54, 505.64, 7, 1162.71, 602.20, 8, 1192.67, 788.58);
multiTouch4(1, 27.04, 802.09, 2, 1016.76, 855.19, 3, 147.86, 1037.70, 4, 126.60, 790.50);
multiTouch4(5, 1220.70, 625.38, 6, 150.76, 642.76, 7, 989.70, 520.13, 8, 105.33, 516.25);
-- [광고버튼컬러:2862554]
------------------------------------
checkColor(2862554, 340.20, 1666.31);
------------------------------------
end
touchDown(7, 1017.73, 2005.25);
usleep(83383.33);
touchMove(7, 1015.80, 1988.84);
usleep(16644.71);
touchMove(7, 1015.80, 1975.33);
usleep(16553.00);
touchMove(7, 1013.86, 1956.97);
usleep(16652.17);
touchMove(7, 1005.16, 1932.84);
usleep(16895.67);
touchMove(7, 994.53, 1899.05);
usleep(16497.83);
touchMove(7, 986.80, 1846.90);
usleep(16649.17);
touchMove(7, 985.83, 1778.33);
usleep(16906.38);
touchMove(7, 984.87, 1726.18);
usleep(16620.67);
touchMove(7, 981.97, 1667.29);
usleep(16543.29);
touchMove(7, 979.07, 1593.91);
usleep(16769.79);
touchMove(7, 979.07, 1509.88);
usleep(16264.04);
touchUp(7, 973.27, 1504.09);
usleep(418384.79);
---------------------------------------
diamondPushIgnore(1, 1055.42, 1851.71);
diamondPushIgnore(2, 1055.42, 1829.51);
diamondPushIgnore(3, 1057.36, 1651.82);
diamondPushIgnore(4, 1064.12, 1645.08);
diamondPushIgnore(5, 1068.95, 1456.78);
diamondPushIgnore(6, 1054.46, 1450.99);
---------------------------------------
end
03. 클랜단타전.lua - 속도중심, 보조스크립트 제거
CREATETIME="2017-02-03 00:44:52";
adaptResolution(1242, 2208);
adaptOrientation(ORIENTATION_TYPE.PORTRAIT);
-- 14500 : 581
-- 15000 : 584
-- 15250 : 580
-- 15500 : 580
-- 16000 : 579
-- 16500 : 577
-- 17500 : 569
local ms = 15000.00;
function multiTouch4(id1,x1,y1, id2,x2,y2, id3,x3,y3, id4,x4,y4)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
touchDown(id3, x3, y3);
touchDown(id4, x4, y4);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
touchUp(id3, x3, y3);
touchUp(id4, x4, y4);
usleep(ms);
end
while true do
multiTouch4(1, 608.89, 480.50, 2, 926.88, 767.32, 3, 601.16, 486.34, 4, 179.75, 549.10)
multiTouch4(5, 830.22, 551.02, 6, 287.04, 867.76, 7, 309.27, 582.90, 8, 924.94, 640.84);
multiTouch4(1, 1051.56, 520.13, 2, 245.48, 524.00, 3, 825.39, 1058.95, 4, 897.88, 511.44);
multiTouch4(5, 426.22, 518.21, 6, 230.01, 616.69, 7, 389.49, 631.17, 8, 599.22, 530.74);
multiTouch4(1, 857.29, 649.54, 2, 1079.59, 635.99, 3, 213.58, 493.11, 4, 323.77, 572.28);
multiTouch4(5, 218.42, 750.10, 6, 363.39, 750.30, 7, 219.38, 823.35, 8, 389.49, 807.89);
multiTouch4(1, 591.49, 1006.80, 2, 714.24, 1065.69, 3, 920.11, 1098.54, 4, 1080.55, 1093.72);
multiTouch4(5, 884.35, 970.11, 6, 1034.16, 962.40, 7, 854.39, 886.08, 8, 1027.39, 862.94);
multiTouch4(1, 207.78, 967.21, 2, 376.92, 956.60, 3, 213.58, 1074.39, 4, 352.76, 1071.49);
multiTouch4(5, 857.29, 766.38, 6, 1044.79, 749.94, 7, 1023.53, 1006.80, 8, 203.92, 1051.21);
multiTouch4(1, 56.04, 520.13, 2, 36.71, 646.64, 3, 103.40, 666.92, 4, 203.92, 647.58);
multiTouch4(5, 31.88, 855.19, 6, 82.14, 862.94, 7, 189.42, 857.14, 8, 196.19, 849.39);
multiTouch4(1, 57.97, 1135.23, 2, 172.99, 1145.84, 3, 265.77, 1141.03, 4, 322.80, 1123.64);
multiTouch4(5, 899.81, 1145.84, 6, 962.64, 1122.67, 7, 1017.73, 1156.46, 8, 1120.18, 1128.46);
multiTouch4(1, 1211.03, 1108.12, 2, 948.14, 895.75, 3, 1018.70, 886.08, 4, 1092.15, 897.67);
multiTouch4(5, 1190.74, 888.98, 6, 1028.36, 648.56, 7, 1135.64, 653.38, 8, 1219.73, 665.94);
multiTouch4(1, 262.88, 1082.13, 2, 1132.75, 527.84, 3, 1058.32, 527.84, 4, 931.71, 550.08);
multiTouch4(5, 250.31, 576.12, 6, 1167.54, 505.64, 7, 1162.71, 602.20, 8, 1192.67, 788.58);
multiTouch4(1, 27.04, 802.09, 2, 1016.76, 855.19, 3, 147.86, 1037.70, 4, 126.60, 790.50);
multiTouch4(5, 1220.70, 625.38, 6, 150.76, 642.76, 7, 989.70, 520.13, 8, 105.33, 516.25);
end
----------------------------------------------------[ 과거절취선 ]----------------------------------------------------
01. 주인공렙업.lua - 렙업버튼색깔인식
CREATETIME="2017-02-03 00:44:52";
adaptResolution(1242, 2208);
adaptOrientation(ORIENTATION_TYPE.PORTRAIT);
local ms = 20000.00;
function checkColor(color, x, y)
local result = findColor(color, 1, {x, y, 1, 1});
for i, v in pairs(result) do
usleep(ms);
touchDown(1, x, y);
usleep(ms);
touchUp(1, x, y);
usleep(ms);
-- alert(string.format("c:%d, x:%f, y:%f", color, v[1], v[2]));
end
end
function multiTouch2(id1, x1, y1, id2, x2, y2)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
usleep(ms);
end
while true do
for variable = 0, 10, 1 do
multiTouch2(4, 608.89, 480.50, 6, 926.88, 767.32);
multiTouch2(2, 601.16, 486.34, 9, 179.75, 549.10);
multiTouch2(4, 830.22, 551.02, 3, 287.04, 867.76);
multiTouch2(4, 309.27, 582.90, 3, 924.94, 640.84);
multiTouch2(9, 1051.56, 520.13, 4, 245.48, 524.00);
multiTouch2(4, 825.39, 1058.95, 8, 897.88, 511.44);
multiTouch2(9, 426.22, 518.21, 1, 230.01, 616.69);
multiTouch2(3, 389.49, 631.17, 7, 599.22, 530.74);
multiTouch2(5, 857.29, 649.54, 8, 1079.59, 635.99);
multiTouch2(8, 213.58, 493.11, 2, 323.77, 572.28);
multiTouch2(6, 218.42, 750.10, 5, 363.39, 750.30);
multiTouch2(4, 219.38, 823.35, 8, 389.49, 807.89);
multiTouch2(7, 207.78, 967.21, 9, 376.92, 956.60);
multiTouch2(1, 213.58, 1074.39, 2, 352.76, 1071.49);
multiTouch2(3, 591.49, 1006.80, 6, 714.24, 1065.69);
multiTouch2(5, 920.11, 1098.54, 4, 1080.55, 1093.72);
multiTouch2(8, 884.35, 970.11, 7, 1034.16, 962.40);
multiTouch2(9, 854.39, 886.08, 1, 1027.39, 862.94);
multiTouch2(2, 857.29, 766.38, 3, 1044.79, 749.94);
end
--------------------------------------
-- [광고버튼컬러:2862554]
checkColor(2862554, 340.20, 1666.31);
-- [LevelUp]
checkColor(8524543, 1157.87, 1568.81);
----------------------------------------
end
02. 영웅레벨업.lua - 실수로 다이아몬드 사용 무시
CREATETIME="2017-02-03 00:44:35";
adaptResolution(1242, 2208);
adaptOrientation(ORIENTATION_TYPE.PORTRAIT);
local ms = 20000.00;
function checkColor(color, x, y)
local result = findColor(color, 1, {x, y, 1, 1});
for i, v in pairs(result) do
usleep(ms);
touchDown(1, x, y);
usleep(ms);
touchUp(1, x, y);
usleep(ms);
-- alert(string.format("c:%d, x:%f, y:%f", color, v[1], v[2]));
end
end
function multiTouch2(id1, x1, y1, id2, x2, y2)
touchDown(id1, x1, y1);
touchDown(id2, x2, y2);
usleep(ms);
touchUp(id1, x1, y1);
touchUp(id2, x2, y2);
usleep(ms);
end
function diamondPushIgnore(i, x, y)
local color = getColor(x, y);
-- [다이아버튼컬러:3158064]
if color ~= 3158064 then
usleep(ms);
touchDown(i, x, y);
usleep(ms);
touchUp(i, x, y);
usleep(ms);
end
-- alert(string.format("c:%d, x:%f, y:%f", color, v[1], v[2]));
end
while true do
for variable = 0, 50, 1 do
multiTouch2(4, 608.89, 480.50, 6, 926.88, 767.32);
multiTouch2(2, 601.16, 486.34, 9, 179.75, 549.10);
multiTouch2(4, 830.22, 551.02, 3, 287.04, 867.76);
multiTouch2(4, 309.27, 582.90, 3, 924.94, 640.84);
multiTouch2(9, 1051.56, 520.13, 4, 245.48, 524.00);
multiTouch2(4, 825.39, 1058.95, 8, 897.88, 511.44);
multiTouch2(9, 426.22, 518.21, 1, 230.01, 616.69);
multiTouch2(3, 389.49, 631.17, 7, 599.22, 530.74);
multiTouch2(5, 857.29, 649.54, 8, 1079.59, 635.99);
multiTouch2(8, 213.58, 493.11, 2, 323.77, 572.28);
multiTouch2(6, 218.42, 750.10, 5, 363.39, 750.30);
multiTouch2(4, 219.38, 823.35, 8, 389.49, 807.89);
multiTouch2(7, 207.78, 967.21, 9, 376.92, 956.60);
multiTouch2(1, 213.58, 1074.39, 2, 352.76, 1071.49);
multiTouch2(3, 591.49, 1006.80, 6, 714.24, 1065.69);
multiTouch2(5, 920.11, 1098.54, 4, 1080.55, 1093.72);
multiTouch2(8, 884.35, 970.11, 7, 1034.16, 962.40);
multiTouch2(9, 854.39, 886.08, 1, 1027.39, 862.94);
multiTouch2(2, 857.29, 766.38, 3, 1044.79, 749.94);
-- [광고버튼컬러:2862554]
------------------------------------
checkColor(2862554, 340.20, 1666.31);
------------------------------------
end
touchDown(7, 1017.73, 2005.25);
usleep(83383.33);
touchMove(7, 1015.80, 1988.84);
usleep(16644.71);
touchMove(7, 1015.80, 1975.33);
usleep(16553.00);
touchMove(7, 1013.86, 1956.97);
usleep(16652.17);
touchMove(7, 1005.16, 1932.84);
usleep(16895.67);
touchMove(7, 994.53, 1899.05);
usleep(16497.83);
touchMove(7, 986.80, 1846.90);
usleep(16649.17);
touchMove(7, 985.83, 1778.33);
usleep(16906.38);
touchMove(7, 984.87, 1726.18);
usleep(16620.67);
touchMove(7, 981.97, 1667.29);
usleep(16543.29);
touchMove(7, 979.07, 1593.91);
usleep(16769.79);
touchMove(7, 979.07, 1509.88);
usleep(16264.04);
touchUp(7, 973.27, 1504.09);
usleep(418384.79);
---------------------------------------
diamondPushIgnore(1, 1055.42, 1851.71);
diamondPushIgnore(2, 1055.42, 1829.51);
diamondPushIgnore(3, 1057.36, 1651.82);
diamondPushIgnore(4, 1064.12, 1645.08);
diamondPushIgnore(5, 1068.95, 1456.78);
diamondPushIgnore(6, 1054.46, 1450.99);
---------------------------------------
end
----------------------------------------------------[ 과거절취선 ]----------------------------------------------------
01. 주인공렙업.lua (OLD)
CREATETIME="2017-02-03 00:44:52";
adaptResolution(1242, 2208);
adaptOrientation(ORIENTATION_TYPE.PORTRAIT);
function pickColor(color, x, y)
local result = findColor(color, 1, {x, y, 1, 1});
for i, v in pairs(result) do
-- touchDown(1, 517.07, 1697.20);
-- usleep(650090.33);
-- touchUp(1, 517.07, 1697.20);
-- usleep(650090.33);
touchDown(2, x, y);
usleep(250000.00);
touchUp(2, x, y);
usleep(250000.00);
-- alert(string.format("Found pixel: x:%f, y:%f", v[1], v[2]));
end
end
for variable = 0, 20, 1 do
------------------------------------
pickColor(2862554, 340.20, 1666.31);
------------------------------------
touchDown(4, 309.27, 582.90);
usleep(13020.29);
touchUp(4, 309.27, 582.90);
usleep(13020.29);
touchDown(3, 924.94, 640.84);
usleep(16651.75);
touchUp(3, 924.94, 640.84);
usleep(16651.75);
touchDown(9, 1051.56, 520.13);
usleep(16633.04);
touchUp(9, 1051.56, 520.13);
usleep(16633.04);
touchDown(4, 245.48, 524.00);
usleep(16682.04);
touchUp(4, 245.48, 524.00);
usleep(16682.04);
touchDown(4, 825.39, 1058.95);
usleep(14903.88);
touchUp(4, 825.39, 1058.95);
usleep(14903.88);
touchDown(8, 897.88, 511.44);
usleep(13384.12);
touchUp(8, 897.88, 511.44);
usleep(13384.12);
touchDown(9, 426.22, 518.21);
usleep(16616.29);
touchUp(9, 426.22, 518.21);
usleep(16616.29);
touchDown(1, 230.01, 616.69);
usleep(15130.29);
touchUp(1, 230.01, 616.69);
usleep(13238.04);
touchDown(3, 389.49, 631.17);
usleep(18261.75);
touchUp(3, 389.49, 631.17);
usleep(10171.29);
touchDown(7, 599.22, 530.74);
usleep(16646.62);
touchUp(7, 599.22, 530.74);
usleep(10217.38);
touchDown(5, 857.29, 649.54);
usleep(14976.04);
touchUp(5, 857.29, 649.54);
usleep(13396.92);
touchDown(8, 1079.59, 635.99);
usleep(15003.08);
touchUp(8, 1079.59, 635.99);
usleep(15003.08);
touchDown(6, 218.42, 750.10);
usleep(15376.46);
touchUp(6, 218.42, 750.10);
usleep(16705.46);
touchDown(5, 363.39, 750.30);
usleep(14994.71);
touchUp(5, 363.39, 750.30);
usleep(10833.46);
touchDown(4, 219.38, 823.35);
usleep(18126.62);
touchUp(4, 219.38, 823.35);
usleep(13716.62);
touchDown(8, 389.49, 807.89);
usleep(13352.96);
touchUp(8, 389.49, 807.89);
usleep(17006.50);
touchDown(7, 207.78, 967.21);
usleep(11689.29);
touchUp(7, 207.78, 967.21);
usleep(16461.17);
touchDown(9, 376.92, 956.60);
usleep(14995.71);
touchUp(9, 376.92, 956.60);
usleep(10114.38);
touchDown(1, 213.58, 1074.39);
usleep(13325.75);
touchUp(1, 213.58, 1074.39);
usleep(13651.25);
touchDown(2, 352.76, 1071.49);
usleep(13247.67);
touchUp(2, 352.76, 1071.49);
usleep(13489.46);
touchDown(3, 591.49, 1006.80);
usleep(15013.79);
touchUp(3, 591.49, 1006.80);
usleep(10069.83);
touchDown(6, 714.24, 1065.69);
usleep(15038.42);
touchUp(6, 714.24, 1065.69);
usleep(13603.21);
touchDown(5, 920.11, 1098.54);
usleep(14999.38);
touchUp(5, 920.11, 1098.54);
usleep(13684.54);
touchDown(4, 1080.55, 1093.72);
usleep(16659.54);
touchUp(4, 1080.55, 1093.72);
usleep(13193.71);
touchDown(8, 884.35, 970.11);
usleep(16814.83);
touchUp(8, 884.35, 970.11);
usleep(13294.50);
touchDown(7, 1034.16, 962.40);
usleep(18272.21);
touchUp(7, 1034.16, 962.40);
usleep(16917.25);
touchDown(9, 854.39, 886.08);
usleep(15043.96);
touchUp(9, 854.39, 886.08);
usleep(16817.29);
touchDown(1, 1027.39, 862.94);
usleep(18287.54);
touchUp(1, 1027.39, 862.94);
usleep(13738.54);
touchDown(2, 857.29, 766.38);
usleep(16249.17);
touchUp(2, 857.29, 766.38);
usleep(13430.00);
touchDown(3, 1044.79, 749.94);
usleep(16520.46);
touchUp(3, 1044.79, 749.94);
usleep(16520.46);
end
touchDown(6, 1039.96, 1563.01);
usleep(16632.21);
touchUp(6, 1039.96, 1563.01);
usleep(16904.46);
touchDown(6, 1042.86, 1560.11);
usleep(16501.96);
touchUp(6, 1042.86, 1560.11);
usleep(16501.96);
02. 영웅레벨업.lua (OLD)
CREATETIME="2017-02-03 00:44:35";
adaptResolution(1242, 2208);
adaptOrientation(ORIENTATION_TYPE.PORTRAIT);
function pickColor(color, x, y)
local result = findColor(color, 1, {x, y, 1, 1});
for i, v in pairs(result) do
-- touchDown(1, 517.07, 1697.20);
-- usleep(650090.33);
-- touchUp(1, 517.07, 1697.20);
-- usleep(650090.33);
touchDown(2, x, y);
usleep(250000.00);
touchUp(2, x, y);
usleep(250000.00);
-- alert(string.format("Found pixel: x:%f, y:%f", v[1], v[2]));
end
end
for variable = 0, 50, 1 do
------------------------------------
pickColor(2862554, 340.20, 1666.31);
------------------------------------
touchDown(4, 309.27, 582.90);
usleep(13020.29);
touchUp(4, 309.27, 582.90);
usleep(13020.29);
touchDown(3, 924.94, 640.84);
usleep(16651.75);
touchUp(3, 924.94, 640.84);
usleep(16651.75);
touchDown(9, 1051.56, 520.13);
usleep(16633.04);
touchUp(9, 1051.56, 520.13);
usleep(16633.04);
touchDown(4, 245.48, 524.00);
usleep(16682.04);
touchUp(4, 245.48, 524.00);
usleep(16682.04);
touchDown(4, 825.39, 1058.95);
usleep(14903.88);
touchUp(4, 825.39, 1058.95);
usleep(14903.88);
touchDown(8, 897.88, 511.44);
usleep(13384.12);
touchUp(8, 897.88, 511.44);
usleep(13384.12);
touchDown(9, 426.22, 518.21);
usleep(16616.29);
touchUp(9, 426.22, 518.21);
usleep(16616.29);
touchDown(1, 230.01, 616.69);
usleep(15130.29);
touchUp(1, 230.01, 616.69);
usleep(13238.04);
touchDown(3, 389.49, 631.17);
usleep(18261.75);
touchUp(3, 389.49, 631.17);
usleep(10171.29);
touchDown(7, 599.22, 530.74);
usleep(16646.62);
touchUp(7, 599.22, 530.74);
usleep(10217.38);
touchDown(5, 857.29, 649.54);
usleep(14976.04);
touchUp(5, 857.29, 649.54);
usleep(13396.92);
touchDown(8, 1079.59, 635.99);
usleep(15003.08);
touchUp(8, 1079.59, 635.99);
usleep(15003.08);
touchDown(6, 218.42, 750.10);
usleep(15376.46);
touchUp(6, 218.42, 750.10);
usleep(16705.46);
touchDown(5, 363.39, 750.30);
usleep(14994.71);
touchUp(5, 363.39, 750.30);
usleep(10833.46);
touchDown(4, 219.38, 823.35);
usleep(18126.62);
touchUp(4, 219.38, 823.35);
usleep(13716.62);
touchDown(8, 389.49, 807.89);
usleep(13352.96);
touchUp(8, 389.49, 807.89);
usleep(17006.50);
touchDown(7, 207.78, 967.21);
usleep(11689.29);
touchUp(7, 207.78, 967.21);
usleep(16461.17);
touchDown(9, 376.92, 956.60);
usleep(14995.71);
touchUp(9, 376.92, 956.60);
usleep(10114.38);
touchDown(1, 213.58, 1074.39);
usleep(13325.75);
touchUp(1, 213.58, 1074.39);
usleep(13651.25);
touchDown(2, 352.76, 1071.49);
usleep(13247.67);
touchUp(2, 352.76, 1071.49);
usleep(13489.46);
touchDown(3, 591.49, 1006.80);
usleep(15013.79);
touchUp(3, 591.49, 1006.80);
usleep(10069.83);
touchDown(6, 714.24, 1065.69);
usleep(15038.42);
touchUp(6, 714.24, 1065.69);
usleep(13603.21);
touchDown(5, 920.11, 1098.54);
usleep(14999.38);
touchUp(5, 920.11, 1098.54);
usleep(13684.54);
touchDown(4, 1080.55, 1093.72);
usleep(16659.54);
touchUp(4, 1080.55, 1093.72);
usleep(13193.71);
touchDown(8, 884.35, 970.11);
usleep(16814.83);
touchUp(8, 884.35, 970.11);
usleep(13294.50);
touchDown(7, 1034.16, 962.40);
usleep(18272.21);
touchUp(7, 1034.16, 962.40);
usleep(16917.25);
touchDown(9, 854.39, 886.08);
usleep(15043.96);
touchUp(9, 854.39, 886.08);
usleep(16817.29);
touchDown(1, 1027.39, 862.94);
usleep(18287.54);
touchUp(1, 1027.39, 862.94);
usleep(13738.54);
touchDown(2, 857.29, 766.38);
usleep(16249.17);
touchUp(2, 857.29, 766.38);
usleep(13430.00);
touchDown(3, 1044.79, 749.94);
usleep(16520.46);
touchUp(3, 1044.79, 749.94);
usleep(16520.46);
end
touchDown(7, 1017.73, 2005.25);
usleep(83383.33);
touchMove(7, 1015.80, 1988.84);
usleep(16644.71);
touchMove(7, 1015.80, 1975.33);
usleep(16553.00);
touchMove(7, 1013.86, 1956.97);
usleep(16652.17);
touchMove(7, 1005.16, 1932.84);
usleep(16895.67);
touchMove(7, 994.53, 1899.05);
usleep(16497.83);
touchMove(7, 986.80, 1846.90);
usleep(16649.17);
touchMove(7, 985.83, 1778.33);
usleep(16906.38);
touchMove(7, 984.87, 1726.18);
usleep(16620.67);
touchMove(7, 981.97, 1667.29);
usleep(16543.29);
touchMove(7, 979.07, 1593.91);
usleep(16769.79);
touchMove(7, 979.07, 1509.88);
usleep(16264.04);
touchUp(7, 973.27, 1504.09);
usleep(1183845.79);
touchDown(3, 1055.42, 1851.71);
usleep(13347.29);
touchUp(3, 1055.42, 1851.71);
usleep(16770.38);
touchDown(3, 1055.42, 1829.51);
usleep(11728.62);
touchUp(3, 1055.42, 1829.51);
usleep(16806.17);
touchDown(6, 1057.36, 1651.82);
usleep(11692.54);
touchUp(6, 1057.36, 1651.82);
usleep(13411.92);
touchDown(6, 1064.12, 1645.08);
usleep(11654.62);
touchUp(6, 1064.12, 1645.08);
usleep(13331.08);
touchDown(5, 1068.95, 1456.78);
usleep(13396.83);
touchUp(5, 1068.95, 1456.78);
usleep(13302.33);
touchDown(5, 1054.46, 1450.99);
usleep(13315.88);
touchUp(5, 1054.46, 1450.99);
usleep(13315.88);
03.공격만하기.lua (OLD)
CREATETIME="2017-02-03 00:26:02";
adaptResolution(1242, 2208);
adaptOrientation(ORIENTATION_TYPE.PORTRAIT);
function pickColor(color, x, y)
local result = findColor(color, 1, {x, y, 1, 1});
for i, v in pairs(result) do
-- touchDown(1, 517.07, 1697.20);
-- usleep(650090.33);
-- touchUp(1, 517.07, 1697.20);
-- usleep(650090.33);
touchDown(2, x, y);
usleep(250000.00);
touchUp(2, x, y);
usleep(250000.00);
-- alert(string.format("Found pixel: x:%f, y:%f", v[1], v[2]));
end
end
for variable = 0, 50, 1 do
------------------------------------
pickColor(2862554, 340.20, 1666.31);
------------------------------------
touchDown(4, 309.27, 582.90);
usleep(13020.29);
touchUp(4, 309.27, 582.90);
usleep(13020.29);
touchDown(3, 924.94, 640.84);
usleep(16651.75);
touchUp(3, 924.94, 640.84);
usleep(16651.75);
touchDown(9, 1051.56, 520.13);
usleep(16633.04);
touchUp(9, 1051.56, 520.13);
usleep(16633.04);
touchDown(4, 245.48, 524.00);
usleep(16682.04);
touchUp(4, 245.48, 524.00);
usleep(16682.04);
touchDown(4, 825.39, 1058.95);
usleep(14903.88);
touchUp(4, 825.39, 1058.95);
usleep(14903.88);
touchDown(8, 897.88, 511.44);
usleep(13384.12);
touchUp(8, 897.88, 511.44);
usleep(13384.12);
touchDown(9, 426.22, 518.21);
usleep(16616.29);
touchUp(9, 426.22, 518.21);
usleep(16616.29);
touchDown(1, 230.01, 616.69);
usleep(15130.29);
touchUp(1, 230.01, 616.69);
usleep(13238.04);
touchDown(3, 389.49, 631.17);
usleep(18261.75);
touchUp(3, 389.49, 631.17);
usleep(10171.29);
touchDown(7, 599.22, 530.74);
usleep(16646.62);
touchUp(7, 599.22, 530.74);
usleep(10217.38);
touchDown(5, 857.29, 649.54);
usleep(14976.04);
touchUp(5, 857.29, 649.54);
usleep(13396.92);
touchDown(8, 1079.59, 635.99);
usleep(15003.08);
touchUp(8, 1079.59, 635.99);
usleep(15003.08);
touchDown(6, 218.42, 750.10);
usleep(15376.46);
touchUp(6, 218.42, 750.10);
usleep(16705.46);
touchDown(5, 363.39, 750.30);
usleep(14994.71);
touchUp(5, 363.39, 750.30);
usleep(10833.46);
touchDown(4, 219.38, 823.35);
usleep(18126.62);
touchUp(4, 219.38, 823.35);
usleep(13716.62);
touchDown(8, 389.49, 807.89);
usleep(13352.96);
touchUp(8, 389.49, 807.89);
usleep(17006.50);
touchDown(7, 207.78, 967.21);
usleep(11689.29);
touchUp(7, 207.78, 967.21);
usleep(16461.17);
touchDown(9, 376.92, 956.60);
usleep(14995.71);
touchUp(9, 376.92, 956.60);
usleep(10114.38);
touchDown(1, 213.58, 1074.39);
usleep(13325.75);
touchUp(1, 213.58, 1074.39);
usleep(13651.25);
touchDown(2, 352.76, 1071.49);
usleep(13247.67);
touchUp(2, 352.76, 1071.49);
usleep(13489.46);
touchDown(3, 591.49, 1006.80);
usleep(15013.79);
touchUp(3, 591.49, 1006.80);
usleep(10069.83);
touchDown(6, 714.24, 1065.69);
usleep(15038.42);
touchUp(6, 714.24, 1065.69);
usleep(13603.21);
touchDown(5, 920.11, 1098.54);
usleep(14999.38);
touchUp(5, 920.11, 1098.54);
usleep(13684.54);
touchDown(4, 1080.55, 1093.72);
usleep(16659.54);
touchUp(4, 1080.55, 1093.72);
usleep(13193.71);
touchDown(8, 884.35, 970.11);
usleep(16814.83);
touchUp(8, 884.35, 970.11);
usleep(13294.50);
touchDown(7, 1034.16, 962.40);
usleep(18272.21);
touchUp(7, 1034.16, 962.40);
usleep(16917.25);
touchDown(9, 854.39, 886.08);
usleep(15043.96);
touchUp(9, 854.39, 886.08);
usleep(16817.29);
touchDown(1, 1027.39, 862.94);
usleep(18287.54);
touchUp(1, 1027.39, 862.94);
usleep(13738.54);
touchDown(2, 857.29, 766.38);
usleep(16249.17);
touchUp(2, 857.29, 766.38);
usleep(13430.00);
touchDown(3, 1044.79, 749.94);
usleep(16520.46);
touchUp(3, 1044.79, 749.94);
usleep(16520.46);
end
04.getColor
CREATETIME="2017-02-05 02:40:30";
adaptResolution(1242, 2208);
adaptOrientation(ORIENTATION_TYPE.PORTRAIT);
function pickColor(x, y)
local c = getColor(x, y);
local r, g, b = intToRgb(c);
local result = findColor(c, 1, {x, y, 1, 1});
for i, v in pairs(result) do
touchDown(9, x, y);
usleep(250000.21);
touchUp(9, x, y);
alert(string.format("c:%d, x:%f, y:%f", c, v[1], v[2]));
alert(string.format("R:%d, G:%d, B:%d", r, g, b));
end
end
---------------------------
pickColor(340.20, 1666.31);
---------------------------