using RichCreator.Utility.CV;
using RichCreator.Utility.Structs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Emgu.CV;
using Emgu.CV.Structure;
using System.Threading;
using RichCreator.Utility.Captures;
using ZTImage.Configuration;
using RichCreator.Utility.Utilitys;
using System.Diagnostics;
using ZTImage.Collections;
namespace RichCreator.Utility.CV
{
///
/// DNF识别
///
public class DnfCVHelper
{
///
/// 选择角色界面中的“开始游戏”按钮
///
private static ColorArray startGameButton = ColorArray.FromThresholdString(130, "756,744,0,0,0$749,744,0,0,0$750,744,0,0,0$752,744,255,255,255$753,744,255,255,255$755,744,0,0,0$757,744,255,255,255$758,744,255,255,255$760,744,0,0,0$761,744,0,0,0$762,744,0,0,0$764,744,255,255,255$765,744,255,255,255$766,744,255,255,255$767,744,255,255,255$768,744,255,255,255$769,744,255,255,255$771,744,0,0,0$773,744,255,255,255$774,744,255,255,255$775,744,0,0,0$776,744,0,0,0$777,744,255,255,255$778,744,255,255,255$779,744,0,0,0$781,744,255,255,255$782,744,255,255,255$783,744,255,255,255$784,744,255,255,255$785,744,255,255,255$786,744,255,255,255$787,744,255,255,255$788,744,255,255,255$789,744,255,255,255$790,744,255,255,255$791,744,255,255,255$792,744,255,255,255$793,744,255,255,255$794,744,255,255,255$795,744,255,255,255$796,744,255,255,255$797,744,0,0,0$798,744,0,0,0$799,744,255,255,255$800,744,255,255,255$802,744,0,0,0$803,744,255,255,255$804,744,255,255,255$806,744,0,0,0$807,744,0,0,0$749,745,0,0,0$751,745,255,255,255$752,745,255,255,255$753,745,255,255,255$754,745,255,255,255$756,745,255,255,255$757,745,255,255,255$758,745,255,255,255$759,745,255,255,255$760,745,255,255,255$761,745,255,255,255$762,745,0,0,0$764,745,255,255,255$765,745,255,255,255$766,745,255,255,255$767,745,255,255,255$768,745,255,255,255$769,745,255,255,255$771,745,0,0,0$773,745,255,255,255$774,745,255,255,255$776,745,255,255,255$777,745,255,255,255$778,745,255,255,255$779,745,0,0,0$781,745,255,255,255$782,745,255,255,255$783,745,255,255,255$784,745,255,255,255$785,745,255,255,255$786,745,255,255,255$787,745,255,255,255$788,745,255,255,255$789,745,255,255,255$790,745,255,255,255$791,745,255,255,255$792,745,255,255,255$793,745,255,255,255$794,745,255,255,255$795,745,255,255,255$796,745,255,255,255$797,745,0,0,0$799,745,255,255,255$800,745,255,255,255$803,745,255,255,255$804,745,255,255,255$806,745,0,0,0$808,745,255,255,255$750,746,255,255,255$751,746,255,255,255$752,746,255,255,255$753,746,255,255,255$754,746,255,255,255$755,746,255,255,255$756,746,255,255,255$757,746,255,255,255$758,746,255,255,255$759,746,255,255,255$760,746,255,255,255$761,746,255,255,255$762,746,0,0,0$768,746,255,255,255$769,746,255,255,255$771,746,0,0,0$772,746,0,0,0$773,746,255,255,255$774,746,255,255,255$776,746,255,255,255$779,746,0,0,0$780,746,0,0,0$782,746,255,255,255$783,746,255,255,255$784,746,255,255,255$793,746,255,255,255$794,746,255,255,255$795,746,255,255,255$797,746,0,0,0$799,746,255,255,255$800,746,255,255,255$801,746,255,255,255$802,746,255,255,255$803,746,255,255,255$804,746,255,255,255$805,746,255,255,255$806,746,0,0,0$808,746,255,255,255$751,747,255,255,255$752,747,255,255,255$757,747,0,0,0$758,747,0,0,0$759,747,0,0,0$760,747,0,0,0$761,747,0,0,0$762,747,0,0,0$766,747,0,0,0$767,747,0,0,0$768,747,255,255,255$769,747,255,255,255$770,747,0,0,0$772,747,255,255,255$773,747,255,255,255$774,747,255,255,255$775,747,255,255,255$776,747,255,255,255$777,747,255,255,255$778,747,255,255,255$779,747,0,0,0$780,747,0,0,0$781,747,0,0,0$782,747,255,255,255$783,747,255,255,255$784,747,255,255,255$785,747,0,0,0$786,747,0,0,0$787,747,0,0,0$788,747,0,0,0$789,747,0,0,0$790,747,0,0,0$791,747,0,0,0$792,747,0,0,0$793,747,255,255,255$794,747,255,255,255$795,747,255,255,255$796,747,0,0,0$797,747,0,0,0$799,747,255,255,255$800,747,255,255,255$801,747,255,255,255$802,747,255,255,255$803,747,255,255,255$804,747,255,255,255$805,747,255,255,255$806,747,0,0,0$807,747,255,255,255$808,747,255,255,255$749,748,0,0,0$750,748,0,0,0$751,748,255,255,255$752,748,255,255,255$753,748,0,0,0$754,748,0,0,0$755,748,0,0,0$757,748,255,255,255$758,748,255,255,255$759,748,255,255,255$760,748,255,255,255$761,748,255,255,255$762,748,0,0,0$763,748,0,0,0$764,748,255,255,255$765,748,255,255,255$768,748,255,255,255$769,748,255,255,255$770,748,0,0,0$771,748,255,255,255$772,748,255,255,255$773,748,255,255,255$774,748,255,255,255$775,748,255,255,255$776,748,255,255,255$777,748,255,255,255$778,748,255,255,255$779,748,0,0,0$780,748,0,0,0$781,748,0,0,0$782,748,255,255,255$783,748,255,255,255$784,748,255,255,255$785,748,0,0,0$786,748,0,0,0$787,748,0,0,0$788,748,0,0,0$789,748,0,0,0$790,748,0,0,0$791,748,0,0,0$792,748,0,0,0$793,748,255,255,255$794,748,255,255,255$795,748,255,255,255$796,748,0,0,0$797,748,0,0,0$798,748,0,0,0$799,748,255,255,255$800,748,255,255,255$802,748,0,0,0$803,748,255,255,255$804,748,255,255,255$807,748,255,255,255$808,748,255,255,255$749,749,0,0,0$751,749,255,255,255$752,749,255,255,255$753,749,255,255,255$754,749,255,255,255$755,749,255,255,255$756,749,255,255,255$757,749,255,255,255$758,749,255,255,255$759,749,255,255,255$760,749,255,255,255$761,749,255,255,255$762,749,0,0,0$763,749,0,0,0$765,749,255,255,255$767,749,255,255,255$768,749,255,255,255$770,749,0,0,0$771,749,0,0,0$772,749,0,0,0$773,749,255,255,255$774,749,255,255,255$776,749,0,0,0$777,749,0,0,0$778,749,0,0,0$779,749,0,0,0$780,749,0,0,0$781,749,0,0,0$782,749,255,255,255$783,749,255,255,255$784,749,255,255,255$785,749,0,0,0$786,749,0,0,0$787,749,0,0,0$788,749,0,0,0$789,749,0,0,0$790,749,0,0,0$791,749,0,0,0$792,749,0,0,0$793,749,255,255,255$794,749,255,255,255$795,749,255,255,255$796,749,0,0,0$797,749,0,0,0$798,749,0,0,0$799,749,255,255,255$800,749,255,255,255$802,749,0,0,0$803,749,255,255,255$804,749,255,255,255$806,749,255,255,255$807,749,255,255,255$808,749,255,255,255$751,750,255,255,255$752,750,255,255,255$753,750,255,255,255$754,750,255,255,255$755,750,255,255,255$756,750,0,0,0$757,750,0,0,0$758,750,0,0,0$759,750,255,255,255$760,750,255,255,255$762,750,0,0,0$763,750,0,0,0$765,750,255,255,255$766,750,255,255,255$767,750,255,255,255$768,750,255,255,255$770,750,0,0,0$771,750,0,0,0$772,750,0,0,0$774,750,255,255,255$775,750,255,255,255$777,750,255,255,255$779,750,0,0,0$780,750,0,0,0$781,750,0,0,0$782,750,255,255,255$783,750,255,255,255$784,750,255,255,255$785,750,0,0,0$786,750,0,0,0$787,750,0,0,0$788,750,0,0,0$789,750,0,0,0$790,750,0,0,0$791,750,0,0,0$792,750,0,0,0$793,750,255,255,255$794,750,255,255,255$795,750,255,255,255$796,750,0,0,0$797,750,0,0,0$798,750,0,0,0$799,750,255,255,255$800,750,255,255,255$802,750,0,0,0$803,750,255,255,255$804,750,255,255,255$806,750,255,255,255$807,750,255,255,255$808,750,255,255,255$751,751,255,255,255$754,751,255,255,255$756,751,0,0,0$757,751,255,255,255$758,751,255,255,255$759,751,255,255,255$760,751,255,255,255$761,751,0,0,0$762,751,0,0,0$763,751,0,0,0$764,751,0,0,0$765,751,255,255,255$766,751,255,255,255$767,751,255,255,255$768,751,255,255,255$769,751,0,0,0$770,751,0,0,0$771,751,0,0,0$772,751,0,0,0$774,751,255,255,255$775,751,255,255,255$777,751,255,255,255$779,751,0,0,0$780,751,0,0,0$781,751,255,255,255$782,751,255,255,255$783,751,255,255,255$784,751,255,255,255$785,751,255,255,255$786,751,255,255,255$787,751,255,255,255$788,751,255,255,255$789,751,255,255,255$790,751,255,255,255$791,751,255,255,255$792,751,255,255,255$793,751,255,255,255$794,751,255,255,255$795,751,255,255,255$796,751,255,255,255$797,751,0,0,0$798,751,0,0,0$799,751,255,255,255$800,751,255,255,255$802,751,0,0,0$803,751,255,255,255$804,751,255,255,255$751,752,255,255,255$754,752,255,255,255$756,752,0,0,0$758,752,255,255,255$759,752,255,255,255$760,752,255,255,255$761,752,0,0,0$762,752,0,0,0$763,752,0,0,0$764,752,0,0,0$765,752,255,255,255$766,752,255,255,255$767,752,255,255,255$769,752,0,0,0$770,752,0,0,0$771,752,0,0,0$772,752,0,0,0$774,752,255,255,255$775,752,255,255,255$777,752,255,255,255$779,752,0,0,0$780,752,0,0,0$781,752,255,255,255$782,752,255,255,255$783,752,255,255,255$784,752,255,255,255$785,752,255,255,255$786,752,255,255,255$787,752,255,255,255$788,752,255,255,255$789,752,255,255,255$790,752,255,255,255$791,752,255,255,255$792,752,255,255,255$793,752,255,255,255$794,752,255,255,255$795,752,255,255,255$797,752,0,0,0$798,752,0,0,0$799,752,255,255,255$800,752,255,255,255$802,752,0,0,0$803,752,255,255,255$804,752,255,255,255$749,753,0,0,0$751,753,255,255,255$754,753,255,255,255$756,753,0,0,0$757,753,0,0,0$759,753,255,255,255$760,753,255,255,255$761,753,0,0,0$762,753,0,0,0$763,753,0,0,0$764,753,0,0,0$766,753,255,255,255$767,753,255,255,255$769,753,0,0,0$770,753,0,0,0$771,753,0,0,0$772,753,0,0,0$774,753,255,255,255$775,753,255,255,255$777,753,255,255,255$778,753,0,0,0$779,753,0,0,0$780,753,0,0,0$781,753,0,0,0$783,753,255,255,255$785,753,0,0,0$786,753,0,0,0$787,753,0,0,0$788,753,0,0,0$789,753,0,0,0$790,753,0,0,0$791,753,0,0,0$792,753,0,0,0$793,753,255,255,255$794,753,255,255,255$796,753,0,0,0$797,753,0,0,0$798,753,0,0,0$799,753,255,255,255$800,753,255,255,255$802,753,0,0,0$803,753,255,255,255$804,753,255,255,255$807,753,255,255,255$808,753,255,255,255$751,754,255,255,255$754,754,255,255,255$759,754,255,255,255$760,754,255,255,255$762,754,0,0,0$763,754,0,0,0$764,754,0,0,0$766,754,255,255,255$767,754,255,255,255$768,754,0,0,0$769,754,0,0,0$770,754,0,0,0$771,754,0,0,0$772,754,0,0,0$773,754,0,0,0$774,754,255,255,255$775,754,255,255,255$776,754,255,255,255$778,754,0,0,0$779,754,0,0,0$780,754,0,0,0$781,754,0,0,0$783,754,255,255,255$785,754,0,0,0$786,754,0,0,0$787,754,0,0,0$788,754,0,0,0$789,754,0,0,0$790,754,0,0,0$791,754,0,0,0$792,754,0,0,0$793,754,255,255,255$794,754,255,255,255$796,754,0,0,0$797,754,0,0,0$798,754,0,0,0$799,754,255,255,255$800,754,255,255,255$803,754,255,255,255$804,754,255,255,255$805,754,0,0,0$807,754,255,255,255$808,754,255,255,255$749,755,0,0,0$751,755,255,255,255$754,755,255,255,255$756,755,255,255,255$757,755,255,255,255$758,755,255,255,255$759,755,255,255,255$760,755,255,255,255$761,755,255,255,255$762,755,0,0,0$763,755,0,0,0$764,755,0,0,0$766,755,255,255,255$767,755,255,255,255$769,755,0,0,0$770,755,0,0,0$774,755,255,255,255$775,755,255,255,255$776,755,255,255,255$778,755,0,0,0$779,755,0,0,0$780,755,0,0,0$781,755,0,0,0$783,755,255,255,255$785,755,0,0,0$786,755,0,0,0$787,755,0,0,0$788,755,0,0,0$789,755,0,0,0$790,755,0,0,0$791,755,0,0,0$792,755,0,0,0$793,755,255,255,255$794,755,255,255,255$796,755,0,0,0$797,755,0,0,0$798,755,0,0,0$800,755,255,255,255$801,755,255,255,255$802,755,255,255,255$803,755,255,255,255$805,755,0,0,0$807,755,255,255,255$749,756,0,0,0$751,756,255,255,255$754,756,255,255,255$759,756,255,255,255$760,756,255,255,255$762,756,0,0,0$763,756,0,0,0$764,756,0,0,0$766,756,255,255,255$767,756,255,255,255$769,756,0,0,0$770,756,0,0,0$771,756,255,255,255$772,756,255,255,255$773,756,255,255,255$774,756,255,255,255$775,756,255,255,255$776,756,255,255,255$777,756,0,0,0$778,756,0,0,0$779,756,0,0,0$780,756,0,0,0$781,756,0,0,0$783,756,255,255,255$785,756,0,0,0$786,756,0,0,0$787,756,0,0,0$788,756,0,0,0$789,756,0,0,0$790,756,0,0,0$791,756,0,0,0$792,756,0,0,0$793,756,255,255,255$794,756,255,255,255$796,756,0,0,0$797,756,0,0,0$798,756,0,0,0$799,756,0,0,0$801,756,255,255,255$802,756,255,255,255$804,756,0,0,0$805,756,0,0,0$807,756,255,255,255$749,757,0,0,0$750,757,0,0,0$751,757,255,255,255$753,757,0,0,0$754,757,255,255,255$756,757,0,0,0$757,757,0,0,0$758,757,0,0,0$759,757,255,255,255$760,757,255,255,255$761,757,0,0,0$762,757,0,0,0$763,757,0,0,0$764,757,0,0,0$765,757,255,255,255$766,757,255,255,255$767,757,255,255,255$768,757,255,255,255$769,757,0,0,0$770,757,0,0,0$771,757,0,0,0$772,757,0,0,0$773,757,0,0,0$775,757,255,255,255$777,757,0,0,0$778,757,0,0,0$779,757,0,0,0$780,757,0,0,0$781,757,0,0,0$783,757,255,255,255$785,757,0,0,0$786,757,0,0,0$787,757,0,0,0$788,757,0,0,0$789,757,0,0,0$790,757,0,0,0$791,757,0,0,0$792,757,0,0,0$793,757,255,255,255$794,757,255,255,255$796,757,0,0,0$797,757,0,0,0$798,757,0,0,0$799,757,0,0,0$801,757,255,255,255$802,757,255,255,255$803,757,255,255,255$805,757,0,0,0$807,757,255,255,255");
///
/// 查找DNF窗口
///
///
///
///
///
///
///
public static bool IsSelectRoleWindow(out ZTRectangle startGameButtonRect)
{
startGameButtonRect = ZTRectangle.Empty;
System.Drawing.Bitmap bitmap = ScreenCapture.Instance.CaptureScreen();
Image image = new Image(bitmap);
ZTRectangle limit = new ZTRectangle(0, 0, image.Width, image.Height);
//查找开始游戏按钮
if (CVHelper.FindColorArrayForThreshold(out startGameButtonRect, image, startGameButton, limit))
{
return true;
}
return false;
}
///
/// 赛丽亚的房间邮件箱文字
///
private static ColorArray MailText = ColorArray.FromThresholdString(94, "1568,530,0,0,0$1543,530,255,255,255$1546,530,0,0,0$1549,530,0,0,0$1554,530,0,0,0$1555,530,0,0,0$1556,530,0,0,0$1557,530,0,0,0$1558,530,0,0,0$1559,530,0,0,0$1560,530,0,0,0$1564,530,255,255,255$1566,530,0,0,0$1567,530,0,0,0$1569,530,0,0,0$1570,530,0,0,0$1572,530,255,255,255$1573,530,0,0,0$1574,530,0,0,0$1576,530,0,0,0$1579,530,0,0,0$1581,530,255,255,255$1583,530,0,0,0$1584,530,0,0,0$1585,530,0,0,0$1586,530,0,0,0$1587,530,0,0,0$1588,530,255,255,255$1590,530,0,0,0$1591,530,0,0,0$1592,530,0,0,0$1593,530,0,0,0$1594,530,0,0,0$1595,530,0,0,0$1596,530,0,0,0$1598,530,255,255,255$1599,530,255,255,255$1600,530,255,255,255$1601,530,255,255,255$1602,530,255,255,255$1546,531,0,0,0$1549,531,0,0,0$1554,531,0,0,0$1556,531,255,255,255$1557,531,255,255,255$1558,531,255,255,255$1560,531,0,0,0$1561,531,0,0,0$1562,531,0,0,0$1564,531,255,255,255$1566,531,0,0,0$1569,531,0,0,0$1570,531,0,0,0$1572,531,255,255,255$1573,531,0,0,0$1574,531,0,0,0$1575,531,0,0,0$1576,531,0,0,0$1577,531,0,0,0$1578,531,0,0,0$1579,531,0,0,0$1581,531,255,255,255$1582,531,255,255,255$1583,531,255,255,255$1584,531,255,255,255$1585,531,255,255,255$1587,531,0,0,0$1588,531,255,255,255$1589,531,255,255,255$1590,531,255,255,255$1591,531,255,255,255$1592,531,255,255,255$1593,531,255,255,255$1594,531,255,255,255$1596,531,0,0,0$1598,531,255,255,255$1599,531,255,255,255$1600,531,255,255,255$1601,531,255,255,255$1602,531,255,255,255$1546,532,0,0,0$1549,532,0,0,0$1550,532,0,0,0$1553,532,0,0,0$1555,532,255,255,255$1556,532,255,255,255$1558,532,255,255,255$1560,532,0,0,0$1561,532,0,0,0$1567,532,255,255,255$1569,532,0,0,0$1570,532,0,0,0$1572,532,255,255,255$1573,532,0,0,0$1574,532,0,0,0$1575,532,0,0,0$1576,532,0,0,0$1577,532,0,0,0$1578,532,0,0,0$1583,532,255,255,255$1584,532,255,255,255$1591,532,255,255,255$1592,532,255,255,255$1596,532,0,0,0$1598,532,255,255,255$1599,532,255,255,255$1600,532,255,255,255$1601,532,255,255,255$1602,532,255,255,255$1541,533,0,0,0$1542,533,0,0,0$1543,533,0,0,0$1544,533,0,0,0$1545,533,0,0,0$1546,533,0,0,0$1548,533,255,255,255$1549,533,0,0,0$1550,533,0,0,0$1551,533,0,0,0$1552,533,0,0,0$1553,533,0,0,0$1555,533,255,255,255$1558,533,255,255,255$1560,533,0,0,0$1561,533,0,0,0$1563,533,255,255,255$1564,533,0,0,0$1565,533,0,0,0$1567,533,255,255,255$1569,533,0,0,0$1570,533,0,0,0$1572,533,255,255,255$1574,533,0,0,0$1575,533,0,0,0$1576,533,0,0,0$1577,533,0,0,0$1578,533,0,0,0$1579,533,255,255,255$1581,533,0,0,0$1582,533,0,0,0$1585,533,0,0,0$1588,533,0,0,0$1589,533,0,0,0$1590,533,0,0,0$1591,533,255,255,255$1593,533,0,0,0$1594,533,0,0,0$1595,533,0,0,0$1596,533,0,0,0$1598,533,255,255,255$1599,533,255,255,255$1600,533,255,255,255$1601,533,255,255,255$1602,533,255,255,255$1541,534,0,0,0$1544,534,255,255,255$1545,534,255,255,255$1546,534,255,255,255$1547,534,255,255,255$1548,534,255,255,255$1549,534,255,255,255$1550,534,255,255,255$1551,534,255,255,255$1552,534,255,255,255$1555,534,255,255,255$1558,534,255,255,255$1560,534,0,0,0$1561,534,0,0,0$1563,534,255,255,255$1564,534,0,0,0$1565,534,0,0,0$1567,534,255,255,255$1568,534,255,255,255$1569,534,255,255,255$1570,534,255,255,255$1571,534,255,255,255$1572,534,255,255,255$1573,534,255,255,255$1574,534,255,255,255$1575,534,255,255,255$1576,534,255,255,255$1578,534,0,0,0$1580,534,0,0,0$1581,534,0,0,0$1584,534,0,0,0$1585,534,0,0,0$1586,534,0,0,0$1587,534,0,0,0$1588,534,0,0,0$1589,534,0,0,0$1590,534,0,0,0$1591,534,0,0,0$1592,534,0,0,0$1593,534,0,0,0$1594,534,0,0,0$1595,534,0,0,0$1596,534,0,0,0$1598,534,255,255,255$1599,534,255,255,255$1600,534,255,255,255$1601,534,255,255,255$1602,534,255,255,255$1541,535,0,0,0$1543,535,255,255,255$1547,535,255,255,255$1548,535,255,255,255$1552,535,255,255,255$1555,535,255,255,255$1560,535,0,0,0$1562,535,255,255,255$1563,535,255,255,255$1564,535,0,0,0$1571,535,255,255,255$1572,535,255,255,255$1578,535,0,0,0$1579,535,0,0,0$1580,535,0,0,0$1581,535,0,0,0$1582,535,255,255,255$1584,535,0,0,0$1585,535,0,0,0$1596,535,0,0,0$1598,535,255,255,255$1599,535,255,255,255$1600,535,255,255,255$1601,535,255,255,255$1541,536,0,0,0$1543,536,255,255,255$1545,536,0,0,0$1546,536,0,0,0$1549,536,0,0,0$1550,536,0,0,0$1552,536,255,255,255$1555,536,255,255,255$1556,536,255,255,255$1557,536,255,255,255$1558,536,0,0,0$1559,536,0,0,0$1561,536,255,255,255$1562,536,255,255,255$1563,536,255,255,255$1564,536,0,0,0$1567,536,0,0,0$1568,536,0,0,0$1569,536,0,0,0$1570,536,0,0,0$1572,536,255,255,255$1573,536,0,0,0$1574,536,0,0,0$1575,536,0,0,0$1576,536,0,0,0$1577,536,0,0,0$1578,536,0,0,0$1579,536,0,0,0$1580,536,0,0,0$1582,536,255,255,255$1584,536,0,0,0$1585,536,0,0,0$1587,536,255,255,255$1588,536,255,255,255$1589,536,255,255,255$1590,536,255,255,255$1591,536,255,255,255$1592,536,255,255,255$1593,536,255,255,255$1594,536,255,255,255$1596,536,0,0,0$1598,536,255,255,255$1599,536,255,255,255$1600,536,255,255,255$1601,536,255,255,255$1541,537,0,0,0$1543,537,255,255,255$1545,537,0,0,0$1546,537,0,0,0$1549,537,0,0,0$1550,537,0,0,0$1552,537,255,255,255$1555,537,255,255,255$1556,537,255,255,255$1557,537,255,255,255$1558,537,0,0,0$1559,537,0,0,0$1560,537,0,0,0$1563,537,255,255,255$1564,537,0,0,0$1565,537,0,0,0$1566,537,0,0,0$1567,537,0,0,0$1568,537,0,0,0$1569,537,0,0,0$1570,537,0,0,0$1572,537,255,255,255$1573,537,0,0,0$1578,537,0,0,0$1580,537,255,255,255$1581,537,255,255,255$1582,537,255,255,255$1583,537,255,255,255$1584,537,255,255,255$1585,537,255,255,255$1586,537,255,255,255$1587,537,255,255,255$1594,537,255,255,255$1596,537,0,0,0$1598,537,255,255,255$1599,537,255,255,255$1600,537,255,255,255$1601,537,255,255,255$1541,538,0,0,0$1543,538,255,255,255$1547,538,255,255,255$1548,538,255,255,255$1552,538,255,255,255$1555,538,255,255,255$1556,538,255,255,255$1559,538,0,0,0$1560,538,0,0,0$1561,538,0,0,0$1563,538,255,255,255$1564,538,0,0,0$1565,538,0,0,0$1566,538,0,0,0$1567,538,0,0,0$1568,538,0,0,0$1569,538,0,0,0$1570,538,0,0,0$1572,538,255,255,255$1573,538,0,0,0$1578,538,0,0,0$1582,538,255,255,255$1583,538,255,255,255$1586,538,255,255,255$1587,538,255,255,255$1594,538,255,255,255$1596,538,0,0,0$1598,538,255,255,255$1599,538,255,255,255$1600,538,255,255,255$1601,538,255,255,255$1603,538,255,255,255$1541,539,0,0,0$1543,539,255,255,255$1544,539,255,255,255$1545,539,255,255,255$1546,539,255,255,255$1547,539,255,255,255$1548,539,255,255,255$1549,539,255,255,255$1550,539,255,255,255$1551,539,255,255,255$1552,539,255,255,255$1555,539,255,255,255$1558,539,255,255,255$1560,539,0,0,0$1561,539,0,0,0$1563,539,255,255,255$1564,539,0,0,0$1565,539,0,0,0$1566,539,0,0,0$1567,539,0,0,0$1568,539,0,0,0$1569,539,0,0,0$1570,539,0,0,0$1572,539,255,255,255$1573,539,0,0,0$1574,539,0,0,0$1575,539,0,0,0$1576,539,0,0,0$1577,539,0,0,0$1578,539,0,0,0$1579,539,0,0,0$1580,539,0,0,0$1582,539,255,255,255$1584,539,0,0,0$1585,539,0,0,0$1587,539,255,255,255$1588,539,255,255,255$1589,539,255,255,255$1590,539,255,255,255$1591,539,255,255,255$1592,539,255,255,255$1593,539,255,255,255$1594,539,255,255,255$1596,539,0,0,0$1598,539,255,255,255$1599,539,255,255,255$1600,539,255,255,255$1601,539,255,255,255$1603,539,255,255,255$1541,540,0,0,0$1543,540,255,255,255$1548,540,255,255,255$1552,540,255,255,255$1555,540,255,255,255$1558,540,255,255,255$1560,540,0,0,0$1561,540,0,0,0$1563,540,255,255,255$1564,540,0,0,0$1566,540,255,255,255$1567,540,255,255,255$1568,540,255,255,255$1569,540,255,255,255$1570,540,255,255,255$1571,540,255,255,255$1572,540,255,255,255$1573,540,255,255,255$1574,540,255,255,255$1575,540,255,255,255$1576,540,255,255,255$1578,540,0,0,0$1579,540,0,0,0$1581,540,255,255,255$1582,540,255,255,255$1583,540,255,255,255$1585,540,0,0,0$1587,540,255,255,255$1594,540,255,255,255$1596,540,0,0,0$1598,540,255,255,255$1599,540,255,255,255$1600,540,255,255,255$1601,540,255,255,255$1603,540,255,255,255$1541,541,0,0,0$1543,541,255,255,255$1545,541,0,0,0$1546,541,0,0,0$1549,541,0,0,0$1550,541,0,0,0$1552,541,255,255,255$1555,541,255,255,255$1558,541,255,255,255$1560,541,0,0,0$1561,541,0,0,0$1563,541,255,255,255$1564,541,0,0,0$1571,541,255,255,255$1572,541,255,255,255$1578,541,0,0,0$1582,541,255,255,255$1583,541,255,255,255$1587,541,255,255,255$1594,541,255,255,255$1596,541,0,0,0$1598,541,255,255,255$1599,541,255,255,255$1600,541,255,255,255$1601,541,255,255,255$1603,541,255,255,255$1543,542,255,255,255$1545,542,0,0,0$1546,542,0,0,0$1549,542,0,0,0$1550,542,0,0,0$1552,542,255,255,255$1555,542,255,255,255$1558,542,255,255,255$1560,542,0,0,0$1561,542,0,0,0$1563,542,255,255,255$1564,542,0,0,0$1565,542,0,0,0$1566,542,0,0,0$1567,542,0,0,0$1568,542,0,0,0$1569,542,0,0,0$1570,542,0,0,0$1572,542,255,255,255$1573,542,0,0,0$1574,542,0,0,0$1575,542,0,0,0$1576,542,0,0,0$1577,542,0,0,0$1578,542,0,0,0$1579,542,255,255,255$1581,542,0,0,0$1582,542,255,255,255$1584,542,0,0,0$1585,542,255,255,255$1586,542,255,255,255$1587,542,255,255,255$1588,542,255,255,255$1589,542,255,255,255$1590,542,255,255,255$1591,542,255,255,255$1592,542,255,255,255$1593,542,255,255,255$1594,542,255,255,255$1596,542,0,0,0$1598,542,255,255,255$1599,542,255,255,255$1600,542,255,255,255$1601,542,255,255,255$1543,543,255,255,255$1545,543,0,0,0$1546,543,0,0,0$1549,543,0,0,0$1550,543,0,0,0$1552,543,255,255,255$1555,543,255,255,255$1556,543,255,255,255$1559,543,0,0,0$1560,543,0,0,0$1561,543,0,0,0$1563,543,255,255,255$1564,543,0,0,0$1565,543,0,0,0$1570,543,0,0,0$1572,543,255,255,255$1573,543,0,0,0$1578,543,0,0,0$1580,543,0,0,0$1581,543,0,0,0$1582,543,255,255,255$1584,543,0,0,0$1587,543,255,255,255$1594,543,255,255,255$1596,543,0,0,0$1598,543,255,255,255$1599,543,255,255,255$1600,543,255,255,255$1601,543,255,255,255$1543,544,255,255,255$1547,544,255,255,255$1548,544,255,255,255$1552,544,255,255,255$1555,544,255,255,255$1556,544,255,255,255$1558,544,0,0,0$1559,544,0,0,0$1560,544,0,0,0$1561,544,0,0,0$1563,544,255,255,255$1564,544,0,0,0$1570,544,0,0,0$1572,544,255,255,255$1573,544,0,0,0$1575,544,255,255,255$1576,544,255,255,255$1580,544,0,0,0$1581,544,0,0,0$1582,544,255,255,255$1584,544,0,0,0$1585,544,0,0,0$1587,544,255,255,255$1594,544,255,255,255$1596,544,0,0,0$1597,544,255,255,255$1598,544,255,255,255$1599,544,255,255,255$1600,544,255,255,255$1601,544,255,255,255$1603,544,255,255,255$1539,545,255,255,255$1543,545,255,255,255$1544,545,255,255,255$1545,545,255,255,255$1546,545,255,255,255$1547,545,255,255,255$1548,545,255,255,255$1549,545,255,255,255$1550,545,255,255,255$1551,545,255,255,255$1552,545,255,255,255$1555,545,255,255,255$1557,545,0,0,0$1558,545,0,0,0$1559,545,0,0,0$1560,545,0,0,0$1561,545,0,0,0$1563,545,255,255,255$1564,545,0,0,0$1570,545,0,0,0$1572,545,255,255,255$1573,545,0,0,0$1575,545,255,255,255$1576,545,255,255,255$1577,545,255,255,255$1578,545,255,255,255$1579,545,255,255,255$1581,545,0,0,0$1582,545,255,255,255$1584,545,0,0,0$1585,545,0,0,0$1587,545,255,255,255$1588,545,255,255,255$1589,545,255,255,255$1590,545,255,255,255$1591,545,255,255,255$1592,545,255,255,255$1593,545,255,255,255$1594,545,255,255,255$1596,545,0,0,0$1597,545,255,255,255$1598,545,255,255,255$1599,545,255,255,255$1600,545,255,255,255$1601,545,255,255,255$1602,545,255,255,255$1603,545,255,255,255$1539,546,255,255,255$1540,546,255,255,255$1543,546,255,255,255$1552,546,255,255,255$1555,546,255,255,255$1557,546,0,0,0$1558,546,0,0,0$1559,546,0,0,0$1560,546,0,0,0$1561,546,0,0,0$1563,546,255,255,255$1564,546,0,0,0$1570,546,0,0,0$1572,546,255,255,255$1573,546,0,0,0$1575,546,255,255,255$1576,546,255,255,255$1577,546,255,255,255$1578,546,255,255,255$1581,546,0,0,0$1582,546,255,255,255$1584,546,0,0,0$1585,546,0,0,0$1587,546,255,255,255$1594,546,255,255,255$1596,546,0,0,0$1597,546,255,255,255$1598,546,255,255,255$1599,546,255,255,255$1600,546,255,255,255$1601,546,255,255,255$1602,546,255,255,255$1603,546,255,255,255$1539,547,255,255,255$1540,547,255,255,255$1542,547,0,0,0$1545,547,0,0,0$1546,547,0,0,0$1549,547,0,0,0$1550,547,0,0,0$1551,547,0,0,0$1554,547,0,0,0$1557,547,0,0,0$1558,547,0,0,0$1560,547,0,0,0$1561,547,0,0,0$1564,547,0,0,0$1570,547,0,0,0$1573,547,0,0,0$1575,547,255,255,255$1576,547,255,255,255$1577,547,255,255,255$1581,547,0,0,0$1584,547,0,0,0$1585,547,0,0,0$1588,547,0,0,0$1589,547,0,0,0$1590,547,0,0,0$1593,547,0,0,0$1596,547,0,0,0$1598,547,255,255,255$1599,547,255,255,255$1600,547,255,255,255$1601,547,255,255,255$1602,547,255,255,255$1603,547,255,255,255$1539,548,255,255,255$1540,548,255,255,255$1542,548,0,0,0$1543,548,0,0,0$1544,548,0,0,0$1545,548,0,0,0$1550,548,0,0,0$1551,548,0,0,0$1552,548,0,0,0$1553,548,0,0,0$1554,548,0,0,0$1555,548,0,0,0$1556,548,0,0,0$1557,548,0,0,0$1558,548,0,0,0$1561,548,0,0,0$1562,548,0,0,0$1563,548,0,0,0$1564,548,0,0,0$1570,548,0,0,0$1571,548,0,0,0$1572,548,0,0,0$1573,548,0,0,0$1575,548,255,255,255$1576,548,255,255,255$1577,548,255,255,255$1581,548,0,0,0$1582,548,0,0,0$1583,548,0,0,0$1584,548,0,0,0$1585,548,0,0,0$1586,548,0,0,0$1587,548,0,0,0$1588,548,0,0,0$1589,548,0,0,0$1591,548,255,255,255$1593,548,0,0,0$1594,548,0,0,0$1595,548,0,0,0$1596,548,0,0,0$1597,548,255,255,255$1598,548,255,255,255$1599,548,255,255,255$1600,548,255,255,255$1601,548,255,255,255$1602,548,255,255,255$1603,548,255,255,255$1539,549,255,255,255$1540,549,255,255,255$1541,549,255,255,255$1555,549,0,0,0$1556,549,0,0,0$1557,549,0,0,0$1558,549,0,0,0$1567,549,255,255,255$1568,549,255,255,255$1569,549,255,255,255$1575,549,255,255,255$1576,549,255,255,255$1591,549,255,255,255$1592,549,255,255,255$1597,549,255,255,255$1598,549,255,255,255$1599,549,255,255,255$1600,549,255,255,255$1601,549,255,255,255$1602,549,255,255,255$1603,549,255,255,255");
//艾尔文防线文字
private static ColorArray AierwenText = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "1199,47,230,200,155$1177,47,230,200,155$1180,47,230,200,155$1180,45,230,200,155$1184,45,230,200,155$1184,47,230,200,155$1187,47,230,200,155$1187,56,230,200,155$1177,56,230,200,155$1194,56,230,200,155$1194,49,230,200,155$1191,47,230,200,155$1191,45,230,200,155$1199,54,230,200,155$1201,56,230,200,155$1211,56,230,200,155$1206,53,230,200,155$1206,47,230,200,155$1201,47,230,200,155$1211,47,230,200,155$1205,45,230,200,155$1213,46,230,200,155$1213,56,230,200,155$1217,56,230,200,155$1221,56,230,200,155$1222,56,230,200,155$1223,55,230,200,155$1225,55,230,200,155$1231,55,230,200,155$1229,56,230,200,155$1235,56,230,200,155$1235,54,230,200,155$1235,50,230,200,155$1235,47,230,200,155$1235,46,230,200,155$1234,45,230,200,155$1232,45,230,200,155$1227,45,230,200,155$1219,45,230,200,155");
///
/// 是否在赛丽亚的房间
///
///
public static bool IsInSaiLiYaHouse(ZTRectangle gameRect)
{
ZTRectangle mailText = ZTRectangle.Empty;
ZTRectangle limit = new ZTRectangle(gameRect.End.X-210, gameRect.Start.Y, gameRect.End.X, gameRect.Start.Y+60);
//截图
Image image = ScreenCapture.Instance.CaptureScreenReturnImage();
//查找地图右上边的艾尔文防线文字
if (CVHelper.FindColorArray(out mailText, image, AierwenText, gameRect))
{
return true;
}
////查找邮件箱
//if (CVHelper.FindColorArrayForThreshold(out mailText, image, MailText,limit))
//{
// return true;
//}
return false;
}
private static ColorArray UpButton = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "960,295,221,197,147$953,296,221,197,147$953,300,221,197,147$953,305,221,197,147$954,306,221,197,147$957,306,221,197,147$960,306,221,197,147$961,305,221,197,147$961,301,221,197,147$961,296,221,197,147$957,295,221,197,147$954,295,221,197,147$957,299,221,197,147$956,300,221,197,147$958,300,221,197,147$958,301,221,197,147$957,301,221,197,147$956,301,221,197,147$955,302,221,197,147$957,302,221,197,147$959,302,221,197,147");
private static ColorArray DownButton = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "953,700,221,197,147$954,699,221,197,147$957,699,221,197,147$960,699,221,197,147$961,700,221,197,147$961,704,221,197,147$961,709,221,197,147$960,710,221,197,147$957,710,221,197,147$954,710,221,197,147$953,709,221,197,147$953,705,221,197,147$955,703,221,197,147$957,703,221,197,147$959,703,221,197,147$958,704,221,197,147$956,704,221,197,147$957,704,221,197,147$957,705,221,197,147$957,706,221,197,147$956,705,221,197,147$958,705,221,197,147");
private static ColorArray ScrollButton = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "961,452,221,197,147$954,328,221,197,147$957,328,221,197,147$960,328,221,197,147$961,329,221,197,147$961,333,221,197,147$961,337,221,197,147$961,341,221,197,147$961,345,221,197,147$961,349,221,197,147$961,353,221,197,147$961,451,221,197,147$961,504,221,197,147$961,505,221,197,147$961,549,221,197,147$961,550,221,197,147$961,576,221,197,147$961,575,221,197,147$961,574,221,197,147$961,569,221,197,147$961,567,221,197,147$960,577,221,197,147$958,577,221,197,147$956,577,221,197,147$954,577,221,197,147$953,576,221,197,147$953,575,221,197,147$953,558,221,197,147$953,516,221,197,147$953,515,221,197,147$953,432,221,197,147$953,431,221,197,147$953,388,221,197,147$953,387,221,197,147$953,336,221,197,147$953,331,221,197,147$953,330,221,197,147$953,329,221,197,147");
///
/// 查找选择角色界面的滚动条
///
///
///
///
///
///
public static bool FindSelectRoleScroll(out ZTRectangle upButtonRect, out ZTRectangle downButtonRect, out ZTRectangle scrollButtonRect, ZTRectangle gameRect)
{
upButtonRect = ZTRectangle.Empty;
downButtonRect = ZTRectangle.Empty;
scrollButtonRect = ZTRectangle.Empty;
Image image = ScreenCapture.Instance.CaptureScreenReturnImage();
//查找向上按钮
if (!CVHelper.FindColorArray(out upButtonRect, image, UpButton, gameRect))
{
return false;
}
//查找向下按钮
if (!CVHelper.FindColorArray(out downButtonRect, image, DownButton, gameRect))
{
return false;
}
//查找滚动条
if (!CVHelper.FindColorArray(out scrollButtonRect, image, ScrollButton, gameRect))
{
return false;
}
return true;
}
///
/// 弹出窗关闭按钮
///
private static ColorArray AlterWindowCloseButton = ColorArray.FromThresholdString(107, "965,236,0,0,0$964,234,255,255,255$965,234,255,255,255$970,234,255,255,255$971,234,255,255,255$964,235,0,0,0$965,235,255,255,255$966,235,255,255,255$969,235,255,255,255$970,235,255,255,255$971,235,0,0,0$966,236,255,255,255$967,236,255,255,255$968,236,255,255,255$969,236,255,255,255$970,236,0,0,0$963,237,0,0,0$964,237,0,0,0$965,237,0,0,0$966,237,0,0,0$967,237,255,255,255$968,237,255,255,255$969,237,0,0,0$970,237,0,0,0$971,237,0,0,0$972,237,0,0,0$973,237,0,0,0$974,237,0,0,0$966,238,255,255,255$967,238,255,255,255$968,238,255,255,255$969,238,255,255,255$965,239,255,255,255$966,239,255,255,255$967,239,0,0,0$968,239,0,0,0$969,239,255,255,255$970,239,255,255,255$964,240,255,255,255$965,240,255,255,255$966,240,0,0,0$969,240,0,0,0$970,240,255,255,255$971,240,255,255,255$964,241,0,0,0$965,241,0,0,0$970,241,0,0,0$971,241,0,0,0");
///
/// 弹出公告的关闭按钮,比弹出窗的关闭按钮小一点
///
private static ColorArray AlterNoticeWindowCloseButton = ColorArray.FromThresholdString(107, "1272,203,0,0,0$1263,203,0,0,0$1264,203,0,0,0$1265,203,0,0,0$1266,203,0,0,0$1267,203,0,0,0$1268,203,0,0,0$1269,203,0,0,0$1270,203,0,0,0$1271,203,0,0,0$1263,204,0,0,0$1264,204,0,0,0$1265,204,255,255,255$1266,204,255,255,255$1267,204,0,0,0$1268,204,0,0,0$1269,204,0,0,0$1270,204,0,0,0$1271,204,255,255,255$1272,204,255,255,255$1263,205,0,0,0$1264,205,0,0,0$1265,205,0,0,0$1266,205,255,255,255$1267,205,255,255,255$1268,205,0,0,0$1269,205,0,0,0$1270,205,255,255,255$1271,205,255,255,255$1272,205,0,0,0$1263,206,0,0,0$1264,206,0,0,0$1265,206,0,0,0$1266,206,0,0,0$1267,206,255,255,255$1268,206,255,255,255$1269,206,255,255,255$1270,206,255,255,255$1271,206,0,0,0$1272,206,0,0,0$1263,207,0,0,0$1264,207,0,0,0$1265,207,0,0,0$1266,207,0,0,0$1267,207,0,0,0$1268,207,255,255,255$1269,207,255,255,255$1270,207,0,0,0$1271,207,0,0,0$1272,207,0,0,0$1263,208,0,0,0$1264,208,0,0,0$1265,208,0,0,0$1266,208,0,0,0$1267,208,255,255,255$1268,208,255,255,255$1269,208,255,255,255$1270,208,255,255,255$1271,208,0,0,0$1272,208,0,0,0$1263,209,0,0,0$1264,209,0,0,0$1265,209,0,0,0$1266,209,255,255,255$1267,209,255,255,255$1268,209,0,0,0$1269,209,0,0,0$1270,209,255,255,255$1271,209,255,255,255$1272,209,0,0,0$1263,210,0,0,0$1264,210,0,0,0$1265,210,255,255,255$1266,210,255,255,255$1267,210,0,0,0$1268,210,0,0,0$1269,210,0,0,0$1270,210,0,0,0$1271,210,255,255,255$1272,210,255,255,255$1263,211,0,0,0$1264,211,0,0,0$1265,211,0,0,0$1266,211,0,0,0$1267,211,0,0,0$1268,211,0,0,0$1269,211,0,0,0$1270,211,0,0,0$1271,211,0,0,0$1272,211,0,0,0$1263,212,0,0,0$1264,212,0,0,0$1265,212,0,0,0$1266,212,0,0,0$1267,212,0,0,0$1268,212,0,0,0$1269,212,0,0,0$1270,212,0,0,0$1271,212,0,0,0$1272,212,0,0,0");
///
/// 查找弹出窗
///
///
///
///
public static bool GetAlertWindow(out ZTRectangle closeButtonRect, Image image, ZTRectangle gameRect)
{
closeButtonRect = ZTRectangle.Empty;
if (!CVHelper.FindColorArrayForThreshold(out closeButtonRect, image, AlterWindowCloseButton, gameRect))
{
if (!CVHelper.FindColorArrayForThreshold(out closeButtonRect, image, AlterNoticeWindowCloseButton, gameRect))
{
return false;
}
}
ZTLine upLine = ZTLine.Empty;
ZTRectangle limit = new ZTRectangle(closeButtonRect.Start.X, closeButtonRect.Start.Y - 14, closeButtonRect.Start.X + 25, closeButtonRect.Start.Y);
//找上线
if (!CVHelper.FindLine(out upLine, image, 10, limit, Orientation.Horizontal, new ZTColor(0, 0, 0)))
{
return false;
}
ZTLine rightLine = ZTLine.Empty;
limit = new ZTRectangle(upLine.X + upLine.Length, upLine.Y, upLine.X + upLine.Length + 3, upLine.Y + 30);
//找右线
if (!CVHelper.FindLine(out rightLine, image, 10, limit, Orientation.Vertical, new ZTColor(0, 0, 0)))
{
return false;
}
ZTLine downLine = ZTLine.Empty;
limit = new ZTRectangle(upLine.X, rightLine.Y + rightLine.Length, rightLine.X, rightLine.Y + rightLine.Length + 10);
//找下线
if (!CVHelper.FindLine(out downLine, image, 10, limit, Orientation.Horizontal, new ZTColor(0, 0, 0)))
{
return false;
}
return true;
}
private static ZTHsvFloatColor minPilaozhi = new ZTHsvFloatColor(0.498f, 0.998f, 0.898f);
private static ZTHsvFloatColor maxPilaozhi = new ZTHsvFloatColor(0.504f, 1.0f, 0.904f);
private static ZTHsvFloatColor minPilaozhi_last = new ZTHsvFloatColor(0.963f, 0.998f, 0.700f);
private static ZTHsvFloatColor maxPilaozhi_last = new ZTHsvFloatColor(0.967f, 1.0f, 0.704f);
///
/// 得到疲劳值
///
///
public static Int32 GetPiLaoZhi(ZTRectangle gameRect)
{
//疲劳值范围
ZTRectangle findLimitRect = new ZTRectangle(gameRect.Start.X + 331, gameRect.Start.Y+546, gameRect.Start.X + 500, gameRect.Start.Y+565);
//截图
Image image = ScreenCapture.Instance.CaptureScreenReturnImage();
ZTLine line = ZTLine.Empty;
bool findResult = CVHelper.FindLine(out line, image, 0, findLimitRect, Orientation.Horizontal, minPilaozhi, maxPilaozhi);
if (findResult)
{
return line.Length;
}
findResult = CVHelper.FindLine(out line, image, 0, findLimitRect, Orientation.Horizontal, minPilaozhi_last, maxPilaozhi_last);
if (findResult)
{
return line.Length;
}
return 0;
}
private static ZTHsvFloatColor rightMiniMapMin = new ZTHsvFloatColor(0.100, 0.312, 0.547);
private static ZTHsvFloatColor rightMiniMapMax = new ZTHsvFloatColor(0.104, 0.316, 0.551);
private static ZTHsvFloatColor bottomMiniMapMin = new ZTHsvFloatColor(0.109, 0.309, 0.414);
private static ZTHsvFloatColor bottomMiniMapMax = new ZTHsvFloatColor(0.113, 0.313, 0.418);
///
/// 查找小地图区域
///
///
///
public static bool FindMiniMap(out ZTRectangle minimapRect, Image image, ZTRectangle gameRect)
{
Int32 rightBorderLen = 104;//右边框最小长度
Int32 bottomBorderLen = 70;//下边框最小长度
ZTLine right = ZTLine.Empty;
ZTLine bottom = ZTLine.Empty;
ZTRectangle limit = new ZTRectangle(gameRect.Start.X + 640, gameRect.Start.Y, gameRect.End.X, gameRect.Start.Y + 360);
if (CVHelper.FindLine(out bottom, image, bottomBorderLen, limit, Orientation.Horizontal, bottomMiniMapMin, bottomMiniMapMax))
{
if (CVHelper.FindLine(out right, image, rightBorderLen, limit, Orientation.Vertical, rightMiniMapMin, rightMiniMapMax))
{
//匹配成功
minimapRect = new ZTRectangle(bottom.X, right.Y, right.X, bottom.Y);
return true;
}
}
minimapRect = ZTRectangle.Empty;
return false;
}
///
/// 所有房间刷完之后奖励文字
///
public static ColorArray JiangliText = ColorArray.FromThresholdString(180, "1488,185,255,255,255$1475,185,0,0,0$1476,185,0,0,0$1477,185,0,0,0$1479,185,255,255,255$1480,185,255,255,255$1481,185,255,255,255$1482,185,255,255,255$1484,185,0,0,0$1486,185,255,255,255$1487,185,255,255,255$1489,185,255,255,255$1490,185,255,255,255$1492,185,0,0,0$1493,185,0,0,0$1496,185,255,255,255$1497,185,255,255,255$1498,185,255,255,255$1499,185,255,255,255$1500,185,255,255,255$1501,185,255,255,255$1502,185,255,255,255$1503,185,255,255,255$1504,185,255,255,255$1505,185,255,255,255$1506,185,255,255,255$1507,185,255,255,255$1508,185,255,255,255$1509,185,255,255,255$1510,185,0,0,0$1511,185,0,0,0$1512,185,0,0,0$1513,185,0,0,0$1514,185,0,0,0$1515,185,0,0,0$1516,185,0,0,0$1517,185,0,0,0$1518,185,0,0,0$1519,185,0,0,0$1520,185,255,255,255$1521,185,255,255,255$1522,185,255,255,255$1523,185,255,255,255$1524,185,255,255,255$1525,185,255,255,255$1526,185,255,255,255$1527,185,255,255,255$1528,185,255,255,255$1529,185,255,255,255$1530,185,255,255,255$1531,185,255,255,255$1532,185,255,255,255$1533,185,255,255,255$1534,185,255,255,255$1535,185,255,255,255$1536,185,255,255,255$1538,185,0,0,0$1540,185,255,255,255$1541,185,255,255,255$1542,185,255,255,255$1543,185,255,255,255$1475,186,0,0,0$1476,186,0,0,0$1478,186,255,255,255$1479,186,255,255,255$1480,186,255,255,255$1481,186,255,255,255$1482,186,255,255,255$1483,186,255,255,255$1485,186,255,255,255$1486,186,255,255,255$1487,186,255,255,255$1488,186,255,255,255$1489,186,255,255,255$1490,186,255,255,255$1492,186,0,0,0$1495,186,255,255,255$1496,186,255,255,255$1497,186,255,255,255$1498,186,255,255,255$1499,186,255,255,255$1500,186,255,255,255$1501,186,255,255,255$1502,186,255,255,255$1503,186,255,255,255$1504,186,255,255,255$1505,186,255,255,255$1506,186,255,255,255$1507,186,255,255,255$1508,186,255,255,255$1509,186,255,255,255$1510,186,0,0,0$1511,186,0,0,0$1512,186,0,0,0$1513,186,0,0,0$1514,186,0,0,0$1515,186,0,0,0$1516,186,0,0,0$1517,186,0,0,0$1518,186,0,0,0$1520,186,255,255,255$1521,186,255,255,255$1522,186,255,255,255$1523,186,255,255,255$1524,186,255,255,255$1525,186,255,255,255$1526,186,255,255,255$1527,186,255,255,255$1528,186,255,255,255$1529,186,255,255,255$1530,186,255,255,255$1531,186,255,255,255$1532,186,255,255,255$1533,186,255,255,255$1534,186,255,255,255$1535,186,255,255,255$1536,186,255,255,255$1538,186,0,0,0$1540,186,255,255,255$1541,186,255,255,255$1542,186,255,255,255$1543,186,255,255,255$1475,187,0,0,0$1476,187,0,0,0$1478,187,255,255,255$1479,187,255,255,255$1480,187,255,255,255$1481,187,255,255,255$1482,187,255,255,255$1483,187,255,255,255$1484,187,255,255,255$1485,187,255,255,255$1486,187,255,255,255$1487,187,255,255,255$1488,187,255,255,255$1489,187,255,255,255$1490,187,255,255,255$1494,187,255,255,255$1495,187,255,255,255$1496,187,255,255,255$1497,187,255,255,255$1498,187,255,255,255$1499,187,255,255,255$1500,187,255,255,255$1501,187,255,255,255$1502,187,255,255,255$1503,187,255,255,255$1504,187,255,255,255$1505,187,255,255,255$1506,187,255,255,255$1507,187,255,255,255$1508,187,255,255,255$1510,187,0,0,0$1511,187,0,0,0$1512,187,0,0,0$1513,187,0,0,0$1514,187,0,0,0$1515,187,0,0,0$1516,187,0,0,0$1517,187,0,0,0$1518,187,0,0,0$1520,187,255,255,255$1521,187,255,255,255$1522,187,255,255,255$1523,187,255,255,255$1524,187,255,255,255$1525,187,255,255,255$1526,187,255,255,255$1527,187,255,255,255$1528,187,255,255,255$1529,187,255,255,255$1530,187,255,255,255$1531,187,255,255,255$1532,187,255,255,255$1533,187,255,255,255$1534,187,255,255,255$1535,187,255,255,255$1536,187,255,255,255$1538,187,0,0,0$1539,187,255,255,255$1540,187,255,255,255$1541,187,255,255,255$1542,187,255,255,255$1543,187,255,255,255$1475,188,0,0,0$1476,188,0,0,0$1477,188,0,0,0$1479,188,255,255,255$1480,188,255,255,255$1481,188,255,255,255$1482,188,255,255,255$1483,188,255,255,255$1484,188,255,255,255$1485,188,255,255,255$1486,188,255,255,255$1487,188,255,255,255$1488,188,255,255,255$1489,188,255,255,255$1490,188,255,255,255$1493,188,255,255,255$1494,188,255,255,255$1495,188,255,255,255$1496,188,255,255,255$1497,188,255,255,255$1498,188,255,255,255$1499,188,255,255,255$1500,188,255,255,255$1501,188,255,255,255$1502,188,255,255,255$1503,188,255,255,255$1504,188,255,255,255$1505,188,255,255,255$1506,188,255,255,255$1507,188,255,255,255$1508,188,255,255,255$1510,188,0,0,0$1511,188,0,0,0$1512,188,0,0,0$1513,188,0,0,0$1514,188,0,0,0$1515,188,0,0,0$1516,188,0,0,0$1517,188,0,0,0$1518,188,0,0,0$1520,188,255,255,255$1521,188,255,255,255$1522,188,255,255,255$1523,188,255,255,255$1524,188,255,255,255$1525,188,255,255,255$1526,188,255,255,255$1527,188,255,255,255$1528,188,255,255,255$1529,188,255,255,255$1530,188,255,255,255$1531,188,255,255,255$1532,188,255,255,255$1533,188,255,255,255$1534,188,255,255,255$1535,188,255,255,255$1536,188,255,255,255$1539,188,255,255,255$1540,188,255,255,255$1541,188,255,255,255$1542,188,255,255,255$1543,188,255,255,255$1475,189,0,0,0$1476,189,0,0,0$1477,189,0,0,0$1479,189,255,255,255$1480,189,255,255,255$1481,189,255,255,255$1482,189,255,255,255$1483,189,255,255,255$1484,189,255,255,255$1485,189,255,255,255$1486,189,255,255,255$1487,189,255,255,255$1488,189,255,255,255$1489,189,255,255,255$1492,189,255,255,255$1493,189,255,255,255$1494,189,255,255,255$1495,189,255,255,255$1496,189,255,255,255$1497,189,255,255,255$1498,189,255,255,255$1499,189,255,255,255$1500,189,255,255,255$1501,189,255,255,255$1502,189,255,255,255$1503,189,255,255,255$1504,189,255,255,255$1505,189,255,255,255$1506,189,255,255,255$1507,189,255,255,255$1508,189,255,255,255$1510,189,0,0,0$1511,189,0,0,0$1512,189,0,0,0$1513,189,0,0,0$1514,189,0,0,0$1515,189,0,0,0$1516,189,0,0,0$1517,189,0,0,0$1518,189,0,0,0$1520,189,255,255,255$1521,189,255,255,255$1522,189,255,255,255$1523,189,255,255,255$1537,189,255,255,255$1538,189,255,255,255$1539,189,255,255,255$1540,189,255,255,255$1541,189,255,255,255$1542,189,255,255,255$1543,189,255,255,255$1544,189,255,255,255$1475,190,0,0,0$1476,190,0,0,0$1477,190,0,0,0$1478,190,0,0,0$1480,190,255,255,255$1481,190,255,255,255$1482,190,255,255,255$1485,190,255,255,255$1486,190,255,255,255$1487,190,255,255,255$1488,190,255,255,255$1489,190,255,255,255$1490,190,255,255,255$1491,190,255,255,255$1492,190,255,255,255$1493,190,255,255,255$1494,190,255,255,255$1495,190,255,255,255$1496,190,255,255,255$1497,190,255,255,255$1503,190,255,255,255$1504,190,255,255,255$1505,190,255,255,255$1506,190,255,255,255$1507,190,255,255,255$1508,190,255,255,255$1510,190,0,0,0$1511,190,0,0,0$1512,190,0,0,0$1513,190,0,0,0$1514,190,0,0,0$1515,190,0,0,0$1516,190,0,0,0$1517,190,0,0,0$1518,190,0,0,0$1519,190,255,255,255$1520,190,255,255,255$1521,190,255,255,255$1522,190,255,255,255$1523,190,255,255,255$1525,190,0,0,0$1526,190,0,0,0$1527,190,0,0,0$1528,190,0,0,0$1529,190,0,0,0$1530,190,0,0,0$1531,190,0,0,0$1532,190,0,0,0$1533,190,0,0,0$1534,190,0,0,0$1535,190,0,0,0$1537,190,255,255,255$1538,190,255,255,255$1539,190,255,255,255$1540,190,255,255,255$1541,190,255,255,255$1542,190,255,255,255$1543,190,255,255,255$1544,190,255,255,255$1475,191,0,0,0$1476,191,0,0,0$1477,191,0,0,0$1478,191,0,0,0$1480,191,255,255,255$1481,191,255,255,255$1483,191,0,0,0$1485,191,255,255,255$1486,191,255,255,255$1487,191,255,255,255$1488,191,255,255,255$1489,191,255,255,255$1490,191,255,255,255$1491,191,255,255,255$1492,191,255,255,255$1493,191,255,255,255$1494,191,255,255,255$1495,191,255,255,255$1499,191,0,0,0$1500,191,0,0,0$1501,191,0,0,0$1503,191,255,255,255$1504,191,255,255,255$1505,191,255,255,255$1506,191,255,255,255$1507,191,255,255,255$1509,191,0,0,0$1510,191,0,0,0$1511,191,0,0,0$1512,191,0,0,0$1513,191,0,0,0$1514,191,0,0,0$1515,191,0,0,0$1516,191,0,0,0$1517,191,0,0,0$1519,191,255,255,255$1520,191,255,255,255$1521,191,255,255,255$1522,191,255,255,255$1523,191,255,255,255$1524,191,255,255,255$1525,191,255,255,255$1526,191,255,255,255$1527,191,255,255,255$1528,191,255,255,255$1529,191,255,255,255$1530,191,255,255,255$1531,191,255,255,255$1532,191,255,255,255$1533,191,255,255,255$1534,191,255,255,255$1535,191,255,255,255$1537,191,255,255,255$1538,191,255,255,255$1539,191,255,255,255$1540,191,255,255,255$1541,191,255,255,255$1542,191,255,255,255$1543,191,255,255,255$1544,191,255,255,255$1475,192,0,0,0$1476,192,0,0,0$1477,192,0,0,0$1478,192,0,0,0$1479,192,0,0,0$1484,192,255,255,255$1485,192,255,255,255$1486,192,255,255,255$1487,192,255,255,255$1488,192,255,255,255$1489,192,255,255,255$1490,192,255,255,255$1491,192,255,255,255$1492,192,255,255,255$1493,192,255,255,255$1494,192,255,255,255$1495,192,255,255,255$1496,192,255,255,255$1497,192,255,255,255$1498,192,255,255,255$1502,192,255,255,255$1503,192,255,255,255$1504,192,255,255,255$1505,192,255,255,255$1506,192,255,255,255$1508,192,0,0,0$1509,192,0,0,0$1510,192,0,0,0$1511,192,0,0,0$1512,192,0,0,0$1513,192,0,0,0$1514,192,0,0,0$1515,192,0,0,0$1516,192,0,0,0$1517,192,0,0,0$1519,192,255,255,255$1520,192,255,255,255$1521,192,255,255,255$1522,192,255,255,255$1523,192,255,255,255$1524,192,255,255,255$1525,192,255,255,255$1526,192,255,255,255$1527,192,255,255,255$1528,192,255,255,255$1529,192,255,255,255$1530,192,255,255,255$1531,192,255,255,255$1532,192,255,255,255$1533,192,255,255,255$1534,192,255,255,255$1535,192,255,255,255$1537,192,255,255,255$1538,192,255,255,255$1539,192,255,255,255$1540,192,255,255,255$1541,192,255,255,255$1542,192,255,255,255$1543,192,255,255,255$1544,192,255,255,255$1475,193,0,0,0$1476,193,0,0,0$1477,193,0,0,0$1478,193,0,0,0$1479,193,0,0,0$1482,193,255,255,255$1483,193,255,255,255$1484,193,255,255,255$1485,193,255,255,255$1486,193,255,255,255$1487,193,255,255,255$1488,193,255,255,255$1489,193,255,255,255$1490,193,255,255,255$1491,193,255,255,255$1492,193,255,255,255$1493,193,255,255,255$1494,193,255,255,255$1495,193,255,255,255$1496,193,255,255,255$1497,193,255,255,255$1498,193,255,255,255$1501,193,255,255,255$1502,193,255,255,255$1503,193,255,255,255$1504,193,255,255,255$1505,193,255,255,255$1506,193,255,255,255$1508,193,0,0,0$1509,193,0,0,0$1510,193,0,0,0$1511,193,0,0,0$1512,193,0,0,0$1513,193,0,0,0$1514,193,0,0,0$1515,193,0,0,0$1516,193,0,0,0$1517,193,0,0,0$1519,193,255,255,255$1520,193,255,255,255$1521,193,255,255,255$1522,193,255,255,255$1523,193,255,255,255$1524,193,255,255,255$1525,193,255,255,255$1526,193,255,255,255$1527,193,255,255,255$1528,193,255,255,255$1529,193,255,255,255$1530,193,255,255,255$1531,193,255,255,255$1532,193,255,255,255$1533,193,255,255,255$1534,193,255,255,255$1537,193,255,255,255$1538,193,255,255,255$1539,193,255,255,255$1540,193,255,255,255$1541,193,255,255,255$1542,193,255,255,255$1543,193,255,255,255$1544,193,255,255,255$1475,194,0,0,0$1476,194,0,0,0$1477,194,0,0,0$1480,194,255,255,255$1481,194,255,255,255$1482,194,255,255,255$1483,194,255,255,255$1484,194,255,255,255$1485,194,255,255,255$1486,194,255,255,255$1487,194,255,255,255$1488,194,255,255,255$1491,194,255,255,255$1494,194,255,255,255$1495,194,255,255,255$1496,194,255,255,255$1497,194,255,255,255$1498,194,255,255,255$1499,194,255,255,255$1500,194,255,255,255$1501,194,255,255,255$1502,194,255,255,255$1503,194,255,255,255$1504,194,255,255,255$1505,194,255,255,255$1507,194,0,0,0$1508,194,0,0,0$1509,194,0,0,0$1510,194,0,0,0$1511,194,0,0,0$1512,194,0,0,0$1513,194,0,0,0$1514,194,0,0,0$1515,194,0,0,0$1516,194,0,0,0$1517,194,0,0,0$1519,194,255,255,255$1520,194,255,255,255$1521,194,255,255,255$1522,194,255,255,255$1523,194,255,255,255$1524,194,255,255,255$1525,194,255,255,255$1526,194,255,255,255$1527,194,255,255,255$1528,194,255,255,255$1529,194,255,255,255$1530,194,255,255,255$1531,194,255,255,255$1532,194,255,255,255$1533,194,255,255,255$1534,194,255,255,255$1538,194,255,255,255$1539,194,255,255,255$1540,194,255,255,255$1541,194,255,255,255$1542,194,255,255,255$1544,194,255,255,255$1475,195,0,0,0$1477,195,255,255,255$1478,195,255,255,255$1479,195,255,255,255$1480,195,255,255,255$1481,195,255,255,255$1482,195,255,255,255$1483,195,255,255,255$1484,195,255,255,255$1485,195,255,255,255$1486,195,255,255,255$1487,195,255,255,255$1488,195,255,255,255$1490,195,0,0,0$1492,195,0,0,0$1494,195,255,255,255$1495,195,255,255,255$1496,195,255,255,255$1497,195,255,255,255$1498,195,255,255,255$1499,195,255,255,255$1500,195,255,255,255$1501,195,255,255,255$1502,195,255,255,255$1503,195,255,255,255$1504,195,255,255,255$1506,195,0,0,0$1507,195,0,0,0$1508,195,0,0,0$1509,195,0,0,0$1510,195,0,0,0$1511,195,0,0,0$1512,195,0,0,0$1513,195,0,0,0$1514,195,0,0,0$1515,195,0,0,0$1516,195,0,0,0$1517,195,0,0,0$1519,195,255,255,255$1520,195,255,255,255$1521,195,255,255,255$1522,195,255,255,255$1523,195,255,255,255$1524,195,255,255,255$1525,195,255,255,255$1526,195,255,255,255$1527,195,255,255,255$1528,195,255,255,255$1529,195,255,255,255$1530,195,255,255,255$1531,195,255,255,255$1532,195,255,255,255$1533,195,255,255,255$1534,195,255,255,255$1536,195,0,0,0$1538,195,255,255,255$1539,195,255,255,255$1540,195,255,255,255$1541,195,255,255,255$1544,195,255,255,255$1475,196,0,0,0$1476,196,255,255,255$1477,196,255,255,255$1478,196,255,255,255$1479,196,255,255,255$1480,196,255,255,255$1481,196,255,255,255$1482,196,255,255,255$1483,196,255,255,255$1484,196,255,255,255$1485,196,255,255,255$1486,196,255,255,255$1487,196,255,255,255$1488,196,255,255,255$1490,196,0,0,0$1491,196,0,0,0$1492,196,0,0,0$1493,196,0,0,0$1495,196,255,255,255$1496,196,255,255,255$1497,196,255,255,255$1498,196,255,255,255$1499,196,255,255,255$1500,196,255,255,255$1501,196,255,255,255$1502,196,255,255,255$1503,196,255,255,255$1505,196,0,0,0$1506,196,0,0,0$1507,196,0,0,0$1508,196,0,0,0$1509,196,0,0,0$1510,196,0,0,0$1511,196,0,0,0$1512,196,0,0,0$1513,196,0,0,0$1514,196,0,0,0$1515,196,0,0,0$1516,196,0,0,0$1517,196,0,0,0$1518,196,255,255,255$1519,196,255,255,255$1520,196,255,255,255$1521,196,255,255,255$1522,196,255,255,255$1525,196,255,255,255$1526,196,255,255,255$1527,196,255,255,255$1528,196,255,255,255$1536,196,0,0,0$1538,196,255,255,255$1539,196,255,255,255$1540,196,255,255,255$1541,196,255,255,255$1544,196,255,255,255$1475,197,0,0,0$1477,197,255,255,255$1478,197,255,255,255$1479,197,255,255,255$1480,197,255,255,255$1481,197,255,255,255$1482,197,255,255,255$1483,197,255,255,255$1484,197,255,255,255$1485,197,255,255,255$1486,197,255,255,255$1487,197,255,255,255$1488,197,255,255,255$1490,197,0,0,0$1494,197,255,255,255$1495,197,255,255,255$1496,197,255,255,255$1497,197,255,255,255$1498,197,255,255,255$1499,197,255,255,255$1500,197,255,255,255$1501,197,255,255,255$1502,197,255,255,255$1504,197,0,0,0$1505,197,0,0,0$1506,197,0,0,0$1507,197,0,0,0$1508,197,0,0,0$1509,197,0,0,0$1510,197,0,0,0$1511,197,0,0,0$1512,197,0,0,0$1513,197,0,0,0$1514,197,0,0,0$1515,197,0,0,0$1516,197,0,0,0$1518,197,255,255,255$1519,197,255,255,255$1520,197,255,255,255$1521,197,255,255,255$1522,197,255,255,255$1525,197,255,255,255$1526,197,255,255,255$1527,197,255,255,255$1528,197,255,255,255$1530,197,0,0,0$1531,197,0,0,0$1532,197,0,0,0$1533,197,0,0,0$1534,197,0,0,0$1535,197,0,0,0$1536,197,0,0,0$1537,197,255,255,255$1538,197,255,255,255$1539,197,255,255,255$1540,197,255,255,255$1541,197,255,255,255$1544,197,255,255,255$1475,198,0,0,0$1477,198,255,255,255$1478,198,255,255,255$1479,198,255,255,255$1480,198,255,255,255$1481,198,255,255,255$1482,198,255,255,255$1483,198,255,255,255$1484,198,255,255,255$1485,198,255,255,255$1486,198,255,255,255$1487,198,255,255,255$1488,198,255,255,255$1491,198,255,255,255$1492,198,255,255,255$1493,198,255,255,255$1494,198,255,255,255$1495,198,255,255,255$1496,198,255,255,255$1497,198,255,255,255$1498,198,255,255,255$1499,198,255,255,255$1500,198,255,255,255$1501,198,255,255,255$1503,198,0,0,0$1504,198,0,0,0$1505,198,0,0,0$1506,198,0,0,0$1507,198,0,0,0$1508,198,0,0,0$1509,198,0,0,0$1510,198,0,0,0$1511,198,0,0,0$1512,198,0,0,0$1513,198,0,0,0$1514,198,0,0,0$1515,198,0,0,0$1516,198,0,0,0$1518,198,255,255,255$1519,198,255,255,255$1520,198,255,255,255$1521,198,255,255,255$1522,198,255,255,255$1523,198,0,0,0$1524,198,255,255,255$1525,198,255,255,255$1526,198,255,255,255$1527,198,255,255,255$1528,198,255,255,255$1529,198,255,255,255$1530,198,255,255,255$1531,198,255,255,255$1532,198,255,255,255$1533,198,255,255,255$1535,198,0,0,0$1537,198,255,255,255$1538,198,255,255,255$1539,198,255,255,255$1540,198,255,255,255$1541,198,255,255,255$1543,198,255,255,255$1544,198,255,255,255$1475,199,0,0,0$1477,199,255,255,255$1478,199,255,255,255$1479,199,255,255,255$1483,199,255,255,255$1484,199,255,255,255$1485,199,255,255,255$1486,199,255,255,255$1487,199,255,255,255$1488,199,255,255,255$1489,199,0,0,0$1491,199,255,255,255$1492,199,255,255,255$1493,199,255,255,255$1494,199,255,255,255$1495,199,255,255,255$1496,199,255,255,255$1497,199,255,255,255$1498,199,255,255,255$1499,199,255,255,255$1502,199,0,0,0$1503,199,0,0,0$1504,199,0,0,0$1505,199,0,0,0$1506,199,0,0,0$1507,199,0,0,0$1508,199,0,0,0$1509,199,0,0,0$1510,199,0,0,0$1511,199,0,0,0$1512,199,0,0,0$1513,199,0,0,0$1514,199,0,0,0$1515,199,0,0,0$1516,199,0,0,0$1518,199,255,255,255$1519,199,255,255,255$1520,199,255,255,255$1521,199,255,255,255$1524,199,255,255,255$1525,199,255,255,255$1526,199,255,255,255$1527,199,255,255,255$1528,199,255,255,255$1529,199,255,255,255$1530,199,255,255,255$1531,199,255,255,255$1532,199,255,255,255$1533,199,255,255,255$1535,199,0,0,0$1537,199,255,255,255$1538,199,255,255,255$1539,199,255,255,255$1540,199,255,255,255$1541,199,255,255,255$1543,199,255,255,255$1544,199,255,255,255$1475,200,0,0,0$1476,200,0,0,0$1480,200,0,0,0$1481,200,0,0,0$1483,200,255,255,255$1484,200,255,255,255$1485,200,255,255,255$1486,200,255,255,255$1487,200,255,255,255$1492,200,255,255,255$1493,200,255,255,255$1494,200,255,255,255$1495,200,255,255,255$1496,200,255,255,255$1497,200,255,255,255$1500,200,0,0,0$1501,200,0,0,0$1502,200,0,0,0$1503,200,0,0,0$1504,200,0,0,0$1505,200,0,0,0$1506,200,0,0,0$1507,200,0,0,0$1508,200,0,0,0$1509,200,0,0,0$1510,200,0,0,0$1511,200,0,0,0$1512,200,0,0,0$1513,200,0,0,0$1514,200,0,0,0$1515,200,0,0,0$1516,200,0,0,0$1518,200,255,255,255$1519,200,255,255,255$1520,200,255,255,255$1521,200,255,255,255$1524,200,255,255,255$1525,200,255,255,255$1526,200,255,255,255$1527,200,255,255,255$1528,200,255,255,255$1529,200,255,255,255$1530,200,255,255,255$1531,200,255,255,255$1532,200,255,255,255$1533,200,255,255,255$1535,200,0,0,0$1537,200,255,255,255$1538,200,255,255,255$1539,200,255,255,255$1540,200,255,255,255$1543,200,255,255,255$1544,200,255,255,255$1475,201,0,0,0$1476,201,0,0,0$1478,201,0,0,0$1479,201,0,0,0$1480,201,0,0,0$1481,201,0,0,0$1483,201,255,255,255$1484,201,255,255,255$1485,201,255,255,255$1486,201,255,255,255$1487,201,255,255,255$1488,201,255,255,255$1489,201,255,255,255$1490,201,255,255,255$1491,201,255,255,255$1492,201,255,255,255$1493,201,255,255,255$1494,201,255,255,255$1495,201,255,255,255$1498,201,0,0,0$1499,201,0,0,0$1500,201,0,0,0$1501,201,0,0,0$1502,201,0,0,0$1503,201,0,0,0$1504,201,0,0,0$1505,201,0,0,0$1506,201,0,0,0$1507,201,0,0,0$1508,201,0,0,0$1509,201,0,0,0$1510,201,0,0,0$1511,201,0,0,0$1512,201,0,0,0$1513,201,0,0,0$1514,201,0,0,0$1515,201,0,0,0$1516,201,0,0,0$1517,201,255,255,255$1518,201,255,255,255$1519,201,255,255,255$1520,201,255,255,255$1521,201,255,255,255$1524,201,255,255,255$1525,201,255,255,255$1526,201,255,255,255$1527,201,255,255,255$1528,201,255,255,255$1529,201,255,255,255$1530,201,255,255,255$1531,201,255,255,255$1532,201,255,255,255$1533,201,255,255,255$1535,201,0,0,0$1536,201,255,255,255$1537,201,255,255,255$1538,201,255,255,255$1539,201,255,255,255$1540,201,255,255,255$1543,201,255,255,255$1544,201,255,255,255$1475,202,0,0,0$1476,202,0,0,0$1477,202,0,0,0$1478,202,0,0,0$1479,202,0,0,0$1480,202,0,0,0$1481,202,0,0,0$1482,202,0,0,0$1483,202,0,0,0$1484,202,0,0,0$1485,202,0,0,0$1486,202,0,0,0$1488,202,255,255,255$1489,202,255,255,255$1490,202,255,255,255$1491,202,255,255,255$1492,202,255,255,255$1493,202,255,255,255$1496,202,0,0,0$1497,202,0,0,0$1498,202,0,0,0$1499,202,0,0,0$1500,202,0,0,0$1501,202,0,0,0$1502,202,0,0,0$1503,202,0,0,0$1504,202,0,0,0$1505,202,0,0,0$1506,202,0,0,0$1507,202,0,0,0$1508,202,0,0,0$1509,202,0,0,0$1510,202,0,0,0$1511,202,0,0,0$1512,202,0,0,0$1513,202,0,0,0$1514,202,0,0,0$1515,202,0,0,0$1517,202,255,255,255$1518,202,255,255,255$1519,202,255,255,255$1520,202,255,255,255$1521,202,255,255,255$1524,202,255,255,255$1525,202,255,255,255$1526,202,255,255,255$1527,202,255,255,255$1528,202,255,255,255$1529,202,255,255,255$1530,202,255,255,255$1531,202,255,255,255$1532,202,255,255,255$1533,202,255,255,255$1536,202,255,255,255$1537,202,255,255,255$1538,202,255,255,255$1539,202,255,255,255$1540,202,255,255,255$1543,202,255,255,255$1544,202,255,255,255$1475,203,255,255,255$1476,203,255,255,255$1477,203,255,255,255$1478,203,255,255,255$1479,203,255,255,255$1480,203,255,255,255$1481,203,255,255,255$1482,203,255,255,255$1483,203,255,255,255$1484,203,255,255,255$1485,203,255,255,255$1486,203,255,255,255$1487,203,255,255,255$1488,203,255,255,255$1489,203,255,255,255$1490,203,255,255,255$1491,203,255,255,255$1492,203,255,255,255$1493,203,255,255,255$1494,203,255,255,255$1495,203,255,255,255$1496,203,255,255,255$1497,203,255,255,255$1498,203,255,255,255$1499,203,255,255,255$1500,203,255,255,255$1501,203,255,255,255$1502,203,255,255,255$1503,203,255,255,255$1504,203,255,255,255$1505,203,255,255,255$1507,203,0,0,0$1508,203,0,0,0$1509,203,0,0,0$1510,203,0,0,0$1511,203,0,0,0$1512,203,0,0,0$1513,203,0,0,0$1514,203,0,0,0$1515,203,0,0,0$1517,203,255,255,255$1518,203,255,255,255$1519,203,255,255,255$1520,203,255,255,255$1521,203,255,255,255$1523,203,255,255,255$1524,203,255,255,255$1525,203,255,255,255$1526,203,255,255,255$1527,203,255,255,255$1529,203,255,255,255$1530,203,255,255,255$1531,203,255,255,255$1532,203,255,255,255$1533,203,255,255,255$1534,203,0,0,0$1536,203,255,255,255$1537,203,255,255,255$1538,203,255,255,255$1539,203,255,255,255$1540,203,255,255,255$1541,203,0,0,0$1543,203,255,255,255$1544,203,255,255,255$1475,204,255,255,255$1476,204,255,255,255$1477,204,255,255,255$1478,204,255,255,255$1479,204,255,255,255$1480,204,255,255,255$1481,204,255,255,255$1482,204,255,255,255$1483,204,255,255,255$1484,204,255,255,255$1485,204,255,255,255$1486,204,255,255,255$1487,204,255,255,255$1488,204,255,255,255$1489,204,255,255,255$1490,204,255,255,255$1491,204,255,255,255$1492,204,255,255,255$1493,204,255,255,255$1494,204,255,255,255$1495,204,255,255,255$1496,204,255,255,255$1497,204,255,255,255$1498,204,255,255,255$1499,204,255,255,255$1500,204,255,255,255$1501,204,255,255,255$1502,204,255,255,255$1503,204,255,255,255$1504,204,255,255,255$1505,204,255,255,255$1507,204,0,0,0$1508,204,0,0,0$1509,204,0,0,0$1510,204,0,0,0$1511,204,0,0,0$1512,204,0,0,0$1513,204,0,0,0$1514,204,0,0,0$1515,204,0,0,0$1517,204,255,255,255$1518,204,255,255,255$1519,204,255,255,255$1520,204,255,255,255$1523,204,255,255,255$1524,204,255,255,255$1525,204,255,255,255$1526,204,255,255,255$1527,204,255,255,255$1529,204,255,255,255$1530,204,255,255,255$1531,204,255,255,255$1532,204,255,255,255$1534,204,0,0,0$1535,204,255,255,255$1536,204,255,255,255$1537,204,255,255,255$1538,204,255,255,255$1539,204,255,255,255$1541,204,0,0,0$1542,204,255,255,255$1543,204,255,255,255$1544,204,255,255,255$1475,205,255,255,255$1476,205,255,255,255$1477,205,255,255,255$1478,205,255,255,255$1479,205,255,255,255$1480,205,255,255,255$1481,205,255,255,255$1482,205,255,255,255$1483,205,255,255,255$1484,205,255,255,255$1485,205,255,255,255$1486,205,255,255,255$1487,205,255,255,255$1488,205,255,255,255$1489,205,255,255,255$1490,205,255,255,255$1491,205,255,255,255$1492,205,255,255,255$1493,205,255,255,255$1494,205,255,255,255$1495,205,255,255,255$1496,205,255,255,255$1497,205,255,255,255$1498,205,255,255,255$1499,205,255,255,255$1500,205,255,255,255$1501,205,255,255,255$1502,205,255,255,255$1503,205,255,255,255$1504,205,255,255,255$1505,205,255,255,255$1507,205,0,0,0$1508,205,0,0,0$1509,205,0,0,0$1510,205,0,0,0$1511,205,0,0,0$1512,205,0,0,0$1513,205,0,0,0$1514,205,0,0,0$1515,205,0,0,0$1516,205,255,255,255$1517,205,255,255,255$1518,205,255,255,255$1519,205,255,255,255$1520,205,255,255,255$1523,205,255,255,255$1524,205,255,255,255$1525,205,255,255,255$1526,205,255,255,255$1529,205,255,255,255$1530,205,255,255,255$1531,205,255,255,255$1532,205,255,255,255$1535,205,255,255,255$1536,205,255,255,255$1537,205,255,255,255$1538,205,255,255,255$1539,205,255,255,255$1542,205,255,255,255$1543,205,255,255,255$1544,205,255,255,255$1475,206,255,255,255$1476,206,255,255,255$1477,206,255,255,255$1478,206,255,255,255$1479,206,255,255,255$1480,206,255,255,255$1481,206,255,255,255$1482,206,255,255,255$1483,206,255,255,255$1484,206,255,255,255$1485,206,255,255,255$1486,206,255,255,255$1487,206,255,255,255$1488,206,255,255,255$1489,206,255,255,255$1490,206,255,255,255$1491,206,255,255,255$1492,206,255,255,255$1493,206,255,255,255$1494,206,255,255,255$1495,206,255,255,255$1496,206,255,255,255$1497,206,255,255,255$1498,206,255,255,255$1499,206,255,255,255$1500,206,255,255,255$1501,206,255,255,255$1502,206,255,255,255$1503,206,255,255,255$1504,206,255,255,255$1505,206,255,255,255$1507,206,0,0,0$1508,206,0,0,0$1509,206,0,0,0$1510,206,0,0,0$1511,206,0,0,0$1512,206,0,0,0$1513,206,0,0,0$1514,206,0,0,0$1516,206,255,255,255$1517,206,255,255,255$1518,206,255,255,255$1519,206,255,255,255$1520,206,255,255,255$1522,206,255,255,255$1523,206,255,255,255$1524,206,255,255,255$1525,206,255,255,255$1526,206,255,255,255$1529,206,255,255,255$1530,206,255,255,255$1531,206,255,255,255$1532,206,255,255,255$1535,206,255,255,255$1536,206,255,255,255$1537,206,255,255,255$1538,206,255,255,255$1539,206,255,255,255$1540,206,0,0,0$1542,206,255,255,255$1543,206,255,255,255$1544,206,255,255,255$1475,207,255,255,255$1476,207,255,255,255$1477,207,255,255,255$1478,207,255,255,255$1479,207,255,255,255$1480,207,255,255,255$1481,207,255,255,255$1482,207,255,255,255$1483,207,255,255,255$1484,207,255,255,255$1485,207,255,255,255$1486,207,255,255,255$1487,207,255,255,255$1488,207,255,255,255$1489,207,255,255,255$1490,207,255,255,255$1491,207,255,255,255$1492,207,255,255,255$1493,207,255,255,255$1494,207,255,255,255$1495,207,255,255,255$1496,207,255,255,255$1497,207,255,255,255$1498,207,255,255,255$1499,207,255,255,255$1500,207,255,255,255$1501,207,255,255,255$1502,207,255,255,255$1503,207,255,255,255$1504,207,255,255,255$1505,207,255,255,255$1507,207,0,0,0$1508,207,0,0,0$1509,207,0,0,0$1510,207,0,0,0$1511,207,0,0,0$1512,207,0,0,0$1513,207,0,0,0$1514,207,0,0,0$1516,207,255,255,255$1517,207,255,255,255$1518,207,255,255,255$1519,207,255,255,255$1520,207,255,255,255$1522,207,255,255,255$1523,207,255,255,255$1524,207,255,255,255$1525,207,255,255,255$1526,207,255,255,255$1527,207,0,0,0$1528,207,255,255,255$1529,207,255,255,255$1530,207,255,255,255$1531,207,255,255,255$1532,207,255,255,255$1534,207,255,255,255$1535,207,255,255,255$1536,207,255,255,255$1537,207,255,255,255$1538,207,255,255,255$1540,207,0,0,0$1542,207,255,255,255$1543,207,255,255,255$1544,207,255,255,255$1484,208,255,255,255$1485,208,255,255,255$1486,208,255,255,255$1487,208,255,255,255$1488,208,255,255,255$1489,208,255,255,255$1490,208,255,255,255$1491,208,255,255,255$1492,208,255,255,255$1493,208,255,255,255$1494,208,255,255,255$1495,208,255,255,255$1506,208,0,0,0$1507,208,0,0,0$1508,208,0,0,0$1509,208,0,0,0$1510,208,0,0,0$1511,208,0,0,0$1512,208,0,0,0$1513,208,0,0,0$1515,208,255,255,255$1516,208,255,255,255$1517,208,255,255,255$1518,208,255,255,255$1519,208,255,255,255$1520,208,255,255,255$1521,208,255,255,255$1522,208,255,255,255$1523,208,255,255,255$1524,208,255,255,255$1525,208,255,255,255$1528,208,255,255,255$1529,208,255,255,255$1530,208,255,255,255$1531,208,255,255,255$1532,208,255,255,255$1533,208,255,255,255$1534,208,255,255,255$1535,208,255,255,255$1536,208,255,255,255$1537,208,255,255,255$1538,208,255,255,255$1541,208,255,255,255$1542,208,255,255,255$1543,208,255,255,255$1544,208,255,255,255$1475,209,0,0,0$1476,209,0,0,0$1477,209,0,0,0$1478,209,0,0,0$1483,209,255,255,255$1484,209,255,255,255$1485,209,255,255,255$1486,209,255,255,255$1487,209,255,255,255$1488,209,255,255,255$1489,209,255,255,255$1490,209,255,255,255$1491,209,255,255,255$1492,209,255,255,255$1493,209,255,255,255$1494,209,255,255,255$1495,209,255,255,255$1496,209,255,255,255$1503,209,0,0,0$1504,209,0,0,0$1505,209,0,0,0$1506,209,0,0,0$1507,209,0,0,0$1508,209,0,0,0$1509,209,0,0,0$1510,209,0,0,0$1511,209,0,0,0$1512,209,0,0,0$1513,209,0,0,0$1515,209,255,255,255$1516,209,255,255,255$1517,209,255,255,255$1518,209,255,255,255$1519,209,255,255,255$1520,209,255,255,255$1521,209,255,255,255$1522,209,255,255,255$1523,209,255,255,255$1524,209,255,255,255$1525,209,255,255,255$1528,209,255,255,255$1529,209,255,255,255$1530,209,255,255,255$1531,209,255,255,255$1532,209,255,255,255$1533,209,255,255,255$1534,209,255,255,255$1535,209,255,255,255$1536,209,255,255,255$1537,209,255,255,255$1540,209,255,255,255$1541,209,255,255,255$1542,209,255,255,255$1543,209,255,255,255$1544,209,255,255,255$1475,210,255,255,255$1476,210,255,255,255$1477,210,255,255,255$1478,210,255,255,255$1479,210,255,255,255$1480,210,255,255,255$1481,210,255,255,255$1482,210,255,255,255$1483,210,255,255,255$1484,210,255,255,255$1485,210,255,255,255$1486,210,255,255,255$1487,210,255,255,255$1488,210,255,255,255$1489,210,255,255,255$1490,210,255,255,255$1491,210,255,255,255$1492,210,255,255,255$1493,210,255,255,255$1494,210,255,255,255$1495,210,255,255,255$1496,210,255,255,255$1497,210,255,255,255$1498,210,255,255,255$1499,210,255,255,255$1500,210,255,255,255$1501,210,255,255,255$1502,210,255,255,255$1503,210,255,255,255$1504,210,255,255,255$1506,210,0,0,0$1507,210,0,0,0$1508,210,0,0,0$1509,210,0,0,0$1510,210,0,0,0$1511,210,0,0,0$1512,210,0,0,0$1514,210,255,255,255$1515,210,255,255,255$1516,210,255,255,255$1517,210,255,255,255$1518,210,255,255,255$1519,210,255,255,255$1520,210,255,255,255$1521,210,255,255,255$1522,210,255,255,255$1523,210,255,255,255$1524,210,255,255,255$1525,210,255,255,255$1526,210,255,255,255$1527,210,255,255,255$1528,210,255,255,255$1529,210,255,255,255$1530,210,255,255,255$1531,210,255,255,255$1532,210,255,255,255$1533,210,255,255,255$1534,210,255,255,255$1535,210,255,255,255$1536,210,255,255,255$1537,210,255,255,255$1538,210,255,255,255$1539,210,255,255,255$1540,210,255,255,255$1541,210,255,255,255$1542,210,255,255,255$1543,210,255,255,255$1544,210,255,255,255$1475,211,255,255,255$1476,211,255,255,255$1477,211,255,255,255$1478,211,255,255,255$1479,211,255,255,255$1480,211,255,255,255$1481,211,255,255,255$1482,211,255,255,255$1483,211,255,255,255$1484,211,255,255,255$1485,211,255,255,255$1486,211,255,255,255$1487,211,255,255,255$1488,211,255,255,255$1490,211,255,255,255$1491,211,255,255,255$1492,211,255,255,255$1493,211,255,255,255$1494,211,255,255,255$1495,211,255,255,255$1496,211,255,255,255$1497,211,255,255,255$1498,211,255,255,255$1499,211,255,255,255$1500,211,255,255,255$1501,211,255,255,255$1502,211,255,255,255$1503,211,255,255,255$1504,211,255,255,255$1506,211,0,0,0$1507,211,0,0,0$1508,211,0,0,0$1509,211,0,0,0$1510,211,0,0,0$1511,211,0,0,0$1512,211,0,0,0$1513,211,255,255,255$1514,211,255,255,255$1515,211,255,255,255$1516,211,255,255,255$1517,211,255,255,255$1518,211,255,255,255$1519,211,255,255,255$1520,211,255,255,255$1521,211,255,255,255$1522,211,255,255,255$1523,211,255,255,255$1524,211,255,255,255$1525,211,255,255,255$1526,211,255,255,255$1527,211,255,255,255$1528,211,255,255,255$1529,211,255,255,255$1530,211,255,255,255$1531,211,255,255,255$1532,211,255,255,255$1533,211,255,255,255$1534,211,255,255,255$1535,211,255,255,255$1536,211,255,255,255$1537,211,255,255,255$1538,211,255,255,255$1539,211,255,255,255$1540,211,255,255,255$1541,211,255,255,255$1542,211,255,255,255$1543,211,255,255,255$1544,211,255,255,255$1475,212,255,255,255$1476,212,255,255,255$1477,212,255,255,255$1478,212,255,255,255$1479,212,255,255,255$1480,212,255,255,255$1481,212,255,255,255$1482,212,255,255,255$1483,212,255,255,255$1484,212,255,255,255$1485,212,255,255,255$1486,212,255,255,255$1489,212,0,0,0$1491,212,255,255,255$1492,212,255,255,255$1493,212,255,255,255$1494,212,255,255,255$1495,212,255,255,255$1496,212,255,255,255$1497,212,255,255,255$1498,212,255,255,255$1499,212,255,255,255$1500,212,255,255,255$1501,212,255,255,255$1502,212,255,255,255$1503,212,255,255,255$1505,212,0,0,0$1506,212,0,0,0$1507,212,0,0,0$1508,212,0,0,0$1509,212,0,0,0$1510,212,0,0,0$1511,212,0,0,0$1512,212,0,0,0$1514,212,255,255,255$1515,212,255,255,255$1516,212,255,255,255$1517,212,255,255,255$1518,212,255,255,255$1519,212,255,255,255$1520,212,255,255,255$1521,212,255,255,255$1522,212,255,255,255$1523,212,255,255,255$1524,212,255,255,255$1525,212,255,255,255$1526,212,255,255,255$1527,212,255,255,255$1528,212,255,255,255$1529,212,255,255,255$1530,212,255,255,255$1531,212,255,255,255$1532,212,255,255,255$1533,212,255,255,255$1534,212,255,255,255$1535,212,255,255,255$1536,212,255,255,255$1537,212,255,255,255$1538,212,255,255,255$1539,212,255,255,255$1540,212,255,255,255$1541,212,255,255,255$1542,212,255,255,255$1543,212,255,255,255$1544,212,255,255,255$1475,213,255,255,255$1476,213,255,255,255$1477,213,255,255,255$1478,213,255,255,255$1479,213,255,255,255$1480,213,255,255,255$1481,213,255,255,255$1482,213,255,255,255$1483,213,255,255,255$1484,213,255,255,255$1485,213,255,255,255$1487,213,0,0,0$1488,213,0,0,0$1489,213,0,0,0$1490,213,0,0,0$1493,213,255,255,255$1494,213,255,255,255$1495,213,255,255,255$1496,213,255,255,255$1497,213,255,255,255$1498,213,255,255,255$1499,213,255,255,255$1500,213,255,255,255$1501,213,255,255,255$1502,213,255,255,255$1503,213,255,255,255$1505,213,0,0,0$1506,213,0,0,0$1507,213,0,0,0$1508,213,0,0,0$1509,213,0,0,0$1510,213,0,0,0$1511,213,0,0,0$1512,213,0,0,0$1515,213,255,255,255$1516,213,255,255,255$1517,213,255,255,255$1518,213,255,255,255$1519,213,255,255,255$1520,213,255,255,255$1521,213,255,255,255$1522,213,255,255,255$1525,213,255,255,255$1526,213,255,255,255$1527,213,255,255,255$1528,213,255,255,255$1529,213,255,255,255$1530,213,255,255,255$1531,213,255,255,255$1532,213,255,255,255$1533,213,255,255,255$1534,213,255,255,255$1535,213,255,255,255$1538,213,255,255,255$1539,213,255,255,255$1540,213,255,255,255$1541,213,255,255,255$1542,213,255,255,255$1543,213,255,255,255$1476,214,255,255,255$1477,214,255,255,255$1478,214,255,255,255$1479,214,255,255,255$1480,214,255,255,255$1481,214,255,255,255$1482,214,255,255,255$1486,214,0,0,0$1487,214,0,0,0$1488,214,0,0,0$1489,214,0,0,0$1490,214,0,0,0$1491,214,0,0,0$1492,214,0,0,0$1495,214,255,255,255$1496,214,255,255,255$1497,214,255,255,255$1498,214,255,255,255$1499,214,255,255,255$1500,214,255,255,255$1501,214,255,255,255$1502,214,255,255,255$1504,214,0,0,0$1505,214,0,0,0$1506,214,0,0,0$1507,214,0,0,0$1508,214,0,0,0$1509,214,0,0,0$1510,214,0,0,0$1511,214,0,0,0$1512,214,0,0,0$1513,214,0,0,0$1515,214,255,255,255$1516,214,255,255,255$1519,214,255,255,255$1520,214,255,255,255$1521,214,255,255,255$1523,214,0,0,0$1525,214,255,255,255$1526,214,255,255,255$1527,214,255,255,255$1528,214,255,255,255$1529,214,255,255,255$1532,214,255,255,255$1533,214,255,255,255$1534,214,255,255,255$1535,214,255,255,255$1538,214,255,255,255$1539,214,255,255,255$1540,214,255,255,255$1541,214,255,255,255$1542,214,255,255,255$1543,214,255,255,255");
public static bool IsJiangli(Image image, ZTRectangle gameRect)
{
ZTRectangle limit = new ZTRectangle(300,20, 455, 100);
ZTRectangle position = ZTRectangle.Empty;
return CVHelper.FindColorArrayForThreshold(out position, image, JiangliText, limit);
}
///
/// 凛冬所有房间刷完之后的那个加号
///
public static ColorArray LindongPlus = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "1149,178,213,156,48$1148,174,255,201,99$1149,174,255,211,127$1148,178,217,159,50$1144,178,255,201,95$1144,177,255,201,99$1152,177,214,169,83$1152,178,191,139,37$1149,181,192,153,74$1148,181,189,137,36$1147,181,109,8,6$1147,174,115,9,5");
public static bool IsCompleteRoom(Image image, ZTRectangle gameRect)
{
ZTRectangle limit = new ZTRectangle(gameRect.Start.X +630, gameRect.Start.Y + 162, gameRect.Start.X +700, gameRect.Start.Y + 200);
ZTRectangle position = ZTRectangle.Empty;
return CVHelper.FindColorArray(out position, image, LindongPlus, limit);
}
///
/// 出售物品的关闭按钮
///
public static ColorArray shopCloseButton = ColorArray.FromThresholdString(130, "550,457,255,255,255$542,450,255,255,255$543,450,255,255,255$552,450,255,255,255$553,450,255,255,255$542,451,0,0,0$543,451,255,255,255$544,451,255,255,255$551,451,255,255,255$552,451,255,255,255$553,451,0,0,0$543,452,0,0,0$544,452,255,255,255$545,452,255,255,255$550,452,255,255,255$551,452,255,255,255$552,452,0,0,0$544,453,0,0,0$545,453,255,255,255$546,453,255,255,255$549,453,255,255,255$550,453,255,255,255$551,453,0,0,0$545,454,0,0,0$546,454,255,255,255$547,454,255,255,255$548,454,255,255,255$549,454,255,255,255$550,454,0,0,0$546,455,0,0,0$547,455,255,255,255$548,455,255,255,255$549,455,0,0,0$546,456,255,255,255$547,456,255,255,255$548,456,255,255,255$549,456,255,255,255$545,457,255,255,255$546,457,255,255,255$547,457,0,0,0$548,457,0,0,0$549,457,255,255,255$544,458,255,255,255$545,458,255,255,255$546,458,0,0,0$549,458,0,0,0$550,458,255,255,255$551,458,255,255,255$543,459,255,255,255$544,459,255,255,255$545,459,0,0,0$550,459,0,0,0$551,459,255,255,255$552,459,255,255,255$542,460,255,255,255$543,460,255,255,255$544,460,0,0,0$551,460,0,0,0$552,460,255,255,255$553,460,255,255,255$542,461,0,0,0$543,461,0,0,0$552,461,0,0,0$553,461,0,0,0");
///
/// 出售按钮
///
public static ColorArray shopSaleButton = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "204,516,221,197,147$184,508,221,197,147$184,511,221,197,147$188,511,221,197,147$188,507,221,197,147$192,508,221,197,147$192,511,221,197,147$193,514,221,197,147$193,518,221,197,147$188,517,221,197,147$183,517,221,197,147$183,514,221,197,147$196,516,221,197,147$204,518,221,197,147$196,518,221,197,147$196,514,221,197,147$198,508,221,197,147$201,508,221,197,147$201,507,221,197,147$205,508,221,197,147$204,512,221,197,147$205,514,221,197,147");
public static bool HasSaleButton(out ZTRectangle saleButtonPosition, out ZTRectangle closeButtonPosition, ZTRectangle gameRect)
{
Image image = ScreenCapture.Instance.CaptureScreenReturnImage();
saleButtonPosition = ZTRectangle.Empty;
closeButtonPosition = ZTRectangle.Empty;
if (CVHelper.FindColorArrayForThreshold(out closeButtonPosition, image, shopCloseButton, gameRect))
{
if (CVHelper.FindColorArray(out saleButtonPosition, image, shopSaleButton, gameRect))
{
return true;
}
}
return false;
}
///
/// 魔王的契约黄金牌
///
public static ColorArray glodMowangdeqiyueText = ColorArray.FromThresholdString(160, "1422,632,0,0,0$1410,632,0,0,0$1411,632,0,0,0$1412,632,0,0,0$1413,632,0,0,0$1414,632,0,0,0$1415,632,0,0,0$1416,632,0,0,0$1417,632,0,0,0$1418,632,0,0,0$1419,632,0,0,0$1420,632,0,0,0$1421,632,0,0,0$1423,632,0,0,0$1424,632,0,0,0$1425,632,0,0,0$1426,632,0,0,0$1427,632,0,0,0$1428,632,0,0,0$1429,632,0,0,0$1430,632,0,0,0$1431,632,0,0,0$1432,632,0,0,0$1433,632,0,0,0$1434,632,0,0,0$1435,632,0,0,0$1436,632,0,0,0$1437,632,0,0,0$1438,632,0,0,0$1439,632,0,0,0$1440,632,0,0,0$1441,632,0,0,0$1442,632,0,0,0$1443,632,0,0,0$1444,632,0,0,0$1445,632,0,0,0$1446,632,0,0,0$1447,632,0,0,0$1448,632,0,0,0$1449,632,0,0,0$1450,632,0,0,0$1451,632,0,0,0$1452,632,0,0,0$1453,632,0,0,0$1454,632,0,0,0$1455,632,0,0,0$1456,632,0,0,0$1457,632,0,0,0$1458,632,0,0,0$1459,632,0,0,0$1460,632,0,0,0$1461,632,0,0,0$1462,632,0,0,0$1463,632,0,0,0$1464,632,0,0,0$1465,632,0,0,0$1466,632,0,0,0$1467,632,0,0,0$1468,632,0,0,0$1469,632,0,0,0$1470,632,0,0,0$1471,632,0,0,0$1472,632,0,0,0$1473,632,0,0,0$1474,632,0,0,0$1410,633,0,0,0$1411,633,0,0,0$1412,633,0,0,0$1413,633,0,0,0$1414,633,0,0,0$1415,633,0,0,0$1416,633,0,0,0$1417,633,0,0,0$1418,633,0,0,0$1419,633,0,0,0$1420,633,0,0,0$1421,633,0,0,0$1422,633,0,0,0$1423,633,0,0,0$1424,633,0,0,0$1425,633,0,0,0$1426,633,0,0,0$1427,633,0,0,0$1428,633,0,0,0$1429,633,0,0,0$1430,633,0,0,0$1431,633,0,0,0$1432,633,0,0,0$1433,633,0,0,0$1434,633,0,0,0$1435,633,0,0,0$1436,633,0,0,0$1437,633,0,0,0$1438,633,0,0,0$1439,633,0,0,0$1440,633,0,0,0$1441,633,0,0,0$1442,633,0,0,0$1443,633,0,0,0$1444,633,0,0,0$1445,633,0,0,0$1446,633,0,0,0$1447,633,0,0,0$1448,633,0,0,0$1449,633,0,0,0$1450,633,0,0,0$1451,633,0,0,0$1452,633,0,0,0$1453,633,0,0,0$1454,633,0,0,0$1455,633,0,0,0$1456,633,0,0,0$1457,633,0,0,0$1458,633,0,0,0$1459,633,0,0,0$1460,633,0,0,0$1461,633,0,0,0$1462,633,0,0,0$1463,633,0,0,0$1464,633,0,0,0$1465,633,0,0,0$1466,633,0,0,0$1467,633,0,0,0$1468,633,0,0,0$1469,633,0,0,0$1470,633,0,0,0$1471,633,0,0,0$1472,633,0,0,0$1473,633,0,0,0$1474,633,0,0,0$1410,634,0,0,0$1411,634,0,0,0$1412,634,0,0,0$1413,634,0,0,0$1414,634,0,0,0$1415,634,0,0,0$1416,634,0,0,0$1417,634,0,0,0$1418,634,0,0,0$1419,634,0,0,0$1420,634,0,0,0$1421,634,0,0,0$1422,634,0,0,0$1423,634,0,0,0$1424,634,0,0,0$1425,634,0,0,0$1426,634,0,0,0$1427,634,0,0,0$1428,634,0,0,0$1429,634,0,0,0$1430,634,0,0,0$1431,634,0,0,0$1432,634,0,0,0$1433,634,0,0,0$1434,634,0,0,0$1435,634,0,0,0$1436,634,0,0,0$1437,634,0,0,0$1438,634,0,0,0$1439,634,0,0,0$1440,634,0,0,0$1441,634,0,0,0$1442,634,0,0,0$1443,634,0,0,0$1444,634,0,0,0$1445,634,0,0,0$1446,634,0,0,0$1447,634,0,0,0$1448,634,0,0,0$1449,634,0,0,0$1450,634,0,0,0$1451,634,0,0,0$1452,634,0,0,0$1453,634,0,0,0$1454,634,0,0,0$1455,634,0,0,0$1456,634,0,0,0$1457,634,0,0,0$1458,634,0,0,0$1459,634,0,0,0$1460,634,0,0,0$1461,634,0,0,0$1462,634,0,0,0$1463,634,0,0,0$1464,634,0,0,0$1465,634,0,0,0$1466,634,0,0,0$1467,634,0,0,0$1468,634,0,0,0$1469,634,0,0,0$1470,634,0,0,0$1471,634,0,0,0$1472,634,0,0,0$1473,634,0,0,0$1474,634,0,0,0$1410,635,0,0,0$1411,635,0,0,0$1412,635,0,0,0$1413,635,0,0,0$1414,635,0,0,0$1417,635,0,0,0$1418,635,0,0,0$1419,635,0,0,0$1420,635,0,0,0$1421,635,0,0,0$1422,635,0,0,0$1423,635,0,0,0$1424,635,0,0,0$1425,635,0,0,0$1426,635,0,0,0$1427,635,0,0,0$1428,635,0,0,0$1429,635,0,0,0$1430,635,0,0,0$1431,635,0,0,0$1432,635,0,0,0$1433,635,0,0,0$1434,635,0,0,0$1435,635,0,0,0$1436,635,0,0,0$1437,635,0,0,0$1438,635,0,0,0$1439,635,0,0,0$1440,635,0,0,0$1441,635,0,0,0$1443,635,255,255,255$1444,635,0,0,0$1445,635,0,0,0$1446,635,0,0,0$1447,635,0,0,0$1448,635,0,0,0$1449,635,0,0,0$1450,635,0,0,0$1451,635,0,0,0$1452,635,0,0,0$1453,635,0,0,0$1456,635,0,0,0$1457,635,0,0,0$1461,635,0,0,0$1462,635,0,0,0$1463,635,0,0,0$1464,635,0,0,0$1465,635,0,0,0$1466,635,0,0,0$1469,635,0,0,0$1470,635,0,0,0$1471,635,0,0,0$1472,635,0,0,0$1474,635,0,0,0$1411,636,255,255,255$1412,636,255,255,255$1413,636,255,255,255$1414,636,255,255,255$1415,636,255,255,255$1416,636,255,255,255$1417,636,255,255,255$1418,636,255,255,255$1419,636,255,255,255$1420,636,255,255,255$1422,636,0,0,0$1423,636,0,0,0$1424,636,255,255,255$1425,636,255,255,255$1426,636,255,255,255$1427,636,255,255,255$1428,636,255,255,255$1429,636,255,255,255$1430,636,255,255,255$1431,636,255,255,255$1432,636,255,255,255$1433,636,255,255,255$1435,636,0,0,0$1436,636,0,0,0$1437,636,0,0,0$1438,636,0,0,0$1439,636,0,0,0$1440,636,0,0,0$1441,636,0,0,0$1443,636,255,255,255$1444,636,0,0,0$1445,636,0,0,0$1446,636,0,0,0$1447,636,0,0,0$1448,636,0,0,0$1449,636,0,0,0$1450,636,0,0,0$1454,636,255,255,255$1455,636,255,255,255$1459,636,255,255,255$1460,636,255,255,255$1462,636,255,255,255$1463,636,0,0,0$1464,636,0,0,0$1465,636,0,0,0$1466,636,0,0,0$1467,636,255,255,255$1469,636,0,0,0$1470,636,0,0,0$1471,636,0,0,0$1473,636,255,255,255$1474,636,0,0,0$1418,637,255,255,255$1420,637,0,0,0$1421,637,0,0,0$1422,637,0,0,0$1423,637,0,0,0$1424,637,0,0,0$1429,637,255,255,255$1432,637,0,0,0$1433,637,0,0,0$1434,637,0,0,0$1435,637,0,0,0$1436,637,0,0,0$1437,637,0,0,0$1438,637,0,0,0$1439,637,0,0,0$1440,637,0,0,0$1441,637,0,0,0$1444,637,0,0,0$1445,637,0,0,0$1446,637,0,0,0$1447,637,0,0,0$1448,637,0,0,0$1449,637,0,0,0$1450,637,0,0,0$1451,637,0,0,0$1454,637,255,255,255$1458,637,0,0,0$1459,637,255,255,255$1462,637,255,255,255$1463,637,0,0,0$1464,637,0,0,0$1465,637,0,0,0$1467,637,255,255,255$1468,637,0,0,0$1470,637,0,0,0$1471,637,0,0,0$1472,637,255,255,255$1410,638,255,255,255$1412,638,255,255,255$1413,638,255,255,255$1414,638,255,255,255$1417,638,255,255,255$1418,638,255,255,255$1421,638,0,0,0$1422,638,0,0,0$1423,638,0,0,0$1424,638,0,0,0$1425,638,0,0,0$1426,638,0,0,0$1427,638,0,0,0$1430,638,0,0,0$1431,638,0,0,0$1432,638,0,0,0$1433,638,0,0,0$1434,638,0,0,0$1435,638,0,0,0$1436,638,0,0,0$1437,638,0,0,0$1438,638,255,255,255$1439,638,255,255,255$1440,638,255,255,255$1441,638,255,255,255$1442,638,255,255,255$1443,638,255,255,255$1444,638,255,255,255$1445,638,255,255,255$1446,638,255,255,255$1447,638,255,255,255$1448,638,0,0,0$1449,638,0,0,0$1450,638,0,0,0$1454,638,255,255,255$1456,638,255,255,255$1457,638,0,0,0$1459,638,255,255,255$1463,638,0,0,0$1464,638,0,0,0$1466,638,255,255,255$1469,638,255,255,255$1472,638,255,255,255$1410,639,255,255,255$1412,639,255,255,255$1413,639,255,255,255$1414,639,255,255,255$1417,639,255,255,255$1418,639,255,255,255$1420,639,0,0,0$1421,639,0,0,0$1422,639,0,0,0$1423,639,0,0,0$1424,639,0,0,0$1425,639,0,0,0$1426,639,0,0,0$1427,639,0,0,0$1430,639,0,0,0$1431,639,0,0,0$1432,639,0,0,0$1433,639,0,0,0$1434,639,0,0,0$1435,639,0,0,0$1436,639,0,0,0$1437,639,0,0,0$1438,639,0,0,0$1445,639,255,255,255$1446,639,255,255,255$1448,639,0,0,0$1449,639,0,0,0$1450,639,0,0,0$1451,639,0,0,0$1458,639,255,255,255$1461,639,255,255,255$1463,639,0,0,0$1465,639,255,255,255$1466,639,255,255,255$1468,639,255,255,255$1471,639,255,255,255$1473,639,0,0,0$1474,639,0,0,0$1410,640,255,255,255$1411,640,255,255,255$1413,640,255,255,255$1415,640,255,255,255$1417,640,255,255,255$1421,640,0,0,0$1422,640,0,0,0$1423,640,0,0,0$1428,640,255,255,255$1433,640,0,0,0$1434,640,0,0,0$1435,640,0,0,0$1436,640,0,0,0$1437,640,0,0,0$1438,640,0,0,0$1439,640,0,0,0$1440,640,0,0,0$1441,640,0,0,0$1442,640,0,0,0$1444,640,255,255,255$1446,640,0,0,0$1447,640,0,0,0$1448,640,0,0,0$1449,640,0,0,0$1451,640,255,255,255$1452,640,255,255,255$1453,640,255,255,255$1454,640,255,255,255$1455,640,255,255,255$1456,640,255,255,255$1457,640,255,255,255$1461,640,255,255,255$1462,640,0,0,0$1463,640,0,0,0$1464,640,0,0,0$1467,640,255,255,255$1470,640,255,255,255$1473,640,0,0,0$1474,640,0,0,0$1412,641,255,255,255$1413,641,255,255,255$1414,641,255,255,255$1415,641,255,255,255$1416,641,255,255,255$1417,641,255,255,255$1418,641,255,255,255$1420,641,0,0,0$1421,641,0,0,0$1422,641,0,0,0$1423,641,0,0,0$1428,641,255,255,255$1433,641,0,0,0$1434,641,0,0,0$1435,641,0,0,0$1436,641,0,0,0$1437,641,0,0,0$1438,641,0,0,0$1439,641,0,0,0$1440,641,0,0,0$1442,641,255,255,255$1443,641,255,255,255$1445,641,0,0,0$1446,641,0,0,0$1447,641,0,0,0$1448,641,0,0,0$1449,641,0,0,0$1450,641,0,0,0$1451,641,0,0,0$1452,641,0,0,0$1453,641,255,255,255$1462,641,0,0,0$1463,641,0,0,0$1464,641,0,0,0$1465,641,0,0,0$1469,641,0,0,0$1472,641,255,255,255$1473,641,0,0,0$1474,641,0,0,0$1412,642,255,255,255$1414,642,255,255,255$1415,642,255,255,255$1418,642,255,255,255$1420,642,0,0,0$1421,642,0,0,0$1422,642,0,0,0$1423,642,0,0,0$1424,642,0,0,0$1425,642,0,0,0$1426,642,0,0,0$1428,642,255,255,255$1429,642,0,0,0$1430,642,0,0,0$1431,642,0,0,0$1432,642,0,0,0$1433,642,0,0,0$1434,642,0,0,0$1435,642,0,0,0$1436,642,0,0,0$1437,642,0,0,0$1438,642,0,0,0$1439,642,0,0,0$1441,642,255,255,255$1443,642,0,0,0$1444,642,0,0,0$1445,642,0,0,0$1446,642,0,0,0$1447,642,0,0,0$1448,642,0,0,0$1449,642,0,0,0$1450,642,0,0,0$1451,642,0,0,0$1452,642,0,0,0$1456,642,255,255,255$1458,642,0,0,0$1460,642,0,0,0$1461,642,0,0,0$1462,642,0,0,0$1463,642,0,0,0$1464,642,0,0,0$1466,642,255,255,255$1470,642,0,0,0$1472,642,255,255,255$1411,643,255,255,255$1414,643,255,255,255$1418,643,255,255,255$1419,643,0,0,0$1420,643,0,0,0$1421,643,0,0,0$1422,643,0,0,0$1423,643,0,0,0$1424,643,0,0,0$1425,643,0,0,0$1426,643,0,0,0$1428,643,255,255,255$1429,643,0,0,0$1430,643,0,0,0$1431,643,0,0,0$1432,643,0,0,0$1433,643,0,0,0$1434,643,0,0,0$1435,643,0,0,0$1436,643,0,0,0$1437,643,0,0,0$1438,643,0,0,0$1440,643,255,255,255$1442,643,0,0,0$1443,643,0,0,0$1444,643,0,0,0$1445,643,0,0,0$1446,643,0,0,0$1447,643,0,0,0$1448,643,0,0,0$1449,643,0,0,0$1450,643,255,255,255$1451,643,255,255,255$1452,643,255,255,255$1453,643,255,255,255$1454,643,255,255,255$1455,643,255,255,255$1456,643,255,255,255$1457,643,255,255,255$1458,643,255,255,255$1459,643,255,255,255$1460,643,255,255,255$1461,643,255,255,255$1463,643,0,0,0$1464,643,0,0,0$1465,643,255,255,255$1466,643,255,255,255$1470,643,0,0,0$1471,643,0,0,0$1473,643,0,0,0$1410,644,0,0,0$1413,644,255,255,255$1414,644,255,255,255$1415,644,255,255,255$1417,644,255,255,255$1419,644,0,0,0$1420,644,0,0,0$1421,644,0,0,0$1422,644,0,0,0$1423,644,0,0,0$1424,644,0,0,0$1425,644,0,0,0$1426,644,0,0,0$1429,644,0,0,0$1430,644,0,0,0$1431,644,0,0,0$1432,644,0,0,0$1433,644,0,0,0$1434,644,0,0,0$1435,644,0,0,0$1436,644,0,0,0$1438,644,255,255,255$1439,644,255,255,255$1441,644,0,0,0$1442,644,0,0,0$1443,644,0,0,0$1444,644,0,0,0$1445,644,0,0,0$1446,644,0,0,0$1447,644,0,0,0$1448,644,0,0,0$1449,644,0,0,0$1454,644,255,255,255$1456,644,255,255,255$1457,644,255,255,255$1462,644,0,0,0$1463,644,0,0,0$1464,644,0,0,0$1465,644,0,0,0$1466,644,0,0,0$1467,644,0,0,0$1470,644,0,0,0$1471,644,0,0,0$1472,644,0,0,0$1473,644,0,0,0$1410,645,0,0,0$1411,645,0,0,0$1413,645,255,255,255$1415,645,255,255,255$1416,645,255,255,255$1417,645,255,255,255$1418,645,255,255,255$1420,645,0,0,0$1421,645,0,0,0$1427,645,255,255,255$1431,645,0,0,0$1432,645,0,0,0$1433,645,0,0,0$1434,645,0,0,0$1436,645,255,255,255$1437,645,255,255,255$1439,645,255,255,255$1440,645,255,255,255$1445,645,0,0,0$1446,645,0,0,0$1448,645,0,0,0$1449,645,0,0,0$1450,645,0,0,0$1451,645,0,0,0$1457,645,255,255,255$1460,645,0,0,0$1461,645,0,0,0$1462,645,0,0,0$1463,645,0,0,0$1466,645,255,255,255$1467,645,255,255,255$1468,645,255,255,255$1470,645,0,0,0$1471,645,0,0,0$1472,645,0,0,0$1473,645,0,0,0$1474,645,255,255,255$1411,646,255,255,255$1412,646,255,255,255$1415,646,255,255,255$1419,646,255,255,255$1420,646,0,0,0$1422,646,255,255,255$1423,646,255,255,255$1424,646,255,255,255$1425,646,255,255,255$1426,646,255,255,255$1427,646,255,255,255$1428,646,255,255,255$1429,646,255,255,255$1430,646,255,255,255$1431,646,255,255,255$1432,646,255,255,255$1434,646,0,0,0$1436,646,255,255,255$1437,646,0,0,0$1438,646,0,0,0$1439,646,0,0,0$1441,646,255,255,255$1442,646,255,255,255$1443,646,255,255,255$1444,646,255,255,255$1445,646,255,255,255$1446,646,255,255,255$1448,646,0,0,0$1451,646,255,255,255$1452,646,255,255,255$1454,646,0,0,0$1455,646,0,0,0$1456,646,0,0,0$1458,646,255,255,255$1459,646,255,255,255$1460,646,255,255,255$1462,646,0,0,0$1463,646,0,0,0$1464,646,255,255,255$1467,646,0,0,0$1468,646,0,0,0$1469,646,0,0,0$1470,646,0,0,0$1471,646,0,0,0$1473,646,255,255,255$1474,646,255,255,255$1410,647,255,255,255$1412,647,0,0,0$1413,647,0,0,0$1414,647,0,0,0$1419,647,0,0,0$1420,647,0,0,0$1421,647,0,0,0$1422,647,0,0,0$1423,647,0,0,0$1424,647,0,0,0$1425,647,0,0,0$1426,647,0,0,0$1427,647,0,0,0$1428,647,0,0,0$1429,647,0,0,0$1430,647,0,0,0$1431,647,0,0,0$1432,647,0,0,0$1433,647,0,0,0$1434,647,0,0,0$1435,647,0,0,0$1436,647,0,0,0$1437,647,0,0,0$1438,647,0,0,0$1439,647,0,0,0$1440,647,0,0,0$1441,647,0,0,0$1442,647,0,0,0$1443,647,0,0,0$1444,647,0,0,0$1445,647,0,0,0$1446,647,0,0,0$1447,647,0,0,0$1448,647,0,0,0$1452,647,0,0,0$1453,647,0,0,0$1454,647,0,0,0$1455,647,0,0,0$1456,647,0,0,0$1457,647,0,0,0$1458,647,0,0,0$1462,647,0,0,0$1463,647,0,0,0$1464,647,0,0,0$1465,647,0,0,0$1466,647,0,0,0$1467,647,0,0,0$1468,647,0,0,0$1469,647,0,0,0$1470,647,0,0,0$1471,647,0,0,0$1410,648,0,0,0$1411,648,0,0,0$1412,648,0,0,0$1413,648,0,0,0$1414,648,0,0,0$1415,648,0,0,0$1416,648,0,0,0$1417,648,0,0,0$1418,648,0,0,0$1419,648,0,0,0$1420,648,0,0,0$1421,648,0,0,0$1422,648,0,0,0$1423,648,0,0,0$1424,648,0,0,0$1425,648,0,0,0$1426,648,0,0,0$1427,648,0,0,0$1428,648,0,0,0$1429,648,0,0,0$1430,648,0,0,0$1431,648,0,0,0$1432,648,0,0,0$1433,648,0,0,0$1434,648,0,0,0$1435,648,0,0,0$1436,648,0,0,0$1437,648,0,0,0$1438,648,0,0,0$1439,648,0,0,0$1440,648,0,0,0$1441,648,0,0,0$1442,648,0,0,0$1443,648,0,0,0$1444,648,0,0,0$1445,648,0,0,0$1446,648,0,0,0$1447,648,0,0,0$1448,648,0,0,0$1449,648,0,0,0$1450,648,0,0,0$1451,648,0,0,0$1452,648,0,0,0$1453,648,0,0,0$1454,648,0,0,0$1455,648,0,0,0$1456,648,0,0,0$1457,648,0,0,0$1458,648,0,0,0$1459,648,0,0,0$1460,648,0,0,0$1461,648,0,0,0$1462,648,0,0,0$1463,648,0,0,0$1464,648,0,0,0$1465,648,0,0,0$1466,648,0,0,0$1467,648,0,0,0$1468,648,0,0,0$1469,648,0,0,0$1470,648,0,0,0$1471,648,0,0,0$1472,648,0,0,0$1473,648,0,0,0$1474,648,0,0,0$1410,649,0,0,0$1411,649,0,0,0$1412,649,0,0,0$1413,649,0,0,0$1414,649,0,0,0$1415,649,0,0,0$1416,649,0,0,0$1417,649,0,0,0$1418,649,0,0,0$1419,649,0,0,0$1420,649,0,0,0$1421,649,0,0,0$1422,649,0,0,0$1423,649,0,0,0$1424,649,0,0,0$1425,649,0,0,0$1426,649,0,0,0$1427,649,0,0,0$1428,649,0,0,0$1429,649,0,0,0$1430,649,0,0,0$1431,649,0,0,0$1432,649,0,0,0$1433,649,0,0,0$1434,649,0,0,0$1435,649,0,0,0$1436,649,0,0,0$1437,649,0,0,0$1438,649,0,0,0$1439,649,0,0,0$1440,649,0,0,0$1441,649,0,0,0$1442,649,0,0,0$1443,649,0,0,0$1444,649,0,0,0$1445,649,0,0,0$1446,649,0,0,0$1447,649,0,0,0$1448,649,0,0,0$1449,649,0,0,0$1450,649,0,0,0$1451,649,0,0,0$1452,649,0,0,0$1453,649,0,0,0$1454,649,0,0,0$1455,649,0,0,0$1456,649,0,0,0$1457,649,0,0,0$1458,649,0,0,0$1459,649,0,0,0$1460,649,0,0,0$1461,649,0,0,0$1462,649,0,0,0$1463,649,0,0,0$1464,649,0,0,0$1465,649,0,0,0$1466,649,0,0,0$1467,649,0,0,0$1468,649,0,0,0$1469,649,0,0,0$1470,649,0,0,0$1471,649,0,0,0$1472,649,0,0,0$1473,649,0,0,0$1474,649,0,0,0");
///
/// 是否有魔王契约卡牌
///
///
///
///
public static bool HasGoldCard(ZTRectangle gameRect)
{
using (Image image = ScreenCapture.Instance.CaptureScreenReturnImage())
{
ZTRectangle tempRect = ZTRectangle.Empty;
return CVHelper.FindColorArrayForThreshold(out tempRect, image, glodMowangdeqiyueText, new ZTRectangle(gameRect.Start.X+89,gameRect.Start.Y+469,gameRect.Start.X+723,gameRect.Start.Y+543));
}
}
///
/// 系统菜单面板
///
private static ColorArray SystemPanelTitle = ColorArray.FromThresholdString(60, "674,173,0,0,0$627,173,0,0,0$628,173,0,0,0$629,173,0,0,0$630,173,0,0,0$647,173,0,0,0$648,173,0,0,0$661,173,0,0,0$662,173,0,0,0$673,173,0,0,0$675,173,0,0,0$682,173,0,0,0$683,173,0,0,0$684,173,0,0,0$685,173,0,0,0$686,173,0,0,0$697,173,0,0,0$698,173,0,0,0$699,173,0,0,0$700,173,0,0,0$701,173,0,0,0$609,174,0,0,0$610,174,0,0,0$611,174,0,0,0$612,174,0,0,0$613,174,0,0,0$614,174,0,0,0$615,174,0,0,0$616,174,0,0,0$617,174,0,0,0$618,174,0,0,0$619,174,0,0,0$620,174,0,0,0$621,174,0,0,0$622,174,0,0,0$623,174,0,0,0$624,174,0,0,0$625,174,0,0,0$626,174,0,0,0$627,174,0,0,0$628,174,0,0,0$629,174,0,0,0$630,174,0,0,0$631,174,0,0,0$635,174,0,0,0$636,174,0,0,0$637,174,0,0,0$638,174,0,0,0$639,174,0,0,0$640,174,0,0,0$645,174,0,0,0$646,174,0,0,0$647,174,0,0,0$648,174,0,0,0$649,174,0,0,0$650,174,0,0,0$659,174,0,0,0$660,174,0,0,0$661,174,0,0,0$662,174,0,0,0$663,174,0,0,0$664,174,0,0,0$671,174,0,0,0$672,174,0,0,0$673,174,0,0,0$674,174,0,0,0$675,174,0,0,0$676,174,0,0,0$677,174,0,0,0$681,174,0,0,0$682,174,0,0,0$683,174,0,0,0$684,174,0,0,0$685,174,0,0,0$686,174,0,0,0$687,174,0,0,0$696,174,0,0,0$697,174,0,0,0$698,174,0,0,0$699,174,0,0,0$700,174,0,0,0$701,174,0,0,0$702,174,0,0,0$608,175,0,0,0$609,175,0,0,0$610,175,0,0,0$611,175,0,0,0$612,175,0,0,0$613,175,0,0,0$614,175,0,0,0$615,175,0,0,0$616,175,0,0,0$617,175,0,0,0$618,175,0,0,0$619,175,0,0,0$620,175,0,0,0$621,175,0,0,0$622,175,0,0,0$623,175,0,0,0$624,175,0,0,0$625,175,0,0,0$626,175,0,0,0$631,175,0,0,0$632,175,0,0,0$634,175,0,0,0$635,175,0,0,0$636,175,0,0,0$637,175,0,0,0$638,175,0,0,0$639,175,0,0,0$640,175,0,0,0$641,175,0,0,0$642,175,0,0,0$643,175,0,0,0$644,175,0,0,0$645,175,0,0,0$646,175,0,0,0$647,175,0,0,0$648,175,0,0,0$649,175,0,0,0$650,175,0,0,0$651,175,0,0,0$652,175,0,0,0$653,175,0,0,0$654,175,0,0,0$655,175,0,0,0$656,175,0,0,0$657,175,0,0,0$658,175,0,0,0$659,175,0,0,0$660,175,0,0,0$661,175,0,0,0$662,175,0,0,0$663,175,0,0,0$664,175,0,0,0$665,175,0,0,0$666,175,0,0,0$667,175,0,0,0$668,175,0,0,0$669,175,0,0,0$670,175,0,0,0$671,175,0,0,0$672,175,0,0,0$673,175,0,0,0$674,175,0,0,0$675,175,0,0,0$676,175,0,0,0$677,175,0,0,0$678,175,0,0,0$679,175,0,0,0$680,175,0,0,0$681,175,0,0,0$686,175,0,0,0$687,175,0,0,0$688,175,0,0,0$689,175,0,0,0$690,175,0,0,0$691,175,0,0,0$692,175,0,0,0$693,175,0,0,0$694,175,0,0,0$695,175,0,0,0$696,175,0,0,0$697,175,0,0,0$702,175,0,0,0$703,175,0,0,0$607,176,0,0,0$608,176,0,0,0$628,176,255,255,255$629,176,255,255,255$631,176,0,0,0$632,176,0,0,0$633,176,0,0,0$634,176,0,0,0$635,176,0,0,0$636,176,255,255,255$637,176,255,255,255$638,176,255,255,255$640,176,0,0,0$641,176,0,0,0$642,176,0,0,0$643,176,0,0,0$644,176,0,0,0$645,176,0,0,0$646,176,255,255,255$647,176,255,255,255$648,176,255,255,255$649,176,255,255,255$650,176,0,0,0$651,176,0,0,0$652,176,0,0,0$653,176,0,0,0$654,176,0,0,0$655,176,0,0,0$656,176,0,0,0$657,176,0,0,0$658,176,0,0,0$659,176,0,0,0$660,176,255,255,255$661,176,255,255,255$662,176,255,255,255$663,176,255,255,255$664,176,0,0,0$665,176,0,0,0$666,176,0,0,0$667,176,0,0,0$668,176,0,0,0$669,176,0,0,0$670,176,0,0,0$671,176,0,0,0$673,176,255,255,255$674,176,255,255,255$675,176,255,255,255$676,176,0,0,0$677,176,0,0,0$678,176,0,0,0$679,176,0,0,0$680,176,0,0,0$681,176,0,0,0$683,176,255,255,255$684,176,255,255,255$685,176,255,255,255$687,176,0,0,0$688,176,0,0,0$689,176,0,0,0$690,176,0,0,0$691,176,0,0,0$692,176,0,0,0$693,176,0,0,0$694,176,0,0,0$695,176,0,0,0$696,176,0,0,0$698,176,255,255,255$699,176,255,255,255$700,176,255,255,255$702,176,0,0,0$703,176,0,0,0$607,177,0,0,0$608,177,0,0,0$610,177,255,255,255$611,177,255,255,255$612,177,255,255,255$613,177,255,255,255$614,177,255,255,255$615,177,255,255,255$616,177,255,255,255$617,177,255,255,255$618,177,255,255,255$619,177,255,255,255$620,177,255,255,255$621,177,255,255,255$622,177,255,255,255$623,177,255,255,255$624,177,255,255,255$625,177,255,255,255$626,177,255,255,255$627,177,255,255,255$628,177,255,255,255$629,177,255,255,255$631,177,0,0,0$632,177,0,0,0$633,177,0,0,0$634,177,0,0,0$636,177,255,255,255$637,177,255,255,255$638,177,255,255,255$640,177,0,0,0$642,177,255,255,255$643,177,255,255,255$644,177,255,255,255$645,177,255,255,255$646,177,255,255,255$647,177,255,255,255$648,177,255,255,255$649,177,255,255,255$650,177,255,255,255$651,177,255,255,255$652,177,255,255,255$653,177,255,255,255$654,177,255,255,255$655,177,0,0,0$656,177,0,0,0$658,177,255,255,255$659,177,255,255,255$660,177,255,255,255$661,177,255,255,255$662,177,255,255,255$663,177,255,255,255$664,177,255,255,255$665,177,255,255,255$666,177,255,255,255$667,177,255,255,255$668,177,255,255,255$669,177,255,255,255$670,177,255,255,255$671,177,255,255,255$672,177,255,255,255$673,177,255,255,255$674,177,255,255,255$675,177,255,255,255$676,177,255,255,255$677,177,255,255,255$679,177,0,0,0$680,177,0,0,0$682,177,255,255,255$683,177,255,255,255$684,177,255,255,255$685,177,255,255,255$686,177,255,255,255$687,177,255,255,255$688,177,255,255,255$689,177,255,255,255$690,177,255,255,255$691,177,255,255,255$692,177,255,255,255$693,177,255,255,255$694,177,255,255,255$695,177,255,255,255$696,177,255,255,255$697,177,255,255,255$698,177,255,255,255$699,177,255,255,255$700,177,255,255,255$701,177,255,255,255$703,177,0,0,0$607,178,0,0,0$608,178,0,0,0$610,178,255,255,255$611,178,255,255,255$612,178,255,255,255$613,178,255,255,255$614,178,255,255,255$615,178,255,255,255$616,178,255,255,255$617,178,255,255,255$618,178,255,255,255$619,178,255,255,255$620,178,255,255,255$621,178,255,255,255$622,178,255,255,255$623,178,255,255,255$624,178,255,255,255$625,178,255,255,255$626,178,255,255,255$627,178,255,255,255$628,178,255,255,255$629,178,255,255,255$631,178,0,0,0$632,178,0,0,0$633,178,0,0,0$634,178,0,0,0$635,178,255,255,255$636,178,255,255,255$637,178,255,255,255$639,178,0,0,0$640,178,0,0,0$642,178,255,255,255$643,178,255,255,255$644,178,255,255,255$645,178,255,255,255$646,178,255,255,255$647,178,255,255,255$648,178,255,255,255$649,178,255,255,255$650,178,255,255,255$651,178,255,255,255$652,178,255,255,255$653,178,255,255,255$654,178,255,255,255$655,178,0,0,0$656,178,0,0,0$658,178,255,255,255$659,178,255,255,255$660,178,255,255,255$661,178,255,255,255$662,178,255,255,255$663,178,255,255,255$664,178,255,255,255$665,178,255,255,255$666,178,255,255,255$667,178,255,255,255$668,178,255,255,255$669,178,255,255,255$670,178,255,255,255$671,178,255,255,255$672,178,255,255,255$673,178,255,255,255$674,178,255,255,255$675,178,255,255,255$676,178,255,255,255$677,178,255,255,255$679,178,0,0,0$680,178,0,0,0$682,178,255,255,255$683,178,255,255,255$684,178,255,255,255$685,178,255,255,255$686,178,255,255,255$687,178,255,255,255$688,178,255,255,255$689,178,255,255,255$690,178,255,255,255$691,178,255,255,255$692,178,255,255,255$693,178,255,255,255$694,178,255,255,255$695,178,255,255,255$696,178,255,255,255$697,178,255,255,255$698,178,255,255,255$699,178,255,255,255$700,178,255,255,255$701,178,255,255,255$703,178,0,0,0$607,179,0,0,0$608,179,0,0,0$613,179,255,255,255$614,179,255,255,255$615,179,255,255,255$616,179,255,255,255$617,179,255,255,255$618,179,255,255,255$630,179,0,0,0$631,179,0,0,0$632,179,0,0,0$633,179,0,0,0$635,179,255,255,255$636,179,255,255,255$637,179,255,255,255$638,179,0,0,0$639,179,0,0,0$640,179,0,0,0$642,179,255,255,255$643,179,255,255,255$644,179,255,255,255$645,179,255,255,255$646,179,255,255,255$647,179,255,255,255$648,179,255,255,255$649,179,255,255,255$650,179,255,255,255$651,179,255,255,255$652,179,255,255,255$653,179,255,255,255$654,179,255,255,255$655,179,0,0,0$656,179,0,0,0$658,179,255,255,255$659,179,255,255,255$660,179,255,255,255$661,179,255,255,255$662,179,255,255,255$663,179,255,255,255$664,179,255,255,255$665,179,255,255,255$666,179,255,255,255$667,179,255,255,255$668,179,255,255,255$669,179,255,255,255$670,179,255,255,255$671,179,255,255,255$672,179,255,255,255$673,179,255,255,255$674,179,255,255,255$675,179,255,255,255$676,179,255,255,255$677,179,255,255,255$679,179,0,0,0$680,179,0,0,0$682,179,255,255,255$683,179,255,255,255$684,179,255,255,255$685,179,255,255,255$686,179,255,255,255$687,179,255,255,255$688,179,255,255,255$689,179,255,255,255$690,179,255,255,255$691,179,255,255,255$692,179,255,255,255$693,179,255,255,255$694,179,255,255,255$695,179,255,255,255$696,179,255,255,255$697,179,255,255,255$698,179,255,255,255$699,179,255,255,255$700,179,255,255,255$701,179,255,255,255$703,179,0,0,0$607,180,0,0,0$608,180,0,0,0$609,180,0,0,0$610,180,0,0,0$613,180,255,255,255$614,180,255,255,255$615,180,255,255,255$616,180,255,255,255$619,180,0,0,0$620,180,0,0,0$621,180,0,0,0$622,180,0,0,0$623,180,0,0,0$624,180,0,0,0$625,180,0,0,0$626,180,0,0,0$627,180,0,0,0$628,180,0,0,0$629,180,0,0,0$630,180,0,0,0$631,180,0,0,0$632,180,0,0,0$633,180,0,0,0$634,180,255,255,255$635,180,255,255,255$636,180,255,255,255$642,180,0,0,0$644,180,255,255,255$645,180,255,255,255$646,180,255,255,255$647,180,0,0,0$648,180,0,0,0$649,180,0,0,0$650,180,0,0,0$651,180,0,0,0$652,180,0,0,0$653,180,0,0,0$654,180,0,0,0$655,180,0,0,0$656,180,0,0,0$657,180,0,0,0$658,180,0,0,0$659,180,0,0,0$660,180,255,255,255$661,180,255,255,255$662,180,255,255,255$663,180,255,255,255$664,180,0,0,0$665,180,0,0,0$666,180,0,0,0$667,180,0,0,0$668,180,0,0,0$669,180,0,0,0$670,180,0,0,0$671,180,0,0,0$673,180,255,255,255$674,180,255,255,255$675,180,255,255,255$676,180,0,0,0$677,180,0,0,0$678,180,0,0,0$679,180,0,0,0$680,180,0,0,0$682,180,255,255,255$683,180,255,255,255$685,180,0,0,0$686,180,0,0,0$687,180,0,0,0$688,180,0,0,0$689,180,0,0,0$691,180,255,255,255$692,180,255,255,255$694,180,0,0,0$695,180,0,0,0$696,180,0,0,0$697,180,0,0,0$698,180,0,0,0$700,180,255,255,255$701,180,255,255,255$703,180,0,0,0$607,181,0,0,0$608,181,0,0,0$611,181,255,255,255$612,181,255,255,255$613,181,255,255,255$614,181,255,255,255$615,181,255,255,255$617,181,0,0,0$618,181,0,0,0$619,181,0,0,0$620,181,0,0,0$621,181,0,0,0$623,181,255,255,255$624,181,255,255,255$625,181,255,255,255$626,181,255,255,255$627,181,255,255,255$629,181,0,0,0$630,181,0,0,0$631,181,0,0,0$632,181,0,0,0$634,181,255,255,255$635,181,255,255,255$636,181,255,255,255$637,181,0,0,0$638,181,255,255,255$639,181,255,255,255$640,181,255,255,255$642,181,0,0,0$643,181,255,255,255$644,181,255,255,255$645,181,255,255,255$647,181,0,0,0$648,181,0,0,0$649,181,0,0,0$650,181,0,0,0$651,181,0,0,0$652,181,255,255,255$653,181,255,255,255$654,181,255,255,255$655,181,0,0,0$656,181,0,0,0$657,181,0,0,0$658,181,0,0,0$659,181,0,0,0$664,181,0,0,0$665,181,0,0,0$666,181,0,0,0$667,181,0,0,0$668,181,0,0,0$669,181,0,0,0$670,181,0,0,0$671,181,0,0,0$679,181,0,0,0$680,181,0,0,0$682,181,255,255,255$683,181,255,255,255$685,181,0,0,0$686,181,0,0,0$687,181,0,0,0$688,181,0,0,0$689,181,0,0,0$691,181,255,255,255$692,181,255,255,255$694,181,0,0,0$695,181,0,0,0$696,181,0,0,0$697,181,0,0,0$698,181,0,0,0$700,181,255,255,255$701,181,255,255,255$703,181,0,0,0$607,182,0,0,0$608,182,0,0,0$610,182,255,255,255$611,182,255,255,255$612,182,255,255,255$613,182,255,255,255$614,182,255,255,255$615,182,255,255,255$616,182,255,255,255$617,182,255,255,255$618,182,255,255,255$619,182,255,255,255$620,182,255,255,255$621,182,255,255,255$622,182,255,255,255$623,182,255,255,255$624,182,255,255,255$625,182,255,255,255$627,182,0,0,0$628,182,0,0,0$629,182,0,0,0$630,182,0,0,0$631,182,0,0,0$632,182,0,0,0$633,182,255,255,255$634,182,255,255,255$635,182,255,255,255$636,182,255,255,255$637,182,255,255,255$638,182,255,255,255$639,182,255,255,255$640,182,255,255,255$641,182,0,0,0$643,182,255,255,255$644,182,255,255,255$645,182,255,255,255$646,182,0,0,0$647,182,0,0,0$648,182,0,0,0$649,182,0,0,0$650,182,0,0,0$651,182,0,0,0$652,182,255,255,255$653,182,255,255,255$654,182,255,255,255$655,182,0,0,0$656,182,0,0,0$675,182,255,255,255$676,182,255,255,255$677,182,255,255,255$679,182,0,0,0$680,182,0,0,0$682,182,255,255,255$683,182,255,255,255$684,182,255,255,255$690,182,255,255,255$691,182,255,255,255$692,182,255,255,255$693,182,255,255,255$699,182,255,255,255$700,182,255,255,255$701,182,255,255,255$703,182,0,0,0$607,183,0,0,0$608,183,0,0,0$610,183,255,255,255$611,183,255,255,255$612,183,255,255,255$613,183,255,255,255$614,183,255,255,255$615,183,255,255,255$616,183,255,255,255$617,183,255,255,255$618,183,255,255,255$619,183,255,255,255$620,183,255,255,255$621,183,255,255,255$622,183,255,255,255$623,183,255,255,255$625,183,0,0,0$626,183,0,0,0$627,183,0,0,0$628,183,0,0,0$629,183,0,0,0$630,183,0,0,0$631,183,0,0,0$632,183,0,0,0$633,183,255,255,255$634,183,255,255,255$635,183,255,255,255$636,183,255,255,255$637,183,255,255,255$638,183,255,255,255$639,183,255,255,255$641,183,0,0,0$642,183,255,255,255$643,183,255,255,255$644,183,255,255,255$646,183,0,0,0$647,183,0,0,0$648,183,0,0,0$649,183,0,0,0$650,183,0,0,0$651,183,0,0,0$652,183,255,255,255$653,183,255,255,255$654,183,255,255,255$655,183,0,0,0$656,183,0,0,0$658,183,255,255,255$659,183,255,255,255$660,183,255,255,255$661,183,255,255,255$662,183,255,255,255$663,183,255,255,255$664,183,255,255,255$665,183,255,255,255$666,183,255,255,255$667,183,255,255,255$668,183,255,255,255$669,183,255,255,255$670,183,255,255,255$671,183,255,255,255$672,183,255,255,255$673,183,255,255,255$674,183,255,255,255$675,183,255,255,255$676,183,255,255,255$677,183,255,255,255$679,183,0,0,0$680,183,0,0,0$682,183,255,255,255$683,183,255,255,255$684,183,255,255,255$685,183,255,255,255$686,183,255,255,255$687,183,255,255,255$688,183,255,255,255$689,183,255,255,255$690,183,255,255,255$691,183,255,255,255$692,183,255,255,255$693,183,255,255,255$694,183,255,255,255$695,183,255,255,255$696,183,255,255,255$697,183,255,255,255$698,183,255,255,255$699,183,255,255,255$700,183,255,255,255$701,183,255,255,255$703,183,0,0,0$607,184,0,0,0$608,184,0,0,0$616,184,255,255,255$617,184,255,255,255$618,184,255,255,255$619,184,255,255,255$620,184,255,255,255$621,184,255,255,255$623,184,0,0,0$624,184,0,0,0$625,184,0,0,0$626,184,0,0,0$628,184,255,255,255$629,184,255,255,255$631,184,0,0,0$632,184,0,0,0$633,184,255,255,255$634,184,255,255,255$635,184,255,255,255$636,184,255,255,255$637,184,255,255,255$638,184,255,255,255$639,184,255,255,255$640,184,0,0,0$642,184,255,255,255$643,184,255,255,255$644,184,255,255,255$645,184,255,255,255$646,184,255,255,255$647,184,255,255,255$648,184,255,255,255$649,184,255,255,255$650,184,255,255,255$651,184,255,255,255$652,184,255,255,255$653,184,255,255,255$654,184,255,255,255$655,184,0,0,0$656,184,0,0,0$658,184,255,255,255$659,184,255,255,255$660,184,255,255,255$661,184,255,255,255$662,184,255,255,255$663,184,255,255,255$664,184,255,255,255$665,184,255,255,255$666,184,255,255,255$667,184,255,255,255$668,184,255,255,255$669,184,255,255,255$670,184,255,255,255$671,184,255,255,255$672,184,255,255,255$673,184,255,255,255$674,184,255,255,255$675,184,255,255,255$676,184,255,255,255$677,184,255,255,255$678,184,0,0,0$679,184,0,0,0$680,184,0,0,0$682,184,255,255,255$683,184,255,255,255$684,184,255,255,255$685,184,255,255,255$686,184,255,255,255$687,184,255,255,255$688,184,255,255,255$689,184,255,255,255$690,184,255,255,255$691,184,255,255,255$692,184,255,255,255$693,184,255,255,255$694,184,255,255,255$695,184,255,255,255$696,184,255,255,255$697,184,255,255,255$698,184,255,255,255$699,184,255,255,255$700,184,255,255,255$701,184,255,255,255$703,184,0,0,0$607,185,0,0,0$608,185,0,0,0$609,185,0,0,0$610,185,0,0,0$611,185,0,0,0$612,185,0,0,0$614,185,255,255,255$615,185,255,255,255$616,185,255,255,255$617,185,255,255,255$618,185,255,255,255$619,185,255,255,255$621,185,0,0,0$622,185,0,0,0$623,185,0,0,0$624,185,0,0,0$625,185,0,0,0$626,185,0,0,0$628,185,255,255,255$629,185,255,255,255$631,185,0,0,0$632,185,0,0,0$636,185,255,255,255$637,185,255,255,255$638,185,255,255,255$640,185,0,0,0$642,185,255,255,255$643,185,255,255,255$644,185,255,255,255$645,185,255,255,255$646,185,255,255,255$647,185,255,255,255$648,185,255,255,255$649,185,255,255,255$650,185,255,255,255$651,185,255,255,255$652,185,255,255,255$653,185,255,255,255$654,185,255,255,255$655,185,0,0,0$656,185,0,0,0$657,185,0,0,0$658,185,0,0,0$659,185,0,0,0$660,185,255,255,255$661,185,255,255,255$662,185,255,255,255$663,185,255,255,255$665,185,255,255,255$669,185,0,0,0$670,185,0,0,0$671,185,0,0,0$672,185,255,255,255$673,185,255,255,255$674,185,255,255,255$676,185,0,0,0$677,185,0,0,0$678,185,0,0,0$679,185,0,0,0$680,185,0,0,0$682,185,255,255,255$683,185,255,255,255$684,185,255,255,255$690,185,255,255,255$691,185,255,255,255$692,185,255,255,255$693,185,255,255,255$699,185,255,255,255$700,185,255,255,255$701,185,255,255,255$703,185,0,0,0$607,186,0,0,0$608,186,0,0,0$609,186,0,0,0$612,186,255,255,255$613,186,255,255,255$614,186,255,255,255$615,186,255,255,255$616,186,255,255,255$617,186,255,255,255$620,186,0,0,0$621,186,0,0,0$622,186,0,0,0$623,186,0,0,0$624,186,0,0,0$625,186,0,0,0$627,186,255,255,255$628,186,255,255,255$629,186,255,255,255$631,186,0,0,0$632,186,0,0,0$633,186,0,0,0$634,186,0,0,0$635,186,255,255,255$636,186,255,255,255$637,186,255,255,255$639,186,0,0,0$640,186,0,0,0$642,186,255,255,255$643,186,255,255,255$644,186,255,255,255$645,186,255,255,255$646,186,255,255,255$647,186,255,255,255$648,186,255,255,255$649,186,255,255,255$650,186,255,255,255$651,186,255,255,255$652,186,255,255,255$653,186,255,255,255$655,186,0,0,0$656,186,0,0,0$659,186,255,255,255$660,186,255,255,255$661,186,255,255,255$662,186,255,255,255$664,186,0,0,0$666,186,255,255,255$667,186,255,255,255$668,186,255,255,255$669,186,255,255,255$673,186,255,255,255$674,186,255,255,255$675,186,255,255,255$676,186,255,255,255$679,186,0,0,0$680,186,0,0,0$682,186,255,255,255$683,186,255,255,255$685,186,0,0,0$686,186,0,0,0$687,186,0,0,0$688,186,0,0,0$689,186,0,0,0$691,186,255,255,255$692,186,255,255,255$694,186,0,0,0$695,186,0,0,0$696,186,0,0,0$697,186,0,0,0$698,186,0,0,0$700,186,255,255,255$701,186,255,255,255$703,186,0,0,0$607,187,0,0,0$608,187,0,0,0$610,187,255,255,255$611,187,255,255,255$612,187,255,255,255$613,187,255,255,255$614,187,255,255,255$615,187,255,255,255$616,187,255,255,255$617,187,255,255,255$618,187,255,255,255$619,187,255,255,255$620,187,255,255,255$621,187,255,255,255$622,187,255,255,255$623,187,255,255,255$624,187,255,255,255$625,187,255,255,255$626,187,255,255,255$627,187,255,255,255$628,187,255,255,255$629,187,255,255,255$631,187,0,0,0$632,187,0,0,0$633,187,0,0,0$635,187,255,255,255$636,187,255,255,255$637,187,255,255,255$638,187,0,0,0$639,187,0,0,0$640,187,0,0,0$641,187,0,0,0$642,187,0,0,0$643,187,0,0,0$648,187,0,0,0$649,187,255,255,255$650,187,255,255,255$651,187,255,255,255$652,187,0,0,0$653,187,0,0,0$654,187,0,0,0$655,187,0,0,0$656,187,0,0,0$657,187,255,255,255$658,187,255,255,255$659,187,255,255,255$660,187,255,255,255$661,187,255,255,255$663,187,0,0,0$664,187,0,0,0$665,187,0,0,0$666,187,255,255,255$667,187,255,255,255$668,187,255,255,255$669,187,255,255,255$670,187,255,255,255$672,187,0,0,0$673,187,255,255,255$674,187,255,255,255$675,187,255,255,255$676,187,255,255,255$677,187,255,255,255$679,187,0,0,0$680,187,0,0,0$682,187,255,255,255$683,187,255,255,255$685,187,0,0,0$686,187,0,0,0$687,187,0,0,0$688,187,0,0,0$689,187,0,0,0$691,187,255,255,255$692,187,255,255,255$694,187,0,0,0$695,187,0,0,0$696,187,0,0,0$697,187,0,0,0$698,187,0,0,0$699,187,255,255,255$700,187,255,255,255$701,187,255,255,255$703,187,0,0,0$607,188,0,0,0$608,188,0,0,0$610,188,255,255,255$611,188,255,255,255$612,188,255,255,255$613,188,255,255,255$614,188,255,255,255$615,188,255,255,255$616,188,255,255,255$617,188,255,255,255$618,188,255,255,255$619,188,255,255,255$620,188,255,255,255$621,188,255,255,255$622,188,255,255,255$623,188,255,255,255$624,188,255,255,255$625,188,255,255,255$626,188,255,255,255$627,188,255,255,255$628,188,255,255,255$629,188,255,255,255$631,188,0,0,0$632,188,0,0,0$634,188,255,255,255$635,188,255,255,255$636,188,255,255,255$638,188,0,0,0$639,188,0,0,0$640,188,0,0,0$641,188,0,0,0$642,188,0,0,0$643,188,0,0,0$644,188,255,255,255$645,188,255,255,255$646,188,255,255,255$648,188,0,0,0$649,188,255,255,255$650,188,255,255,255$651,188,255,255,255$652,188,0,0,0$653,188,0,0,0$654,188,0,0,0$655,188,0,0,0$656,188,0,0,0$658,188,255,255,255$659,188,255,255,255$660,188,255,255,255$662,188,0,0,0$663,188,0,0,0$664,188,0,0,0$665,188,0,0,0$668,188,255,255,255$669,188,255,255,255$670,188,255,255,255$672,188,0,0,0$673,188,0,0,0$675,188,255,255,255$676,188,255,255,255$677,188,255,255,255$679,188,0,0,0$680,188,0,0,0$682,188,255,255,255$683,188,255,255,255$684,188,255,255,255$685,188,255,255,255$686,188,255,255,255$687,188,255,255,255$688,188,255,255,255$689,188,255,255,255$690,188,255,255,255$691,188,255,255,255$692,188,255,255,255$693,188,255,255,255$694,188,255,255,255$695,188,255,255,255$696,188,255,255,255$697,188,255,255,255$698,188,255,255,255$699,188,255,255,255$700,188,255,255,255$701,188,255,255,255$703,188,0,0,0$607,189,0,0,0$608,189,0,0,0$618,189,255,255,255$619,189,255,255,255$620,189,255,255,255$621,189,255,255,255$630,189,0,0,0$631,189,0,0,0$632,189,0,0,0$633,189,255,255,255$634,189,255,255,255$635,189,255,255,255$636,189,255,255,255$642,189,0,0,0$643,189,0,0,0$644,189,255,255,255$645,189,255,255,255$646,189,255,255,255$648,189,0,0,0$649,189,255,255,255$650,189,255,255,255$651,189,255,255,255$652,189,0,0,0$653,189,0,0,0$654,189,0,0,0$655,189,0,0,0$656,189,0,0,0$657,189,0,0,0$658,189,0,0,0$659,189,0,0,0$660,189,0,0,0$661,189,0,0,0$662,189,0,0,0$663,189,0,0,0$664,189,0,0,0$665,189,0,0,0$667,189,255,255,255$668,189,255,255,255$670,189,0,0,0$671,189,0,0,0$672,189,0,0,0$673,189,0,0,0$674,189,0,0,0$675,189,0,0,0$676,189,0,0,0$677,189,0,0,0$678,189,0,0,0$679,189,0,0,0$680,189,0,0,0$682,189,255,255,255$683,189,255,255,255$684,189,255,255,255$685,189,255,255,255$686,189,255,255,255$687,189,255,255,255$688,189,255,255,255$689,189,255,255,255$690,189,255,255,255$691,189,255,255,255$692,189,255,255,255$693,189,255,255,255$694,189,255,255,255$695,189,255,255,255$696,189,255,255,255$697,189,255,255,255$698,189,255,255,255$699,189,255,255,255$700,189,255,255,255$701,189,255,255,255$703,189,0,0,0$607,190,0,0,0$608,190,0,0,0$609,190,0,0,0$610,190,0,0,0$611,190,0,0,0$612,190,0,0,0$617,190,0,0,0$618,190,255,255,255$619,190,255,255,255$620,190,255,255,255$622,190,0,0,0$627,190,0,0,0$628,190,0,0,0$629,190,0,0,0$630,190,0,0,0$631,190,0,0,0$632,190,0,0,0$633,190,255,255,255$634,190,255,255,255$635,190,255,255,255$636,190,255,255,255$637,190,255,255,255$638,190,255,255,255$639,190,255,255,255$640,190,255,255,255$642,190,0,0,0$643,190,0,0,0$644,190,255,255,255$645,190,255,255,255$646,190,255,255,255$647,190,0,0,0$648,190,0,0,0$649,190,255,255,255$650,190,255,255,255$651,190,255,255,255$652,190,0,0,0$653,190,0,0,0$654,190,0,0,0$655,190,0,0,0$656,190,0,0,0$658,190,255,255,255$659,190,255,255,255$660,190,255,255,255$661,190,255,255,255$662,190,255,255,255$663,190,255,255,255$664,190,255,255,255$665,190,255,255,255$666,190,255,255,255$667,190,255,255,255$668,190,255,255,255$669,190,255,255,255$670,190,255,255,255$671,190,255,255,255$672,190,255,255,255$673,190,255,255,255$674,190,255,255,255$675,190,255,255,255$676,190,255,255,255$677,190,255,255,255$679,190,0,0,0$680,190,0,0,0$690,190,255,255,255$691,190,255,255,255$692,190,255,255,255$693,190,255,255,255$702,190,0,0,0$703,190,0,0,0$608,191,0,0,0$609,191,0,0,0$610,191,0,0,0$611,191,0,0,0$612,191,0,0,0$613,191,255,255,255$614,191,255,255,255$615,191,255,255,255$617,191,0,0,0$618,191,255,255,255$619,191,255,255,255$620,191,255,255,255$622,191,0,0,0$624,191,255,255,255$625,191,255,255,255$626,191,255,255,255$627,191,0,0,0$628,191,0,0,0$629,191,0,0,0$630,191,0,0,0$631,191,0,0,0$632,191,0,0,0$633,191,255,255,255$634,191,255,255,255$635,191,255,255,255$636,191,255,255,255$637,191,255,255,255$638,191,255,255,255$639,191,255,255,255$640,191,255,255,255$642,191,0,0,0$644,191,255,255,255$645,191,255,255,255$646,191,255,255,255$647,191,0,0,0$648,191,0,0,0$649,191,255,255,255$650,191,255,255,255$651,191,255,255,255$652,191,0,0,0$653,191,0,0,0$654,191,0,0,0$655,191,0,0,0$656,191,0,0,0$658,191,255,255,255$659,191,255,255,255$660,191,255,255,255$661,191,255,255,255$662,191,255,255,255$663,191,255,255,255$664,191,255,255,255$665,191,255,255,255$666,191,255,255,255$667,191,255,255,255$668,191,255,255,255$669,191,255,255,255$670,191,255,255,255$671,191,255,255,255$672,191,255,255,255$673,191,255,255,255$674,191,255,255,255$675,191,255,255,255$676,191,255,255,255$677,191,255,255,255$679,191,0,0,0$680,191,0,0,0$681,191,0,0,0$682,191,0,0,0$683,191,0,0,0$684,191,0,0,0$685,191,0,0,0$686,191,0,0,0$687,191,0,0,0$688,191,0,0,0$689,191,0,0,0$691,191,255,255,255$692,191,255,255,255$694,191,0,0,0$695,191,0,0,0$696,191,0,0,0$697,191,0,0,0$698,191,0,0,0$699,191,0,0,0$700,191,0,0,0$701,191,0,0,0$702,191,0,0,0$703,191,0,0,0$609,192,0,0,0$610,192,0,0,0$611,192,0,0,0$613,192,255,255,255$614,192,255,255,255$615,192,255,255,255$617,192,0,0,0$618,192,255,255,255$619,192,255,255,255$620,192,255,255,255$622,192,0,0,0$624,192,255,255,255$625,192,255,255,255$626,192,255,255,255$628,192,0,0,0$629,192,0,0,0$631,192,0,0,0$632,192,0,0,0$642,192,0,0,0$644,192,255,255,255$645,192,255,255,255$647,192,0,0,0$648,192,0,0,0$649,192,255,255,255$650,192,255,255,255$651,192,255,255,255$652,192,0,0,0$653,192,0,0,0$654,192,0,0,0$655,192,0,0,0$656,192,0,0,0$667,192,255,255,255$668,192,255,255,255$669,192,255,255,255$679,192,0,0,0$680,192,0,0,0$691,192,255,255,255$692,192,255,255,255$703,192,0,0,0$608,193,0,0,0$609,193,0,0,0$610,193,0,0,0$611,193,0,0,0$613,193,255,255,255$614,193,255,255,255$616,193,0,0,0$617,193,0,0,0$619,193,255,255,255$620,193,255,255,255$622,193,0,0,0$623,193,0,0,0$624,193,255,255,255$625,193,255,255,255$626,193,255,255,255$628,193,0,0,0$629,193,0,0,0$630,193,0,0,0$631,193,0,0,0$632,193,0,0,0$633,193,0,0,0$634,193,0,0,0$635,193,0,0,0$636,193,0,0,0$637,193,0,0,0$638,193,0,0,0$639,193,0,0,0$640,193,0,0,0$641,193,0,0,0$642,193,0,0,0$644,193,255,255,255$645,193,255,255,255$647,193,0,0,0$648,193,0,0,0$649,193,255,255,255$650,193,255,255,255$651,193,255,255,255$652,193,0,0,0$653,193,0,0,0$654,193,0,0,0$655,193,0,0,0$656,193,0,0,0$657,193,0,0,0$658,193,0,0,0$659,193,0,0,0$660,193,0,0,0$662,193,255,255,255$663,193,255,255,255$664,193,255,255,255$667,193,255,255,255$668,193,255,255,255$670,193,0,0,0$671,193,255,255,255$672,193,255,255,255$673,193,255,255,255$674,193,255,255,255$675,193,0,0,0$676,193,0,0,0$677,193,0,0,0$678,193,0,0,0$679,193,0,0,0$680,193,0,0,0$682,193,255,255,255$683,193,255,255,255$684,193,255,255,255$685,193,255,255,255$686,193,255,255,255$687,193,255,255,255$688,193,255,255,255$689,193,255,255,255$690,193,255,255,255$691,193,255,255,255$692,193,255,255,255$693,193,255,255,255$694,193,255,255,255$695,193,255,255,255$696,193,255,255,255$697,193,255,255,255$698,193,255,255,255$699,193,255,255,255$700,193,255,255,255$701,193,255,255,255$703,193,0,0,0$607,194,0,0,0$608,194,0,0,0$613,194,255,255,255$614,194,255,255,255$616,194,0,0,0$617,194,0,0,0$619,194,255,255,255$620,194,255,255,255$622,194,0,0,0$623,194,0,0,0$625,194,255,255,255$626,194,255,255,255$628,194,0,0,0$629,194,0,0,0$630,194,0,0,0$631,194,0,0,0$632,194,0,0,0$633,194,0,0,0$634,194,0,0,0$635,194,0,0,0$636,194,0,0,0$637,194,0,0,0$638,194,0,0,0$639,194,0,0,0$640,194,0,0,0$641,194,0,0,0$644,194,255,255,255$645,194,255,255,255$647,194,0,0,0$648,194,0,0,0$649,194,255,255,255$651,194,255,255,255$655,194,0,0,0$656,194,0,0,0$657,194,0,0,0$658,194,0,0,0$659,194,0,0,0$662,194,255,255,255$663,194,255,255,255$665,194,0,0,0$667,194,255,255,255$668,194,255,255,255$670,194,0,0,0$672,194,255,255,255$674,194,255,255,255$676,194,0,0,0$677,194,0,0,0$678,194,0,0,0$679,194,0,0,0$680,194,0,0,0$682,194,255,255,255$683,194,255,255,255$684,194,255,255,255$685,194,255,255,255$686,194,255,255,255$687,194,255,255,255$688,194,255,255,255$689,194,255,255,255$690,194,255,255,255$693,194,255,255,255$694,194,255,255,255$695,194,255,255,255$696,194,255,255,255$697,194,255,255,255$698,194,255,255,255$699,194,255,255,255$700,194,255,255,255$701,194,255,255,255$703,194,0,0,0$607,195,0,0,0$608,195,0,0,0$610,195,255,255,255$614,195,255,255,255$616,195,0,0,0$617,195,0,0,0$622,195,0,0,0$623,195,0,0,0$629,195,255,255,255$631,195,0,0,0$632,195,0,0,0$633,195,255,255,255$634,195,255,255,255$635,195,255,255,255$636,195,255,255,255$637,195,255,255,255$638,195,255,255,255$639,195,255,255,255$640,195,255,255,255$642,195,255,255,255$645,195,255,255,255$647,195,0,0,0$648,195,0,0,0$649,195,255,255,255$654,195,255,255,255$655,195,0,0,0$656,195,0,0,0$665,195,0,0,0$670,195,0,0,0$671,195,0,0,0$679,195,0,0,0$680,195,0,0,0$703,195,0,0,0$607,196,0,0,0$608,196,0,0,0$615,196,0,0,0$616,196,0,0,0$617,196,0,0,0$622,196,0,0,0$623,196,0,0,0$624,196,0,0,0$631,196,0,0,0$632,196,0,0,0$633,196,255,255,255$646,196,0,0,0$647,196,0,0,0$648,196,0,0,0$654,196,255,255,255$655,196,0,0,0$656,196,0,0,0$658,196,255,255,255$664,196,0,0,0$665,196,0,0,0$670,196,0,0,0$671,196,0,0,0$673,196,255,255,255$679,196,0,0,0$680,196,0,0,0$681,196,0,0,0$682,196,0,0,0$683,196,0,0,0$684,196,0,0,0$685,196,0,0,0$686,196,0,0,0$687,196,0,0,0$688,196,0,0,0$689,196,0,0,0$694,196,0,0,0$695,196,0,0,0$696,196,0,0,0$697,196,0,0,0$698,196,0,0,0$699,196,0,0,0$700,196,0,0,0$701,196,0,0,0$702,196,0,0,0$703,196,0,0,0$607,197,0,0,0$608,197,0,0,0$615,197,0,0,0$616,197,0,0,0$617,197,0,0,0$622,197,0,0,0$623,197,0,0,0$624,197,0,0,0$631,197,0,0,0$632,197,0,0,0$646,197,0,0,0$647,197,0,0,0$648,197,0,0,0$655,197,0,0,0$656,197,0,0,0$664,197,0,0,0$665,197,0,0,0$670,197,0,0,0$671,197,0,0,0$672,197,0,0,0$679,197,0,0,0$680,197,0,0,0$681,197,0,0,0$682,197,0,0,0$683,197,0,0,0$684,197,0,0,0$685,197,0,0,0$686,197,0,0,0$687,197,0,0,0$688,197,0,0,0$689,197,0,0,0$694,197,0,0,0$695,197,0,0,0$696,197,0,0,0$697,197,0,0,0$698,197,0,0,0$699,197,0,0,0$700,197,0,0,0$701,197,0,0,0$702,197,0,0,0$607,198,0,0,0$608,198,0,0,0$609,198,0,0,0$610,198,0,0,0$611,198,0,0,0$612,198,0,0,0$613,198,0,0,0$614,198,0,0,0$615,198,0,0,0$616,198,0,0,0$617,198,0,0,0$618,198,0,0,0$619,198,0,0,0$620,198,0,0,0$621,198,0,0,0$622,198,0,0,0$623,198,0,0,0$624,198,0,0,0$625,198,0,0,0$626,198,0,0,0$627,198,0,0,0$628,198,0,0,0$629,198,0,0,0$630,198,0,0,0$631,198,0,0,0$632,198,0,0,0$633,198,0,0,0$634,198,0,0,0$635,198,0,0,0$636,198,0,0,0$637,198,0,0,0$638,198,0,0,0$639,198,0,0,0$640,198,0,0,0$641,198,0,0,0$642,198,0,0,0$643,198,0,0,0$644,198,0,0,0$645,198,0,0,0$646,198,0,0,0$647,198,0,0,0$648,198,0,0,0$649,198,0,0,0$650,198,0,0,0$651,198,0,0,0$652,198,0,0,0$653,198,0,0,0$654,198,0,0,0$655,198,0,0,0$656,198,0,0,0$657,198,0,0,0$658,198,0,0,0$659,198,0,0,0$660,198,0,0,0$661,198,0,0,0$662,198,0,0,0$663,198,0,0,0$664,198,0,0,0$665,198,0,0,0$666,198,0,0,0$667,198,0,0,0$668,198,0,0,0$669,198,0,0,0$670,198,0,0,0$671,198,0,0,0$672,198,0,0,0$673,198,0,0,0$674,198,0,0,0$675,198,0,0,0$676,198,0,0,0$677,198,0,0,0$678,198,0,0,0$679,198,0,0,0$680,198,0,0,0$688,198,0,0,0$689,198,0,0,0$690,198,0,0,0$691,198,0,0,0$692,198,0,0,0$693,198,0,0,0$694,198,0,0,0$695,198,0,0,0$608,199,0,0,0$609,199,0,0,0$610,199,0,0,0$611,199,0,0,0$612,199,0,0,0$613,199,0,0,0$614,199,0,0,0$615,199,0,0,0$617,199,0,0,0$618,199,0,0,0$619,199,0,0,0$620,199,0,0,0$621,199,0,0,0$622,199,0,0,0$625,199,0,0,0$626,199,0,0,0$627,199,0,0,0$628,199,0,0,0$629,199,0,0,0$630,199,0,0,0$631,199,0,0,0$632,199,0,0,0$633,199,0,0,0$634,199,0,0,0$635,199,0,0,0$636,199,0,0,0$637,199,0,0,0$638,199,0,0,0$639,199,0,0,0$640,199,0,0,0$641,199,0,0,0$642,199,0,0,0$643,199,0,0,0$644,199,0,0,0$645,199,0,0,0$649,199,0,0,0$650,199,0,0,0$651,199,0,0,0$652,199,0,0,0$653,199,0,0,0$654,199,0,0,0$655,199,0,0,0$656,199,0,0,0$657,199,0,0,0$658,199,0,0,0$659,199,0,0,0$660,199,0,0,0$661,199,0,0,0$662,199,0,0,0$663,199,0,0,0$665,199,0,0,0$666,199,0,0,0$667,199,0,0,0$668,199,0,0,0$669,199,0,0,0$670,199,0,0,0$673,199,0,0,0$674,199,0,0,0$675,199,0,0,0$676,199,0,0,0$677,199,0,0,0$678,199,0,0,0$679,199,0,0,0$680,199,0,0,0$689,199,0,0,0$690,199,0,0,0$691,199,0,0,0$692,199,0,0,0$693,199,0,0,0$694,199,0,0,0$610,200,0,0,0$651,200,0,0,0$652,200,0,0,0$656,200,0,0,0$660,200,0,0,0$667,200,0,0,0$668,200,0,0,0$669,200,0,0,0$670,200,0,0,0$674,200,0,0,0$675,200,0,0,0$676,200,0,0,0$677,200,0,0,0$678,200,0,0,0$679,200,0,0,0$680,200,0,0,0$681,200,0,0,0$645,201,0,0,0$646,201,0,0,0$651,201,0,0,0$652,201,0,0,0$656,201,0,0,0$662,201,0,0,0$681,201,0,0,0$682,201,0,0,0$687,201,0,0,0$688,201,0,0,0$627,202,0,0,0$628,202,0,0,0$644,202,0,0,0$650,202,0,0,0$681,202,0,0,0$682,202,0,0,0");
public static bool IsOpenSystemPanel(ZTRectangle gameRect)
{
Image image = ScreenCapture.Instance.CaptureScreenReturnImage();
ZTRectangle position = ZTRectangle.Empty;
return CVHelper.FindColorArrayForThreshold(out position, image, SystemPanelTitle, gameRect);
}
private static ColorArray ExitPanelOkButtonText = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "647,448,221,197,147$637,443,221,197,147$640,443,221,197,147$640,447,221,197,147$638,447,221,197,147$638,451,221,197,147$640,451,221,197,147$642,450,221,197,147$642,452,221,197,147$644,452,221,197,147$647,452,221,197,147$647,450,221,197,147$644,450,221,197,147$644,448,221,197,147$647,446,221,197,147$642,446,221,197,147$643,443,221,197,147$646,443,221,197,147$651,443,221,197,147$651,446,221,197,147$651,452,221,197,147$653,453,221,197,147$659,453,221,197,147$656,442,221,197,147");
///
/// 查找退出时的确认按钮
///
///
///
///
public static bool FindExitPanelOkButton(out ZTRectangle okButtonRect, ZTRectangle gameRect)
{
okButtonRect = ZTRectangle.Empty;
Image image = ScreenCapture.Instance.CaptureScreenReturnImage();
return CVHelper.FindColorArray(out okButtonRect, image, ExitPanelOkButtonText, gameRect);
}
///
/// 个人面板右下角的金币文字
///
private static ColorArray GoldText = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "957,616,230,200,155$957,609,230,200,155$967,609,230,200,155$962,605,230,200,155$962,609,230,200,155$962,612,230,200,155$966,612,230,200,155$958,612,230,200,155$967,616,230,200,155$970,615,230,200,155$974,616,230,200,155$977,615,230,200,155$978,615,230,200,155$978,609,230,200,155$974,609,230,200,155$974,606,230,200,155$969,606,230,200,155$979,605,230,200,155");
public static bool GetGoldTextPosition(out ZTRectangle goldTextRect, ZTRectangle gameRect)
{
Image image = ScreenCapture.Instance.CaptureScreenReturnImage();
return CVHelper.FindColorArray(out goldTextRect, image, GoldText, gameRect);
}
///
/// 已选中的武器文字
///
private static ColorArray SelectedEquipmentText = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "711,333,255,255,184$722,336,255,255,184$722,334,255,255,184$722,332,255,255,184$722,329,255,255,184$722,327,255,255,184$721,327,255,255,184$720,327,255,255,184$719,327,255,255,184$708,327,255,255,184$708,331,255,255,184$708,333,255,255,184$712,333,255,255,184$713,333,255,255,184$715,333,255,255,184$715,337,255,255,184$714,337,255,255,184$709,337,255,255,184$708,337,255,255,184$708,336,255,255,184$708,335,255,255,184$707,335,255,255,184$710,328,255,255,184$712,328,255,255,184$714,328,255,255,184$712,327,255,255,184$712,330,255,255,184$712,331,255,255,184$713,331,255,255,184$711,331,255,255,184");
///
/// 未选中的武器文字
///
private static ColorArray UnSelectedEquipmentText = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "710,331,221,197,147$708,326,221,197,147$708,328,221,197,147$708,331,221,197,147$710,328,221,197,147$712,328,221,197,147$715,328,221,197,147$712,326,221,197,147$712,331,221,197,147$714,331,221,197,147$710,332,221,197,147$710,333,221,197,147$712,333,221,197,147$715,333,221,197,147$705,333,221,197,147$709,334,221,197,147$709,337,221,197,147$708,337,221,197,147$714,337,221,197,147$715,337,221,197,147$719,336,221,197,147$722,336,221,197,147$725,336,221,197,147$725,334,221,197,147$722,334,221,197,147$719,334,221,197,147$719,332,221,197,147$722,332,221,197,147$725,332,221,197,147$725,330,221,197,147$724,330,221,197,147$723,329,221,197,147$721,329,221,197,147$722,329,221,197,147$725,327,221,197,147$723,327,221,197,147$721,327,221,197,147$720,327,221,197,147");
///
/// 获取装备的选择状态
///
///
/// 0:未选中,1:已选中
///
/// true:获取成功,false:获取失败
public static bool GetEquipmentSelectStatus(out ZTRectangle rect, out Int32 selectStatus, ZTRectangle gameRect)
{
selectStatus = 0;
Image image = ScreenCapture.Instance.CaptureScreenReturnImage();
//已选中
if (CVHelper.FindColorArray(out rect, image, SelectedEquipmentText, gameRect))
{
selectStatus = 1;
return true;
}
//未选中
if (CVHelper.FindColorArray(out rect, image, UnSelectedEquipmentText, gameRect))
{
selectStatus = 0;
return true;
}
return false;
}
//min:(0,0.,0.0352941192686558),max:(0.,0.,0.0980392172932625)
private static ZTHsvFloatColor equipmentColorMin = new ZTHsvFloatColor(0,0, 0);
private static ZTHsvFloatColor equipmentColorMax = new ZTHsvFloatColor(1, 0.7827f, 0.1099f);
private static Structs.ZTPoint[] equipmentComparePositionss;
///
/// 获取有装备的所有点,只便利前两行
///
///
///
public static List GetEquipmentIndexs(Structs.ZTPoint startPoint)
{
Image image = ScreenCapture.Instance.CaptureScreenReturnImage();
return GetEquipmentIndexs(image, startPoint);
}
public static List GetEquipmentIndexs(Image image, Structs.ZTPoint startPoint)
{
if (equipmentComparePositionss == null)
{
equipmentComparePositionss = new Structs.ZTPoint[15 * 15];
for (int y = 0; y < 15; y++)
{
for (int x = 0; x < 15; x++)
{
equipmentComparePositionss[y * 15 + x] = new Structs.ZTPoint(x, y);
}
}
}
List points = new List();
byte[,,] datas = image.Data;
//每格步进30
for (int i = 0; i < 16; i++)
{
int row = i / 8;
int col = i % 8;
int x = col * 30 + 7;
int y = row * 30 + 7;
if (!CVHelper.InRange(datas, startPoint.X + x, startPoint.Y + y, equipmentColorMin, equipmentColorMax, equipmentComparePositionss))
{
points.Add(i);
}
}
return points;
}
//灰
//private static Hsv minRoleHsv = new Hsv(0, 0, 178);
//private static Hsv maxRoleHsv = new Hsv(180, 0, 229);
//蓝
private static Hsv minRoleHsv = new Hsv(118, 250, 250);
private static Hsv maxRoleHsv = new Hsv(122, 255, 255);
private static ZTSize roleBlockSize = new ZTSize(40, 20);
///
/// 查找主角
///
///
///
public static ZTPoint FindRole(Image image, ZTRectangle gameRect)
{
List rects = CVHelper.FindBlocks(image, minRoleHsv, maxRoleHsv, roleBlockSize);
if (rects.Count <= 0)
{
return ZTPoint.Empty;
}
//主角位置
return gameRect.Start.Add(rects[0].GetCenterPoint());
}
private const Int32 radisXMaxRange = 8;//x容差范围
private const Int32 radisYMaxRange = 45;//y容差范围
private const Int32 xLineMin = 46;//横向最小宽度
private const Int32 yLineMin = 26;//纵向最小高度
private const Int32 thingItemYOffset = 50;//查找的横线与物体垂直偏移
//other remove:min:(0.0166666675359011,0.0584795325994492,0.564705908298492),max:(0.115740731358528,0.543589770793915,0.764705896377563)
//min:(0.0454545430839062,0.148148149251938,0.454901963472366),max:(0.146666660904884,0.53804349899292,0.952941179275513)
//边框颜色
static ZTHsvFloatColor min = new ZTHsvFloatColor(0.0166f, 0.0584f, 0.5647f);
static ZTHsvFloatColor max = new ZTHsvFloatColor(0.1467f, 0.5436f, 0.9530f);
//other remove:min:(0,0.111111111938953,0.0666666701436043),max:(0.958333313465118,0.65625,0.129411771893501)
//min:(0,0,0.0392156876623631),max:(0.833333313465118,1,0.219607844948769)
//内部颜色
static ZTHsvFloatColor innerMin = new ZTHsvFloatColor(0, 0f, 0.0392f);
static ZTHsvFloatColor innerMax = new ZTHsvFloatColor(1, 1f, 0.2197f);
///
/// 获取物品项点位
///
///
///
///
public static List GetThingItemPoints(Image image, ZTRectangle gameRect)
{
List lines = CVHelper.FindLines(image, xLineMin,gameRect, Orientation.Horizontal, min, max);
List filterLines = new List();
List points = new List();
Func existsLines = (line) =>
{
for (int i = 0; i < filterLines.Count; i++)
{
//离得太近
if (Math.Abs(filterLines[i].Y - line.Y) <= 3)
{
//横坐标是否重合
if ((line.X + line.Length) < filterLines[i].X || line.X > (filterLines[i].X + filterLines[i].Length))
{
//未重合
continue;
}
return true;
}
}
return false;
};
ZTRectangle limit = ZTRectangle.Empty;
ZTLine vline = ZTLine.Empty;
//bool isLeft = true;
for (int i = 0; i < lines.Count; i++)
{
ZTLine line = lines[i];
//是否存在距离比较近的线
if (existsLines(line))
{
continue;
}
//查找左边
//isLeft = true;
limit = new ZTRectangle(line.X - radisXMaxRange, line.Y, line.X, line.Y + radisYMaxRange);
if (!CVHelper.FindLine(out vline, image, yLineMin, limit, RichCreator.Utility.Structs.Orientation.Vertical, min, max))
{
limit = new ZTRectangle(line.X + line.Length, line.Y, line.X + line.Length + radisXMaxRange, line.Y + radisYMaxRange);
if (!CVHelper.FindLine(out vline, image, yLineMin, limit, Orientation.Vertical, min, max))
{
continue;
}
//isLeft = false;
}
//内部是否黑色
if (!CVHelper.InRange(image.Data, line.X + 3, line.Y + 3, innerMin, innerMax))
{
continue;
}
filterLines.Add(line);
points.Add(new Structs.ZTPoint(line.X + line.Length / 2, line.Y + thingItemYOffset));
}
return points;
}
#region Location Point 1
private static readonly Hsv LocationPointMinHsv = new Hsv(0, 0, 0);
private static readonly Hsv LocationPointMaxHsv = new Hsv(0, 0, 5);
private static readonly ZTSize LocationPointMinLimitSize = new ZTSize(33, 33);
private static readonly ZTSize LocationPointMaxLimitSize = new ZTSize(55, 55);
///
/// 获取定位点
///
public static bool GetLocationPoint(out MultiList list,Image imageHsv,ZTRectangle gameRect)
{
list = new MultiList();
Image rangeImage = imageHsv.InRange(LocationPointMinHsv, LocationPointMaxHsv);
//rangeImage.Save("gray.png");
//查找边框
Emgu.CV.Util.VectorOfVectorOfPoint contours = new Emgu.CV.Util.VectorOfVectorOfPoint();
Image hierarchy = new Image(rangeImage.Size);
CvInvoke.FindContours(rangeImage, contours, hierarchy, Emgu.CV.CvEnum.RetrType.External, Emgu.CV.CvEnum.ChainApproxMethod.ChainApproxSimple);
for (int i = 0; i < contours.Size; i++)
{
System.Drawing.Rectangle rect = CvInvoke.BoundingRectangle(contours[i]);
if (rect.Width < LocationPointMinLimitSize.Width ||//比下限小
rect.Height < LocationPointMinLimitSize.Height||
rect.Width>LocationPointMaxLimitSize.Width||//比上限大
rect.Height>LocationPointMaxLimitSize.Height)
{
continue;
}
ZTRectangle locationPointRect = new ZTRectangle(rect.X, rect.Y, rect.X + rect.Width - 1, rect.Y + rect.Height - 1);
Int32 number = 0;
if (ParseLocationPoint(out number, locationPointRect, rangeImage))
{
list.Add(locationPointRect,number);
}
}
if (list.Count > 0)
{
return true;
}
return false;
}
//0xff:黑,0x00:白
private const byte black = 0xff;
private const byte white = 0x00;
///
/// 解析定位点
///
///
///
///
///
private static bool ParseLocationPoint(out Int32 number, ZTRectangle locationPointRect ,Image rangeImage)
{
number = 0;
byte[,,] datas = rangeImage.Data;
bool one = false, two = false, four = false, eight = false;
Structs.ZTPoint center = locationPointRect.GetCenterPoint();
//格1
Structs.ZTPoint lefttop = center.Add(-11);
if (!BlockOf6x6IsColor(datas, lefttop, black))
{
if (!BlockOf6x6IsColor(datas, lefttop, white))
{
return false;
}
else
{
one = false;
}
}
else
{
one = true;
}
//格2
Structs.ZTPoint righttop = center.Add(new Structs.ZTPoint(5,-11));
if (!BlockOf6x6IsColor(datas, righttop, black))
{
if (!BlockOf6x6IsColor(datas, righttop, white))
{
return false;
}
else
{
two = false;
}
}
else
{
two = true;
}
//格4
Structs.ZTPoint leftbottom = center.Add(new Structs.ZTPoint(-11, 5));
if (!BlockOf6x6IsColor(datas, leftbottom, black))
{
if (!BlockOf6x6IsColor(datas, leftbottom, white))
{
return false;
}
}
else
{
four = true;
}
//格8
Structs.ZTPoint rightbottom = center.Add(5);
if (!BlockOf6x6IsColor(datas, rightbottom, black))
{
if (!BlockOf6x6IsColor(datas, rightbottom, white))
{
return false;
}
}
else
{
eight = true;
}
number += (one ? 1 : 0);
number += (two ? 2 : 0);
number += (four ? 4 : 0);
number += (eight ? 8 : 0);
return true;
}
///
/// 是否整个6*6的方块是某种颜色
///
///
///
///
///
///
private static bool BlockOf6x6IsColor(byte[,,] datas, Structs.ZTPoint start, byte color)
{
for (int y = start.Y; y < start.Y + 6; y++)
{
for (int x = start.X; x < start.X + 6; x++)
{
if (datas[y, x, 0] != color)
{
return false;
}
}
}
return true;
}
#endregion
#region Location Point 2
private static ColorArray LocationPoint = ColorArray.FromColorString(0, 0, "800,352,0,0,0$791,343,255,255,255$793,343,0,0,0$796,343,255,255,255$798,343,0,0,0$801,343,255,255,255$802,345,0,0,0$802,347,255,255,255$802,349,0,0,0$802,352,255,255,255$797,352,255,255,255$795,352,0,0,0$791,352,255,255,255$791,350,0,0,0$791,348,255,255,255$791,346,0,0,0$796,347,255,255,255$797,348,255,255,255");
///
/// 获取定位点
///
///
///
///
public static ParametersPoint GetLocationPoint(Image image,ZTRectangle gameRect)
{
ZTRectangle rect = ZTRectangle.Empty;
if (CVHelper.FindColorArray(out rect, image, LocationPoint, gameRect))
{
//获取定位标记,解析参数
byte number = 0;
bool bitValue = true;
Int32 x = 0, y = 0;
for (int bitIndex = 0; bitIndex <= 7; bitIndex++)
{
//获取图像中存值的坐标
GetBitCoordinate(out x, out y, bitIndex);
//解析并设置值
if (!ParseBit(out bitValue, image, rect.Start.Add(x, y)))
{
return ParametersPoint.Empty;
}
else
{
number=SetBit(number, bitIndex, bitValue);
}
}
return new ParametersPoint(rect.GetCenterPoint(), number);
}
return ParametersPoint.Empty;
}
///
/// 获取定位点
///
///
///
///
public static ParametersPoint GetLocationPoint(Image image, ZTRectangle gameRect,Dictionary withoutNumber)
{
if (withoutNumber.Count <= 0)
{
return GetLocationPoint(image, gameRect);
}
ZTRectangle rect = ZTRectangle.Empty;
bool result = CVHelper.FindColorArray(out rect, image, LocationPoint, gameRect, (lpRect) => {
ParametersPoint pp = GetLocationPointParameter(image, lpRect);
if (withoutNumber.ContainsKey(pp.Parameter))
{
return false;
}
return true;
});
if (result)
{
return GetLocationPointParameter(image, rect);
}
return ParametersPoint.Empty;
}
///
/// 获取定位点参数
///
///
///
///
private static ParametersPoint GetLocationPointParameter(Image image,ZTRectangle rect)
{
//获取定位标记,解析参数
byte number = 0;
bool bitValue = true;
Int32 x = 0, y = 0;
for (int bitIndex = 0; bitIndex <= 7; bitIndex++)
{
//获取图像中存值的坐标
GetBitCoordinate(out x, out y, bitIndex);
//解析并设置值
if (!ParseBit(out bitValue, image, rect.Start.Add(x, y)))
{
return ParametersPoint.Empty;
}
else
{
number = SetBit(number, bitIndex, bitValue);
}
}
return new ParametersPoint(rect.GetCenterPoint(), number);
}
///
/// 设置指定位
///
///
///
///
///
private static byte SetBit(byte number, Int32 bitIndex,bool bitValue)
{
byte twonumber = 0;
switch (bitIndex)
{
case 0:
if (bitValue)
{
twonumber = 0b00000001;
}
else
{
twonumber = 0b11111110;
}
break;
case 1:
if (bitValue)
{
twonumber = 0b00000010;
}
else
{
twonumber = 0b11111101;
}
break;
case 2:
if (bitValue)
{
twonumber = 0b00000100;
}
else
{
twonumber = 0b11111011;
}
break;
case 3:
if (bitValue)
{
twonumber = 0b00001000;
}
else
{
twonumber = 0b11110111;
}
break;
case 4:
if (bitValue)
{
twonumber = 0b00010000;
}
else
{
twonumber = 0b11101111;
}
break;
case 5:
if (bitValue)
{
twonumber = 0b00100000;
}
else
{
twonumber = 0b11011111;
}
break;
case 6:
if (bitValue)
{
twonumber = 0b01000000;
}
else
{
twonumber = 0b10111111;
}
break;
case 7:
if (bitValue)
{
twonumber = 0b10000000;
}
else
{
twonumber = 0b01111111;
}
break;
}
if (bitValue)
{
return (byte)(number | twonumber);
}
else
{
return (byte)(number & twonumber);
}
}
///
/// 得到指定位坐标
///
///
///
///
private static void GetBitCoordinate(out Int32 x, out Int32 y, Int32 bitIndex)
{
x = 0;
y = 0;
switch (bitIndex)
{
case 0:
x = 8;
y = 6;
break;
case 1:
x = 6;
y = 6;
break;
case 2:
x = 4;
y = 6;
break;
case 3:
x = 2;
y = 6;
break;
case 4:
x = 8;
y = 2;
break;
case 5:
x = 6;
y = 2;
break;
case 6:
x = 4;
y = 2;
break;
case 7:
x = 2;
y = 2;
break;
}
}
///
/// 解析位状态
/// true:1
/// false:0
///
///
///
///
///
/// true:解析成功,false:解析失败
private static bool ParseBit(out bool bit,Image image, ZTPoint point)
{
bit = true;
if (image.Data[point.Y, point.X, 0] == 0xff && image.Data[point.Y, point.X, 1] == 0xff && image.Data[point.Y, point.X, 2] == 0xff&&
image.Data[point.Y, point.X+1, 0] == 0xff && image.Data[point.Y, point.X+1, 1] == 0xff && image.Data[point.Y, point.X+1, 2] == 0xff&&
image.Data[point.Y+1, point.X, 0] == 0xff && image.Data[point.Y+1, point.X, 1] == 0xff && image.Data[point.Y+1, point.X, 2] == 0xff&&
image.Data[point.Y+1, point.X+1, 0] == 0xff && image.Data[point.Y+1, point.X+1, 1] == 0xff && image.Data[point.Y+1, point.X+1, 2] == 0xff)
{
//白
bit = true;
return true;
}
if (image.Data[point.Y, point.X, 0] == 0x00 && image.Data[point.Y, point.X, 1] == 0x00 && image.Data[point.Y, point.X, 2] == 0x00 &&
image.Data[point.Y, point.X + 1, 0] == 0x00 && image.Data[point.Y, point.X + 1, 1] == 0x00 && image.Data[point.Y, point.X + 1, 2] == 0x00 &&
image.Data[point.Y + 1, point.X, 0] == 0x00 && image.Data[point.Y + 1, point.X, 1] == 0x00 && image.Data[point.Y + 1, point.X, 2] == 0x00 &&
image.Data[point.Y + 1, point.X + 1, 0] == 0x00 && image.Data[point.Y + 1, point.X + 1, 1] == 0x00 && image.Data[point.Y + 1, point.X + 1, 2] == 0x00)
{
//黑
bit = false;
return true;
}
return false;
}
#endregion
#region minimap
///
/// 小方格色块偏移
///
private static ZTPoint[] colorOffset = new ZTPoint[] {
new ZTPoint(2,14),
new ZTPoint(2,15),
new ZTPoint(15,14),
new ZTPoint(15,15),
};
///
/// 已经走过的房间颜色(青色)
///
private static ZTHsvFloatColor crossedColorMin = new ZTHsvFloatColor(0.498, 0.998, 0.998);
private static ZTHsvFloatColor crossedColorMax = new ZTHsvFloatColor(0.502, 1, 1);
///
/// 是否穿越过的房间(青色)
///
///
///
///
///
public static bool IsCrossedHouseColor(Image image, Int32 x, Int32 y)
{
if (CVHelper.InRange(image.Data, x, y, crossedColorMin, crossedColorMax, colorOffset))
{
return true;
}
return false;
}
///
/// 当前房间颜色(蓝色)
///
private static ZTHsvFloatColor currentHouseColorMin = new ZTHsvFloatColor(0.665f, 0.998, 0.998);
private static ZTHsvFloatColor currentHouseColorMax = new ZTHsvFloatColor(0.669f, 1, 1);
///
/// 是否当前房间(蓝色)
///
///
///
///
///
public static bool IsCurrentHouseColor(Image image, Int32 x, Int32 y)
{
if (CVHelper.InRange(image.Data, x, y, currentHouseColorMin, currentHouseColorMax, colorOffset))
{
return true;
}
return false;
}
///
/// 下一房间颜色(绿色)
///
private static ZTHsvFloatColor nextHouseColorMin = new ZTHsvFloatColor(0.298f, 0.998, 0.998);
private static ZTHsvFloatColor nextHouseColorMax = new ZTHsvFloatColor(0.302, 1, 1);
///
/// 是否下一房间,绿色
///
///
///
///
///
public static bool IsNextHouseColor(Image image, Int32 x, Int32 y)
{
if (CVHelper.InRange(image.Data, x, y, nextHouseColorMin, nextHouseColorMax, colorOffset))
{
return true;
}
return false;
}
///
/// 最终房间颜色(红色1)
///
private static ZTHsvFloatColor overHouse1ColorMin = new ZTHsvFloatColor(0, 0.998, 0.998);
private static ZTHsvFloatColor overHouse1ColorMax = new ZTHsvFloatColor(0.002, 1, 1);
///
/// 最终房间颜色(红色2)
///
private static ZTHsvFloatColor overHouse2ColorMin = new ZTHsvFloatColor(0.998, 0.998, 0.998);
private static ZTHsvFloatColor overHouse2ColorMax = new ZTHsvFloatColor(1.0f, 1, 1);
///
/// 是否最终房间
///
///
///
///
///
public static bool IsOverHouseColor(Image image, Int32 x, Int32 y)
{
if (CVHelper.InRange(image.Data, x, y, overHouse1ColorMin, overHouse1ColorMax, colorOffset)
|| CVHelper.InRange(image.Data, x, y, overHouse2ColorMin, overHouse2ColorMax, colorOffset))
{
return true;
}
return false;
}
#endregion
#region Monsters
private static Hsv minMonsterHsv = new Hsv(165, 247, 175);
private static Hsv maxMonsterHsv = new Hsv(173, 255, 230);
private static ZTSize monsterBlockSize = new ZTSize(30, 30);
///
/// 查找所有怪的位置
///
///
///
public static Structs.ZTPoint[] FindMonster(Image image, ZTRectangle gameRect)
{
List rects = CVHelper.FindBlocks(image, minMonsterHsv, maxMonsterHsv, monsterBlockSize);
Structs.ZTPoint[] monsterPoints = new Structs.ZTPoint[rects.Count];
for (int i = 0; i < rects.Count; i++)
{
monsterPoints[i] = rects[i].GetCenterPoint().Add(gameRect.Start);
}
return monsterPoints;
}
#endregion
}
}