- UID
- 196894
- 帖子
- 958
- 主題
- 597
- 精華
- 0
- 積分
- 1966
- 楓幣
- 2753
- 威望
- 1940
- 存款
- 30708
- 贊助金額
- 0
- 推廣
- 0
- GP
- 489
- 閱讀權限
- 70
- 在線時間
- 512 小時
- 註冊時間
- 2017-7-16
- 最後登入
- 2022-5-16
|
// TwMs v225.2 CRC PetAutoBuff(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
01C2498A:
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 01C26580
jmp 01C24993
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 01A127FC
01A127F3:
jmp PetBuff
0289DCDA://使得寵物能加有cd的buff 2
jmp 0289DD08
0289DDCA://使得寵物能加有cd的buff 1
jmp 0289DDDE
[DISABLE]
0289DDCA:
jne 0289DDDE
0289DCDA:
jne 0289DD08
01C2498A:
push edi
lea ecx,[ebx+1C]
call 01C26580
01A127F3:
push [ebp-2C]
mov ecx,[ebx+00000144]
|
-
總評分: 楓幣 + 1
彩票 + 1
查看全部評分
|