Delay 500 //若在战斗则不运行脚本,坐标为第几回合的第字的左下角 //IfColor 1166, 49, "639FCF", (1) Then //判断成员数 number = 1 //判断第一个队友的相框 IfColor 479, 60, "8492AD", (0) Then //若相框存在,判断是否暂离 tm1 = GetPixelColor(484, 60) Call Plugin.Color.ColorToHSL(tm1, H, S, L) If H > 100 Then number = number + 1 End If End If //判断队友2 IfColor 560, 60, "8492AD", (0) Then tm2 = GetPixelColor(565, 60) Call Plugin.Color.ColorToHSL(tm2, H, S, L) If H > 100 Then number = number + 1 End If End If //判断队友3 IfColor 641, 60, "8492AD", (0) Then tm3 = GetPixelColor(646, 60) Call Plugin.Color.ColorToHSL(tm3, H, S, L) If H > 100 Then number = number + 1 End If End If //判断队友4 IfColor 722, 60, "8492AD", (0) Then tm4 = GetPixelColor(727, 60) Call Plugin.Color.ColorToHSL(tm4, H, S, L) If H > 100 Then number = number + 1 End If End If //若大于三人则寻找贼兵 If number >= 1 Then //在地图寻找贼兵的黄色 FindColor 300, 200, 1111,800, "61C1C5", intX, intY If intX > 0 And intY > 0 Then If GetPixelColor(intX + 2, intY) = "61C1C5" Then //如果左上角提示在自动行走,则停止行走 IfColor 14, 164, "65CB8C", (0) Then KeyDown 17, 1 KeyPress 87, 1 KeyUp 17, 1 SayString "/2 队伍人数"&number&",大于三人,可杀贼兵!" KeyPress "Enter", 1 //SayString "/2 坐标"&intX&intY