TwMS v1.45_ICS_跳怪控制
//TWMS145 跳怪控制 ICS
//更新:zelda911 2012/4/12
[ENABLE]
Alloc(MobJumpControl, 128)
Alloc(MobJumpKey, 4)
RegisterSymbol(MobJumpKey)
Label(MobJumpControlMain)
MobJumpKey:
// 1:怪物不跳
// 2:怪物狂跳
// 其他:不控制
DD 1
MobJumpControl:
Cmp [Esp+1C], 008E5F84
Jne 006D34B2
Mov [Esp+1C], MobJumpControlMain
Jmp 006D34B2
MobJumpControlMain:
Push 05
Xor Edx, Edx
Pop Ecx
Div Ecx
Cmp [MobJumpKey], 1
Je 008E5F98 // Jne Adr
Cmp [MobJumpKey], 2
Je 008E5F8F // Mov Ecx, Esi
Jmp 008E5F8B // Test Edx, Edx
00D02D84:
DD MobJumpControl
[DISABLE]
00D02D84:
DD 006D34B2
Dealloc(MobJumpControl)
Dealloc(MobJumpKey)
UnregisterSymbol(MobJumpKey)
//更新:zelda911 2012/4/12
[ENABLE]
Alloc(MobJumpControl, 128)
Alloc(MobJumpKey, 4)
RegisterSymbol(MobJumpKey)
Label(MobJumpControlMain)
MobJumpKey:
// 1:怪物不跳
// 2:怪物狂跳
// 其他:不控制
DD 1
MobJumpControl:
Cmp [Esp+1C], 008E5F84
Jne 006D34B2
Mov [Esp+1C], MobJumpControlMain
Jmp 006D34B2
MobJumpControlMain:
Push 05
Xor Edx, Edx
Pop Ecx
Div Ecx
Cmp [MobJumpKey], 1
Je 008E5F98 // Jne Adr
Cmp [MobJumpKey], 2
Je 008E5F8F // Mov Ecx, Esi
Jmp 008E5F8B // Test Edx, Edx
00D02D84:
DD MobJumpControl
[DISABLE]
00D02D84:
DD 006D34B2
Dealloc(MobJumpControl)
Dealloc(MobJumpKey)
UnregisterSymbol(MobJumpKey)
留言
張貼留言