能力值:
( LV2,RANK:10 )
|
-
-
11 楼
象我现在都不知如何在指定进程中申请一些空间,无意无发现了一个替代的办法就是,建立起一个大的数组,然后不要设初始值就行了.
如下实现:
long funcl[100][100];
////////////1装备损耗保护定义////////////////
long m_tzz=0xcc;//脚本特征值
//*******以下要开放成INI文件********
long ADDR_10=(long)funcl+0xa0;//将下面的代码写入这个数组
DWORD B10[20]=
{
0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,
0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,//这里是20个空格
};
DWORD B11[208]=
{
0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,
0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,//这里是20个空格
0x90,0xa3,0x00,0x00,0x55,0x00,//mov [1],eax 01
0x89,0x1d,0x00,0x00,0x55,0x00,//mov [2],ebx 02
0x89,0x0d,0x00,0x00,0x55,0x00,//mov [3],ecx 03
0x89,0x15,0x00,0x00,0x55,0x00,//mov [4],edx 04
0x89,0x2d,0x00,0x00,0x55,0x00,//mov [5],ebp 05
0x89,0x3d,0x00,0x00,0x55,0x00,//mov [6],edi 06
0x89,0x35,0x00,0x00,0x55,0x00,//mov [7],esi 07
0x89,0x25,0x00,0x00,0x55,0x00,//mov [8],esp 08
0x8b,0x1d,0x00,0x00,0x55,0x00,//mov ebx,[3] 09
0x81,0xe3,0xff,0xff,0x00,0x00,//mov eax,[3]捡物品专用10 0x90,0xa1,0x00,0x00,0x00,0x00,
0x90,0x90,0x90,0x90,0x90,0x90,//mov edx,[3]捡物品专用11 0x8b,0x15,0x00,0x00,0x00,0x00,
0x90,0x90,0x90,0x90,0x90,0x90,//mov ecx,[9] 12
0x90,0x90,0x90,0x90,0x90,0x90,//mov[ecx],ebx 13
0x90,0x90,0x90,0x90,0x90,0x90,//mov[ecx+4],eax 捡物品专用14 0x90,0x90,0x89,0x41,0x04,0x90,
0x90,0x90,0x90,0x90,0x90,0x90,//mov[ecx+8],edx 捡物品专用15 0x90,0x90,0x89,0x51,0x08,0x90,
0x90,0x90,0x90,0x90,0x90,0x90,//add ecx,04 捡物品时变成1016
0x3b,0x1d,0x00,0x00,0x55,0x00,//cmp ebx,[9] 17
0x90,0x90,0x90,0x90,0x7f,0x06,//jg --------------|18 不是练级与捡物品代码为 0x90,0x90,0x90,0x90,0x90,0x90,
0x89,0x1d,0x00,0x00,0x55,0x00,//mov [9],ebx |19
0x90,0x90,0x90,0x90,0x90,0x90,//mov [9],ecx *<---|20
0x8b,0x25,0x00,0x00,0x55,0x00,//mov esp,[8] 21
0x8b,0x35,0x00,0x00,0x55,0x00,//mov esi,[7] 22
0x8b,0x3d,0x00,0x00,0x55,0x00,//mov edi,[6] 23
0x8b,0x2d,0x00,0x00,0x55,0x00,//mov ebp,[5] 24
0x8b,0x15,0x00,0x00,0x55,0x00,//mov edx,[4] 25
0x8b,0x0d,0x00,0x00,0x55,0x00,//mov ecx,[3] 26
0x8b,0x1d,0x00,0x00,0x55,0x00,//mov ebx,[2] 27
0x90,0xa1,0x00,0x00,0x55,0x00,//mov eax,[1] 28
0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,
0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,//这里是20个空格
};
|