- UID
- 248745
- 帖子
- 322
- 主題
- 57
- 精華
- 0
- 積分
- 355
- 楓幣
- 1058
- 威望
- 301
- 存款
- 11807
- 贊助金額
- 150
- 推廣
- 0
- GP
- 57
- 閱讀權限
- 30
- 在線時間
- 325 小時
- 註冊時間
- 2018-9-30
- 最後登入
- 2024-11-22
|
如題,小弟我思考這個問題很久,小弟以TwMs v230.3 登記找路為練習目標,希望有大大可以幫我解答- // TwMS v230.3 登記找路 Thread
- [ENABLE]
- RegisterSymbol(AutoFindway)
- Alloc(AutoFindway,512)
- RegisterSymbol(delay)
- Alloc(delay,04)
- Alloc(timer,04)
- Label(do)
- CreateThread(AutoFindway)
- delay:
- dd 3E8
- timer:
- dd 0
- AutoFindway:
- call 02BC2D10
- mov edx,eax
- sub edx,[timer]
- cmp edx,[delay]
- jl AutoFindway
- mov [timer],eax
- // Check Status Start
- mov eax,[042DEB04]
- mov eax,[eax+00000174]
- cmp eax,1
- jne AutoFindway
- mov eax,[042DEDE4]
- mov eax,[eax+00010A88]
- cmp eax,0
- je AutoFindway
- mov eax,[042DEDE4]
- mov eax,[eax+00010A8C]
- cmp eax,000F423F
- je AutoFindway
- // Check Status End
- call do
- jmp AutoFindway
- do:
- // Teleport
- mov eax,[042DEDE4]
- mov ebx,[eax+00010A88] //X
- mov edx,[eax+00010A8C] //Y
- sub edx,2 //adjust Y
- mov esi,[042DEDE4]
- lea ecx,[esi+04]
- mov eax,[esi+04]
- mov eax,[eax+24]
- call eax
- test eax,eax
- je AutoFindway
- push edx
- push ebx
- push 00
- mov ecx,eax
- call 00B77B30
- mov eax,[042DEDE4]
- mov [eax+00011A3C],1
- ret
- [DISABLE]
- AutoFindway:
- ret
- UnRegisterSymbol(AutoFindway)
- DeAlloc(AutoFindway)
- UnRegisterSymbol(delay)
- DeAlloc(delay)
- DeAlloc(timer)
複製代碼 |
|