- //TWMS0.83疾風N合一 左跑左掉 右跑右掉 超撿 熱鍵登出
- //原作:jajaja, 感謝99,A,D,L,N,W,W(縮寫)
- //原出處:疾風之莊
- //更新:2008/11/15 by coke2007
- //功能:超撿、熱鍵登出、走,跳怪方向【左趴往左,右趴往右,坐下停止控制】、笨怪、10秒損血一次、
- //紅點"不"停、跳怪不跳、致命的吸引力【定點及跟隨角色二種模式,啟動方式提示:5秒】
- //Address:004134CC
- //EIP:MyLR
- //LR:掉怪方向 1停3左2右 可以加到清單上了比較方便
- //熱鍵 :AutoDCSw 1=登出
- //=================================================
- [enable]
- 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)
- label(LRDir7)
- registersymbol(LR)
- alloc(LR,4)
- label(AutoDC)
- label(AutoDC1)
- label(AutoDC2)
- registersymbol(AutoDCSw)
- alloc(AutoDCSw,4)
- LR:
- DD 2 //預設向右走
- MyDir:
- DD 1
- MyLR:
- push eax
- call AutoDC
- cmp [009A17DC],00000000
- je MyLR1
- mov eax,[009A17DC]
- mov [eax+350], 0
- cmp [009AE7DC],00000000
- je MyLR1
- mov eax,[009A17EC]
- mov [eax+206C], 0
- cmp [98D464], 0
- je MyLR1
- cmp [009A17D4],00000000
- je MyLR1
- mov eax,[009A17D4]
- mov eax,[eax+18]
- cmp eax,0
- jne MyLR1
- pop eax
- cmp dword ptr [esp], 0081E1E1
- je GoLR
- cmp dword ptr [esp], 0081E5F5
- je JmpLR
- cmp dword ptr [esp], 0081D2EE
- je MyStupid
- cmp dword ptr [esp], 007D482B
- jz MyNoBack
- cmp dword ptr [esp], 0081E5AD
- 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 0081E1EB
- //================================
- 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:
- cmp [esi+00000228],1 //<----------以防改到走怪
- je LRDir7
- cmp eax,[LR] //3改2則是右掉喔.可是要搭配疾風右走才行
- jne LRDir7
- sub [esi+00000228],2 //這個不要亂動.改到讓怪漂浮會鎖喔
- LRDir7: //<------------
- push 03
- jmp 0081E5F7
- //================================
- MyCharX:
- mov eax [009A17DC]
- mov eax, [eax+0B8C]
- ret
- //================================
- AutoDC:
- cmp [AutoDCSw], 0
- je AutoDC2
- cmp [009A17DC], 0
- jne AutoDC1
- mov [AutoDCSw], 0
- jmp AutoDC2
- AutoDC1:
- push eax
- mov eax, [009A17DC]
- mov [eax+0354], 13 //<<====== 主要是多這一行.藉由假死來達到不用移動而能登出.
- mov eax, [eax+bb0]
- mov [eax+19c], 0
- pop eax
- AutoDC2:
- ret
- //================================
- MyState:
- push eax
- mov eax, [009A17DC]
- 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 0081D339
- cmp [esi+00000234],edi
- lea ecx,[esi+00000234]
- je 0081D339
- jmp 0081D31F
- //============================
- MyNoBack:
- add esp,4
- mov eax, [ebp-10]
- push FFFFD8F0 //原始值=FFFFFA24,修改此處可更改無敵秒數
- jmp 007D4E71
- //============================
- MyNoJmp:
- add esp,4
- jmp 0081E5C1
- [disable]
- dealloc(MyLR)
- unregistersymbol(MyLR)
- dealloc(MyDir)
- dealloc(MyCt)
- dealloc(MyPt1)
- dealloc(LR)
- unregistersymbol(LR)
- unregistersymbol(AutoDCSw)
- dealloc(AutoDCSw)
複製代碼 |