
- UID
- 231336
- 帖子
- 71
- 主題
- 28
- 精華
- 0
- 積分
- 107
- 楓幣
- 14707
- 威望
- 97
- 存款
- 0
- 贊助金額
- 0
- 推廣
- 0
- GP
- 64
- 閱讀權限
- 20
- 性別
- 保密
- 在線時間
- 192 小時
- 註冊時間
- 2018-4-11
- 最後登入
- 2025-3-10
|
- //TwMs v267.4 多重技能注入
- [ENABLE]
- alloc(newmem,2048,1451B82C0)
- alloc(SkillIDs,128)
- alloc(Delays,128)
- alloc(Timers,128)
- alloc(CurrentIndex,4)
- alloc(StartIndex,4)
- label(returnhere)
- label(originalcode)
- label(exit)
- label(check_next)
- //技能ID(請自行添加或刪除)
- SkillIDs:
- dd #4341004
- dd #4341009
- dd #4341011
- dd 0//這行務必要保留
- //技能延遲(有多少個技能就添加多少個延時)
- Delays:
- dd #1000 //第一個技能延遲
- dd #200
- dd #100
- dd 0//這行務必要保留
- Timers:
- dd 0
- CurrentIndex:
- dd 0
- StartIndex:
- dd 0
- newmem:
- mov r8,1484B3698
- mov r8,[r8]
- cmp qword ptr [r8+08],2
- jg originalcode
- mov r8,1484A12E8
- mov r8,[r8]
- mov r8,[r8+28]
- cmp dword ptr [r8+00019300],0
- je originalcode
- call 1452B60C0
- mov r8d,eax
- mov ecx,[CurrentIndex]
- mov [StartIndex],ecx
- check_next:
- mov ecx,[CurrentIndex]
- lea rdx,[SkillIDs]
- mov r8d,[rdx+ecx*4]
- test r8d,r8d
- jz reset_index
- push rax
- lea rdx,[Timers]
- mov r8d,eax
- sub r8d,[rdx+ecx*4]
- lea rdx,[Delays]
- cmp r8d,[rdx+ecx*4]
- pop rax
- jl try_next_skill
- lea rdx,[Timers]
- mov [rdx+ecx*4],eax
- lea rdx,[SkillIDs]
- mov r8d,[rdx+ecx*4]
- mov [rbx+00008B84],r8d
- inc ecx
- mov [CurrentIndex],ecx
- mov eax,1
- xor r8,r8
- jmp 1451B82C0+19
- try_next_skill:
- inc ecx
- mov [CurrentIndex],ecx
- cmp ecx,[StartIndex]
- je originalcode
- jmp check_next
- reset_index:
- xor ecx,ecx
- mov [CurrentIndex],ecx
- cmp [StartIndex],0
- je originalcode
- jmp check_next
- originalcode:
- mov eax,1
- xor r8,r8
- cmp [rbx+00008B84],r12d
- exit:
- jmp returnhere
- 1451B82C0:
- jmp newmem
- nop
- nop
- returnhere:
- 1451B82C0+5C:
- jmp 1451B82C0+1A4
- nop
- 1451B82C0+24A:
- jmp 1451B82C0+2A1
- nop
- nop
- nop
- nop
- [DISABLE]
- 1451B82C0:
- cmp [rbx+00008B84],r12d
- 1451B82C0+5C:
- cmp eax,[rbx+00008B88]
- 1451B82C0+24A:
- ja 1451B86EB
- dealloc(newmem)
- dealloc(SkillIDs)
- dealloc(Delays)
- dealloc(Timers)
- dealloc(CurrentIndex)
- dealloc(StartIndex)
複製代碼 所有技能都有獨立延遲,互不干擾
|
-
總評分: 楓幣 + 7
鑰匙 + 1
GP + 1
查看全部評分
|