/
/
运行标志初始化为TRUE
运行标志
=
TRUE;
临时字符串
=
"";
EDIT
=
"";
int
index;
/
/
遍历周围对象结构所用的下标
int
MonsterNum;
/
/
初始化极品BOSS名字的数组
const
int
ListBossNum
=
10
;
char BossName[ListBossNum][
30
]
=
{
"半兽统领"
,
"尸王"
,
"神鹰"
,
"巨型多角虫"
,
"邪恶钳虫"
,
"白野猪"
,
"鹰卫"
,
"变异巨型多角虫"
,
"变异半兽勇士"
,
"鹿"
/
*
测试怪物
*
/
};
while
(运行标志)
{
/
/
获取周围对象的数量
MonsterNum
=
读内存(读内存(读内存(GameModBase
+
0x5E8644
)
+
0x34D0
)
+
8
);
for
(index
=
0
; index < MonsterNum; index
+
+
)
{
if
(IsRirhtName(BossName, index, ListBossNum))
{
/
/
名字是极品BOSS名字
/
/
检测该周围对象是否是怪物
if
(IsMonster(index))
{
/
/
index对应的对象是极品BOSS。
char
*
OName
=
(char
*
)读内存(读内存(读内存(读内存(读内存(GameModBase
+
0x5E8644
)
+
0x34D0
)
+
4
)
+
index
*
4
)
+
0x10
);
EDIT
+
=
OName;
EDIT
+
=
"的位置在:"
;
临时字符串.
Format
(_T(
"%d"
), 读内存(读内存(读内存(读内存(读内存(GameModBase
+
0x5E8644
)
+
0x34D0
)
+
4
)
+
index
*
4
)
+
0x198
));
EDIT
+
=
临时字符串;
EDIT
+
=
","
;
临时字符串.
Format
(_T(
"%d"
), 读内存(读内存(读内存(读内存(读内存(GameModBase
+
0x5E8644
)
+
0x34D0
)
+
4
)
+
index
*
4
)
+
0x19C
));
EDIT
+
=
临时字符串;
EDIT
+
=
"\r\n"
;
Dlg_OBJ
-
>SetDlgItemTextW(IDC_EDIT1 ,EDIT);
}
}
else
{
Sleep(
10
);
/
/
MessageBoxA(
0
,
"名字不是极品BOSS名字"
,
"0"
,
0
);
}
}
Sleep(
2000
);
EDIT
=
"";
}
return
0
;