|
@@ -15,6 +15,8 @@
|
|
#define RAND(a,b) (rand()%(b-a)+a)
|
|
#define RAND(a,b) (rand()%(b-a)+a)
|
|
#define SRAND(a,b) (Sleep(rand()%(b-a)+a))
|
|
#define SRAND(a,b) (Sleep(rand()%(b-a)+a))
|
|
|
|
|
|
|
|
+std::map<std::string, POINT> g_mapZYNPC;
|
|
|
|
+
|
|
BOOL IsWalkStop(HWND hWnd);
|
|
BOOL IsWalkStop(HWND hWnd);
|
|
CRect FindMatchIcon(HWND hWnd, LPCSTR lpszTemplateImage);
|
|
CRect FindMatchIcon(HWND hWnd, LPCSTR lpszTemplateImage);
|
|
void WorldMapPositioning(HWND hWnd, POINT ptMap);
|
|
void WorldMapPositioning(HWND hWnd, POINT ptMap);
|
|
@@ -32,6 +34,21 @@ VOID DebugLog(CHAR* pszStr, ...)
|
|
OutputDebugStringA(szData);
|
|
OutputDebugStringA(szData);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+void InitZYNPC()
|
|
|
|
+{
|
|
|
|
+ // "医师独侠","术士独侠","道士独侠","武师独侠","浪子独侠","剑客独侠", "弓手独侠", "禁卫独侠", "墨者独侠", "巫煞独侠", "魂武独侠"
|
|
|
|
+ g_mapZYNPC.insert(std::pair<std::string, POINT>(_T("医师独侠"), { 0, 0 }));
|
|
|
|
+ g_mapZYNPC.insert(std::pair<std::string, POINT>(_T("术士独侠"), { 0, 0 }));
|
|
|
|
+ g_mapZYNPC.insert(std::pair<std::string, POINT>(_T("道士独侠"), { 0, 0 }));
|
|
|
|
+ g_mapZYNPC.insert(std::pair<std::string, POINT>(_T("武师独侠"), { 0, 0 }));
|
|
|
|
+ g_mapZYNPC.insert(std::pair<std::string, POINT>(_T("浪子独侠"), { 0, 0 }));
|
|
|
|
+ g_mapZYNPC.insert(std::pair<std::string, POINT>(_T("剑客独侠"), { 0, 0 }));
|
|
|
|
+ g_mapZYNPC.insert(std::pair<std::string, POINT>(_T("弓手独侠"), { 0, 0 }));
|
|
|
|
+ g_mapZYNPC.insert(std::pair<std::string, POINT>(_T("禁卫独侠"), { 0, 0 }));
|
|
|
|
+ g_mapZYNPC.insert(std::pair<std::string, POINT>(_T("墨者独侠"), { 0, 0 }));
|
|
|
|
+ g_mapZYNPC.insert(std::pair<std::string, POINT>(_T("巫煞独侠"), { 0, 0 }));
|
|
|
|
+ g_mapZYNPC.insert(std::pair<std::string, POINT>(_T("魂武独侠"), { 0, 0 }));
|
|
|
|
+}
|
|
|
|
|
|
BOOL FindNPC(HWND hWnd, LPCSTR lpszNPC)
|
|
BOOL FindNPC(HWND hWnd, LPCSTR lpszNPC)
|
|
{
|
|
{
|