- UID
- 287787
- 帖子
- 220
- 主題
- 94
- 精華
- 0
- 積分
- 382
- 楓幣
- 3085
- 威望
- 354
- 存款
- 0
- 贊助金額
- 0
- 推廣
- 6
- GP
- 101
- 閱讀權限
- 30
- 在線時間
- 551 小時
- 註冊時間
- 2020-8-5
- 最後登入
- 2024-12-22
|
- // TwMs v229.2 ICS 自動掉血
- [ENABLE]
- Alloc(SetDamageHook,256)
- Alloc(Mode,4)
- RegisterSymbol(Mode)
- Alloc(Timer,4)
- Alloc(Value,4)
- RegisterSymbol(Value)
- Alloc(SetDamageSW,4)
- RegisterSymbol(SetDamageSW)
- Alloc(SetDamegeDelay,4)
- RegisterSymbol(SetDamegeDelay)
- Label(SetDamage)
- Label(SetDamageExit)
- SetDamageSW:
- DD 1
- // 掉血模式 0=連續掉血 1=墜落掉血
- Mode:
- DD 0
- // 掉血量
- Value:
- DD 1
- // 掉血間隔
- SetDamegeDelay:
- DD 32
- // 請勿修改
- Timer:
- DD 0
- SetDamageHook:
- cmp [esp],00B9A36A
- jne GetFocus
- mov [esp],SetDamage
- jmp GetFocus
- SetDamage:
- pushad
- cmp [SetDamageSW],1
- jne SetDamageExit
- // SetDelay
- call 02BB0060
- mov edx,eax
- sub edx,[Timer]
- cmp edx,[SetDamegeDelay]
- jl SetDamageExit
- mov [Timer],eax
- //
- mov ecx,[042CFD74]
- push 00
- push 00
- push 01
- push [Mode]
- push 00
- push 00
- push 00
- push 00
- push 00
- push 00
- push 00
- push [Value]
- xor eax,eax
- xor edx,edx
- call 029F4A90
- popad
- jmp 00B9A36A
- SetDamageExit:
- popad
- jmp 00B9A36A
- 0457EC60:
- DD SetDamageHook
- [DISABLE]
- 0457EC60:
- DD GetFocus
- DeAlloc(SetDamageHook)
- DeAlloc(Mode)
- DeAlloc(Value)
- DeAlloc(SetDamegeDelay)
- DeAlloc(Timer)
- DeAlloc(SetDamageSW)
- UnRegisterSymbol(SetDamageSW)
- UnRegisterSymbol(Mode)
- UnRegisterSymbol(SetDamegeDelay)
- UnRegisterSymbol(Value)
複製代碼 |
-
總評分: 鑰匙 + 1
查看全部評分
|