AutoBuff:
push ecx
mov ecx,[edx+98]
mov [Buffid],ecx
cmp ecx,000F4240//过滤掉莫名其妙的buff 1000000
pop ecx
jle Original
cmp byte ptr [edx+94],02//判断是否技能
jne Original
call AutoBuff_AddList
jmp Original
Original:
test al,al
je 01C114F3
push edi
JMP 01C114EB
//获取buffidList
AutoBuff_GetBuffIDFromList:
push eax
push esi
mov eax,AutoBuff_List
mov esi,[AutoBuff_List_Index]
xor ecx,ecx
AutoBuff_GetBuffIDFromLis_foreach:
cmp [eax+esi*4],0//end or not found
je AutoBuff_GetBuffIDFromLis_break
inc [AutoBuff_List_Index]
mov ecx,[eax+esi*4]
jmp AutoBuff_GetBuffIDFromLis_end
AutoBuff_GetBuffIDFromLis_break:
mov [AutoBuff_List_Index],0
xor ecx,ecx
jmp AutoBuff_GetBuffIDFromLis_end
AutoBuff_GetBuffIDFromLis_end:
pop esi
pop eax
ret