ソースを参照

FindNPC新方式

Jeff 4 年 前
コミット
440fcae5b5
1 ファイル変更17 行追加0 行削除
  1. 17 0
      GameAssist/GameAssist/GameAssistDlg.cpp

+ 17 - 0
GameAssist/GameAssist/GameAssistDlg.cpp

@@ -15,6 +15,8 @@
 #define RAND(a,b) (rand()%(b-a)+a)
 #define SRAND(a,b) (Sleep(rand()%(b-a)+a))
 
+std::map<std::string, POINT> g_mapZYNPC;
+
 BOOL IsWalkStop(HWND hWnd);
 CRect FindMatchIcon(HWND hWnd, LPCSTR lpszTemplateImage);
 void WorldMapPositioning(HWND hWnd, POINT ptMap);
@@ -32,6 +34,21 @@ VOID DebugLog(CHAR* pszStr, ...)
 	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)
 {