麗麗 發表於 2020-10-21 20:41:56

TwMS v229.2 ICS 自動掉血

// TwMS v229.2 ICS 自動掉血


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 ,00B9A36A
jne GetFocus
mov ,SetDamage
jmp GetFocus

SetDamage:
pushad
cmp ,1
jne SetDamageExit
// SetDelay
call 02BB0060
mov edx,eax
sub edx,
cmp edx,
jl SetDamageExit
mov ,eax
//
mov ecx,
push 00
push 00
push 01
push
push 00
push 00
push 00
push 00
push 00
push 00
push 00
push
xor eax,eax
xor edx,edx
call 029F4A90
popad
jmp 00B9A36A

SetDamageExit:
popad
jmp 00B9A36A

0457EC60:
DD SetDamageHook


0457EC60:
DD GetFocus

DeAlloc(SetDamageHook)
DeAlloc(Mode)
DeAlloc(Value)
DeAlloc(SetDamegeDelay)
DeAlloc(Timer)
DeAlloc(SetDamageSW)
UnRegisterSymbol(SetDamageSW)
UnRegisterSymbol(Mode)
UnRegisterSymbol(SetDamegeDelay)
UnRegisterSymbol(Value)
頁: [1]
查看完整版本: TwMS v229.2 ICS 自動掉血