- //=================================================
- [enable]
- //疾風N合一 for TWMS079
- //原作:jajaja, 感謝99,A,D,L,N,W,W(縮寫)
- //原出處:疾風之莊
- //功能:走,跳怪方向【左趴往左,右趴往右,坐下停止控制】、笨怪、10秒損血一次、
- //紅點暫停、跳怪不跳、致命的吸引力【定點及跟隨角色二種模式,啟動方式提示:5秒】
- //Address:004133F6
- //EIP:MyLR
- //=================================================
- alloc(MyLR,1024)
- registersymbol(MyLR)
- alloc(MyDir,4)
- alloc(MyCt,4)
- alloc(MyPt1,4)
- label(MyLR1)
- label(GoLR)
- label(GoLR1)
- label(GoLR2)
- label(GoLR3)
- label(GoLR4)
- label(GoLR5)
- label(GoLRback)
- label(JmpLR)
- label(JmpLR1)
- label(JmpLR2)
- label(JmpLRback)
- label(MyStupid)
- label(MyNoBack)
- label(MyState)
- label(MyCharX)
- label(MyNoJmp)
- label(LRDir1)
- label(LRDir2)
- label(LRDir3)
- label(LRDir4)
- label(LRDir5)
- label(LRDir6)
- MyDir:
- DD 1
- MyLR:
- push eax
- cmp [009956E4],00000000
- je MyLR1
- mov eax,[009956E4]
- mov eax,[eax+18]
- cmp eax,0
- jne MyLR1
- pop eax
- cmp dword ptr [esp], 00814A2A
- je GoLR
- cmp dword ptr [esp], 00814E3E
- je JmpLR
- cmp dword ptr [esp], 00813B37
- je MyStupid
- cmp dword ptr [esp], 007CB47E
- jz MyNoBack
- cmp dword ptr [esp], 00814DF6
- jz MyNoJmp
- ret
- MyLR1:
- pop eax
- ret
- //================================
- GoLR:
- add esp,4
- call MyState
- push 03
- pop ecx
- mov [edi+20],eax
- xor edx,edx
- div ecx
- cmp [MyDir], 1
- je GoLRback
- cmp [MyDir], 3
- je GoLR1
- cmp [MyDir], 4
- je GoLR3
- cmp edx, [MyDir]
- je GoLRback
- mov [esi+00000468],0
- jmp GoLRback
- GoLR1:
- push eax
- call MyCharX
- jmp GoLR4
- GoLR3:
- push eax
- mov eax,[MyPt1]
- GoLR4:
- cmp edx, 1
- je GoLR5
- jg GoLR2
- cmp eax,[esi+1c4]
- pop eax
- mov [esi+00000468],5
- jl GoLRback
- mov [esi+00000468],0
- jmp GoLRback
- GoLR2:
- cmp eax,[esi+1c4]
- pop eax
- mov [esi+00000468],5
- jg GoLRback
- mov [esi+00000468],0
- jmp GoLRback
- GoLR5:
- pop eax
- mov [esi+00000468],0
- GoLRback:
- jmp 00814A34
- //================================
- JmpLR:
- add esp,4
- call MyState
- cmp [MyDir], 1
- je JmpLRback
- cmp [MyDir], 2
- mov eax,2
- je JmpLRback
- cmp [MyDir], 0
- mov eax,3
- je JmpLRback
- cmp [MyDir], 4
- je JmpLR1
- call MyCharX
- jmp JmpLR2
- JmpLR1:
- mov eax,[MyPt1]
- JmpLR2:
- cmp eax,[esi+1bc]
- mov eax,2
- mov [esi+00000468],5
- jg JmpLRback
- mov eax,3
- JmpLRback:
- push 03
- jmp 00814E40
- //================================
- MyCharX:
- mov eax [009956EC]
- mov eax, [eax+0B8C]
- ret
- //================================
- MyState:
- push eax
- mov eax, [009956EC]
- mov eax, [eax+0354]
- cmp eax, a
- je LRDir1
- cmp eax, b
- je LRDir2
- cmp eax, 14
- je LRDir3
- cmp eax, 15
- je LRDir3
- mov [MyCt], 0
- jmp LRDir4
- LRDir1:
- mov [MyDir],2
- cmp [MyCt], 32
- ja LRDir5
- inc [MyCt]
- jmp LRDir4
- LRDir2:
- mov [MyDir],0
- cmp [MyCt], 32
- ja LRDir6
- inc [MyCt]
- jmp LRDir4
- LRDir3:
- mov [MyDir],1
- jmp LRDir4
- LRDir5:
- mov [MyDir],3
- jmp LRDir4
- LRDir6:
- mov [MyDir],4
- call MyCharX
- mov [MyPt1],eax
- LRDir4:
- pop eax
- ret
- //============================
- MyStupid:
- add esp, 4
- xor edx,edx
- mov ecx,0000ea60
- div ecx
- lea eax,[esi+00000230]
- add edx,0002bf20
- mov [esi+00000238],edx
- mov edx,[esp+10]
- cmp [eax],edx
- je 00813B82
- cmp [esi+00000234],edi
- lea ecx,[esi+00000234]
- je 00813B82
- jmp 00813B68
- //============================
- MyNoBack:
- add esp,4
- mov eax, [ebp-10]
- push FFFFD8F0 //原始值=FFFFFA24,修改此處可更改無敵秒數
- jmp 007CBAC4
- //============================
- MyNoJmp:
- add esp,4
- jmp 00814E0A
- [disable]
- dealloc(MyLR)
- unregistersymbol(MyLR)
- dealloc(MyDir)
- dealloc(MyCt)
- dealloc(MyPt1)
複製代碼
[ 本帖最後由 娜莫莉 於 2009-2-4 16:15 編輯 ] |