冰楓論壇
標題:
TwMS v229.2 ICS 自動掉血
[打印本頁]
作者:
麗麗
時間:
2020-10-21 20:41
標題:
TwMS v229.2 ICS 自動掉血
// 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)
複製代碼
歡迎光臨 冰楓論壇 (https://bingfong.com/)
Powered by 冰楓