- UID
- 21539
- 帖子
- 3023
- 主題
- 1553
- 精華
- 0
- 積分
- 3616
- 楓幣
- 396
- 威望
- 3479
- 存款
- 0
- 贊助金額
- 0
- 推廣
- 0
- GP
- 340
- 閱讀權限
- 90
- 在線時間
- 2731 小時
- 註冊時間
- 2013-1-30
- 最後登入
- 2024-11-10
|
// TwMs v225.1 CRC 寵物自動補全部Buff(buff不斷)
[ENABLE]
registersymbol(AutoBuff)
alloc(AutoBuff,512)
registersymbol(AutoBuff_List)
alloc(AutoBuff_List,512)
registersymbol(AutoBuff_AddList)
alloc(AutoBuff_AddList,512)
label(AutoBuff_AddList_end)
label(AutoBuff_AddList_continue)
label(AutoBuff_AddList_foreach)
registersymbol(AutoBuff_GetBuffIDFromList)
alloc(AutoBuff_GetBuffIDFromList,512)
label(AutoBuff_GetBuffIDFromLis_end)
label(AutoBuff_GetBuffIDFromLis_break)
label(AutoBuff_GetBuffIDFromLis_foreach)
registersymbol(AutoBuff_List_Index)
alloc(AutoBuff_List_Index,4)
registersymbol(Buffid)
alloc(Buffid,64)
registersymbol(HoldBuffid)
alloc(HoldBuffid,64)
alloc(Original,64)
registersymbol(PetBuff)
alloc(PetBuff,512)
label(PetBuffend)
AutoBuff_List_Index:
dd 0
01C2457A:
jmp AutoBuff
NOP
NOP
NOP
NOP
AutoBuff:
mov ecx,[edx+98]
mov [Buffid],ecx
cmp ecx,000F4240//過濾掉莫名其妙的buff 1000000
jle Original
call AutoBuff_AddList
jmp Original
Original:
push edi
lea ecx,[ebx+1C]
call 01C26170
jmp 01C2457A+9
AutoBuff_AddList:
pushad
mov eax,AutoBuff_List
xor ecx,ecx
mov ebx,[Buffid]
AutoBuff_AddList_foreach:
cmp [eax+ecx*4],ebx//has
je AutoBuff_AddList_end
cmp [eax+ecx*4],0
jne AutoBuff_AddList_continue
mov [eax+ecx*4],ebx
jmp AutoBuff_AddList_end
AutoBuff_AddList_end:
popad
ret
AutoBuff_AddList_continue:
inc ecx
jmp AutoBuff_AddList_foreach
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
PetBuff:
call AutoBuff_GetBuffIDFromList//return to ecx
mov [HoldBuffid],ecx
mov ecx,[ebp-2C]
cmp [HoldBuffid],0
je PetBuffend
mov ecx,[HoldBuffid]
jmp PetBuffend
PetBuffend://讓寵物也幫忙補
push ecx
mov ecx,[ebx+00000144]
jmp 01A123E3+9
01A123E3:
jmp PetBuff
0289D8BA://使得寵物能加有cd的buff
jmp 0289D8E8
0289D9AA://使得寵物能加有cd的buff
jmp 0289D9BE
[DISABLE]
0289D9AA:
jne 0289D9BE
0289D8BA:
jne 0289D8E8
01C2457A:
push edi
lea ecx,[ebx+1C]
call 01C26170
01A123E3:
push [ebp-2C]
mov ecx,[ebx+00000144]
|
-
總評分: 彩票 + 1
查看全部評分
|