[按键精灵] 纯文本查看 复制代码
//--------------------------------------------
//---------------- 邀请好友 参数 ---------------
Dim 好友邀请面板,好友组,位置组,选中
好友邀请面板 = Array(110, 432, 182, 851, "5169DD", "32|-13|AFBFD8,0|231|5FB2F4,23|213|27439B,-22|330|254297,-26|-37|2B2B91,-11|69|AFBFD8")
// 好友,最近,跨区
好友组 = Array(Array(589, 372, 623, 438, "22272B", "-4|0|87B0E2,-3|-25|9EC7E8,-5|-29|202427,10|-26|8EB4D9,9|3|242A2F"),_
Array(588, 490, 624, 553, "202427", "-4|0|94BBDA,0|3|98C0DF,12|-1|2C343C,9|21|22272B,5|23|85ADDE,-5|34|252B30"),_
Array(589, 605, 624, 666, "9EC8E9", "2|9|212529,0|11|80A1C0,-4|21|202427,-7|23|8BB4E6,17|34|262C33"),_
Array(587,389,628,443),_
Array(589,488,620,547),_
Array(587,610,626,666))
位置组 = Array(Array(503, 594, 543, 639, 480, 453, 509, 555),_
Array(498, 885, 546, 934, 480, 730, 520, 831),_
Array(406, 591, 450, 642, 383, 452, 427, 567),_
Array(403, 886, 447, 934, 385, 743, 422, 864),_
Array(312, 595, 350, 636, 312, 595, 350, 636),_
Array(308, 888, 353, 930, 278, 735, 319, 878))
选中 = Array(位置组(好友位置, 0), 位置组(好友位置, 1), 位置组(好友位置, 2), 位置组(好友位置, 3), "B3CBCB", "7|2|FEFEFC,9|1|BA9832,18|14|A18005,2|19|887711,13|22|FCFDFF")
Function 邀请好友() //---------- 函数 ---------
If 是否邀请 = False Then
Exit Function
End If
Do
If 区域多点找色(好友邀请面板, false, 0, 0) Then
// 选择相应类型的好友列表
If 区域多点找色(好友组(好友类型), false, 0, 0) Then
If 区域多点找色(选中, false, 0, 0) Then
TracePrint "点击确认"
Call 区域点击(127, 734, 162, 807)
Delay 800
Exit Do
Else
TracePrint "选择好友"
Call 区域点击(位置组(好友位置, 4), 位置组(好友位置, 5), 位置组(好友位置, 6), 位置组(好友位置, 7))
Delay 800
End If
Else
TracePrint "选择好友类型"
Call 区域点击(好友组(好友类型 + 3, 0), 好友组(好友类型 + 3, 1), 好友组(好友类型 + 3, 2), 好友组(好友类型 + 3, 3))
Delay 800
End If
Else
TracePrint "打开好友邀请"
Call 区域点击(378, 1040, 552, 1153)
Delay 3000
End If
// 已经进入战斗
If 区域多点找色(御魂战斗界面_鬼火, false, 0, 0) or 区域多点找色(御魂战斗界面_加成, false, 0, 0)Then
Exit Do
End If
Delay 200
Loop
End Function
//--------------------------------------------
//---------------- 御魂战斗 参数 ---------------
//队长邀请
Dim 邀请面板_胜利,邀请面板_失败,默认已选中
邀请面板_胜利 = Array(237, 418, 475, 860, "452788", "-1|233|233B96,-5|277|5FB2F4,47|184|3E4850,49|180|9BB4CC,106|317|282E32,116|300|9BB4CC")
邀请面板_失败 = Array(245,416,451,855,"452788","-22|320|5FB2F4,104|45|3A4249,102|43|97AFC7,99|320|23272B,-38|75|5169DD,103|185|24292C,106|185|9BB3CB,-40|318|5FB2F4")
默认已选中 = Array(337, 535, 385, 585, "FDFAFA", "2|-19|9BB4CC,-18|1|9BB4CC,22|0|9BB4CC,-1|12|C04C3C,-7|-9|9C4131,12|-5|E95D4C")
// 开始标记式神 , 每层标记 怪
Dim 一层,二层,三层// 检测到每层后就 标记区域 点击2次
一层 = Array(213, 535, 381, 604, "071167", "9|-13|A5C8E2,135|-21|97C0E2,136|-17|202427,132|10|94BFDE,137|30|202427,140|33|95C0DE,116|6|A3D0EB,161|5|8EB8D8")
二层 = Array(191, 533, 393, 611, "060D5B", "11|-14|0E1B6E,7|-5|79A7CA,129|-31|9CC4E3,131|-28|202528,155|-12|202427,156|-16|93BEDD,143|15|8DB2CA,175|-6|8EB8D7")
三层 = Array(198, 522, 388, 611, "071164", "5|0|6593BB,-22|34|0C1875,116|18|93BBD5,102|21|202427,105|42|202427,119|22|202427,123|36|202427,138|22|202427,130|27|96C0E1")
Dim 视角移动
视角移动 = Array(104, 7, 178, 74, "0E1117", "-10|-8|88BCE0,-11|-6|215C8D,12|3|7AB3CB,9|6|3274A3,1|-13|233344,-12|15|465667,14|-13|8394A5")
Dim 战斗胜利,战斗失败,抽奖按钮,抽奖完毕,战斗准备开始,战斗数据,经验加成
战斗失败 = Array(170,829,246,906,"5881CE","2|-1|3C5FAD,14|4|E8F4F9,-11|36|1837C7,-32|39|EDF5F7") // 强化御魂
抽奖按钮 = Array(86,479,142,556,"CE8A3C","-5|6|DBB5BD,-4|10|0B296E,2|14|44A9DF,8|7|080956,-18|-24|F5D22D")
抽奖完毕 = Array(151, 667, 251, 765, "47CFE7", "-7|8|4DD8EB,-13|4|101762,-16|-5|1A4DA9,-5|-25|192EA8,17|-40|0637B7")
战斗胜利 = Array(475,486,597,658,"2C3DE8","9|-16|A39A90,10|-33|376FA1,35|-67|B5CDDA,31|-4|6AA4C5")
战斗准备开始 = Array(133, 1119, 200, 1215, "2A70C6", "-8|-4|5991D5,-8|-3|C2E0F5,-35|-3|3F7CCC,-18|35|216CC7,-18|31|DCF5FF")// 准备按钮
战斗数据 = Array(618, 39, 690, 113, "D5F2F2", "27|-3|AF7CF3,12|-13|C8A6EA,15|16|D4EDFD,-15|15|9E8E4C,-22|2|5AA5CE,-20|-16|C4E2EF,-1|-20|18212D,-1|32|0D1C34")
经验加成 = Array( 40,75,89,472,"28F1F5","0|-8|15CDEA,16|-4|5BEFFA,6|-14|53DEDA,0|-20|DFB498,24|-21|B3772D,19|-27|E9C5A4,30|-28|FAEDDB,30|-6|AC7A41")
dim 点击范围,准备计数,是否失败
点击范围 = Array(173,1074,411,1182)
准备计数 = 0
Function 取消自动战斗()
Dim posX,posY,自动按钮,小纸人,已开启自动,开启过了
自动按钮 = Array(322, 53, 638, 114, "13242F", "5|8|0E3052,4|2|9ACDEF,10|10|96C8F1,13|10|97CAEC,24|-10|373853,20|-14|A1C6E2,14|13|251E34")
小纸人 = Array(290,294,676,401,"E5EDED","27|16|382BB3,15|20|141498,-6|-10|2A2D38,-22|8|976C8B,-10|8|282836,8|-13|F4F4F4,1|14|F1F1E6")
已开启自动 = Array(343, 55, 614, 109, "94C6EF", "-10|-9|5EAF55,-20|2|62B762,11|-1|493E53,-2|12|67B460,-5|15|62B459,-12|1|67B95E")
开启过了 = False
For 50
If 区域多点找色(小纸人, false, 0, 0) Then
//自动按钮 13|78
TracePrint "点击按钮"
Call 点击(posX+13,posY+78, 随机(-5, 5))
Delay 500
//-29|-22,26|26
已开启自动 = Array(posX-39,posY-32,posX+36,posY+36,"94C6EF","-10|-9|5EAF55,-20|2|62B762,11|-1|493E53,-2|12|67B460,-5|15|62B459,-12|1|67B95E")
If 区域多点找色(已开启自动, false, 0, 0) Then
TracePrint "已经开启,现在关闭"
Call 点击(posX+13,posY+78, 随机(-5, 5))
开启过了 = True
End If
ElseIf 区域多点找色(自动按钮, true, 随机(-5, 5), 随机(-5, 5))Then
TracePrint "找到小纸人"
Delay 300
posX = intX : posY = intY
//小纸人 -21|234,52|310
小纸人 = Array(posX - 21, posY + 234, posX + 52, posY + 310, "E5EDED", "27|16|382BB3,15|20|141498,-6|-10|2A2D38,-22|8|976C8B,-10|8|282836,8|-13|F4F4F4,1|14|F1F1E6")
End If
Call 区域多点找色(已开启自动, true, 随机(-5, 5), 随机(-5, 5))
If 开启过了 and 区域多点找色(自动按钮, false, 0, 0) Then
TracePrint "已经关闭自动"
Exit For
End If
Next
End Function