    
- UID
- 175467
- 帖子
- 24820
- 主題
- 1263
- 精華
- 0
- 積分
- 3083
- 楓幣
- 11503
- 威望
- 2487
- 存款
- 137915
- 贊助金額
- 1500
- 推廣
- 0
- GP
- 6185
- 閱讀權限
- 150
- 在線時間
- 4417 小時
- 註冊時間
- 2017-1-18
- 最後登入
- 2025-3-3
|
本帖最後由 btb 於 2017-9-13 21:32 編輯
約過15~20張圖會斷
但單獨對 瞬移、按鍵call、登記找路call 做壓力測都不會斷,不知是哪裡有bug
不一定要用在timegettime, main code可以換在會不斷執行到的地方即可
[enable]
GlobalAlloc(BuildInTaxi, 256)
GlobalAlloc(status, 4)
GlobalAlloc(targetMapID, 4)
GlobalAlloc(CurrMapID, 4)
GlobalAlloc(NextMapID, 4)
GlobalAlloc(RetryClock, 4)
Label(check)
Label(findpath)
Label(set_teleport)
Label(wait_teleport)
Label(press_up_key)
Label(wait_through)
Label(retry_press)
Label(arrive)
Label(nofound)
Label(noset)
Label(normal)
status:
DD 06 // 01 : use targetMapID, 06 : use game's find
targetMapID: //targetMapID
DD #102030400
NextMapID:
DD 0
RetryClock:
DD 0
0132F408:
DD BuildInTaxi
BuildInTaxi:
pushad
mov eax, [status]
cmp eax, 0
je normal
cmp eax, 6
je check
cmp eax, 1
je findpath
cmp eax, 2
je set_teleport
cmp eax, 3
je wait_teleport
cmp eax, 4
je press_up_key
cmp eax, 5
je wait_through
jmp normal
check:
mov eax, [01841FFC]
test eax, eax
je normal
cmp [eax+D8], 3B9AC9FF
je noset
push dword ptr [eax+D8]
pop dword ptr [targetMapID]
mov [status], 2
jmp normal
findpath:
mov eax, [0184F9A0]
test eax, eax
je normal
mov eax, [eax+17C0]
cmp [targetMapID], eax
je arrive
mov [status], 2
push 01
push dword ptr [targetMapID]
mov edi, [01841FFC]
mov ecx, edi
call 0108670A
cmp [edi+E0], 0
je nofound
jmp normal
set_teleport:
mov esi, [01842008]
test esi, esi
je normal
cmp [esi+B038], F423F
je normal
mov [status], 3
mov [esi+B4B0], 1
push [esi+B038]
pop [esi+B4B8]
push [esi+B03C]
sub [esp],8
pop [esi+B4BC]
jmp normal
wait_teleport:
mov eax, [0184F9A0]
test eax, eax
je normal
mov eax, [eax+17C0]
cmp [targetMapID], eax
je arrive
mov esi, [01842008]
test esi, esi
je normal
cmp [esi+B4B0], 1
je normal
cmp [esi+B038], F423F
je normal
mov esi, [esi+604]
and esi, #-2 // FFFFFFFE
cmp esi, 6
je normal
mov [status], 4
jmp normal
press_up_key:
mov eax, [01841FFC]
test eax, eax
je normal
mov ecx, [eax+DC]
cmp ecx, 3B9AC9FF
je normal
mov [eax+627D], 1
mov [status], 5
mov [NextMapID], ecx
push 01480000
push 26
push 100
mov ecx, [0184667C]
call 00FFF6D7
jmp normal
wait_through:
mov eax, [0184F9A0]
test eax, eax
je normal
mov eax, [eax+17C0]
cmp [targetMapID], eax
je arrive
inc [RetryClock]
cmp [RetryClock], 10
jge retry_press
cmp [NextMapID], eax
jne normal
mov [status], 2
jmp normal
retry_press:
mov [RetryClock], 0
mov [status], 4
jmp normal
arrive:
nofound:
noset:
mov [status], 00
normal:
popad
jmp timeGetTime
[disable]
0132F408:
DD timeGetTime
來源:https://bingfong.com/thread-152217-1-1.html
ps:給你作參考更新 |
|