plusline 發表於 2021-10-2 19:21:12

如何將延遲加進數據

本帖最後由 plusline 於 2021-10-2 20:34 編輯

我想要將尾隨怪物的數據加入延遲(黃底的部分)
但我實在是試不出來
下面是有我改出來有bug的數據
可以告訴我哪一個部分做錯了嗎
正常的尾隨怪物數據我更新在這裡: https://bingfong.com/thread-1810607-1-1.html

// TwMs v237.1 ICS 延遲尾隨怪物

Alloc(Check_Esp,128)
Label(Teleport)
Label(Exit)

Alloc(Timer,4)
Registersymbol(AutoKeyDelay)
Alloc(AutoKeyDelay,4)

Check_Esp:
cmp ,02EEB8E1
jne GetLastError
mov ,Teleport
jmp GetLastError

//攻擊間隔(毫秒)十六進制
AutoKeyDelay:
DD 7FFF
Timer:
DD 0



Teleport:
push edx
push eax
push ecx

//判斷時間是否到了
call GetTickCount
mov ecx,eax
sub ecx,
cmp ecx,
jl Exit
mov ,eax



mov edx,
mov eax,
lea ecx,
mov eax,
call eax
test eax,eax
je Exit
push
push
push 00
mov ecx,eax
call 00C1EA90
jmp Exit

Exit:
pop ecx
pop eax
pop edx
jmp 02EEB8E1

039E5158:
DD Check_Esp


039E5158:
DD GetLastError

DeAlloc(Check_Esp)
DeAlloc(Timer)
DeAlloc(AutoKeyDelay)



qwas963563 發表於 2021-10-2 19:21:13

原本:
Check_Esp:
cmp ,02EEB8E1
jne GetLastError
mov ,Teleport
jmp GetLastError

//攻擊間隔(毫秒)十六進制
AutoKeyDelay:
DD 7FFF
Timer:
DD 0

(把它們交換一下順序)改成:

//攻擊間隔(毫秒)十六進制
AutoKeyDelay:
DD 7FFF
Timer:
DD 0

Check_Esp:
cmp ,02EEB8E1
jne GetLastError
mov ,Teleport
jmp GetLastError

qwas963563 發表於 2021-10-2 20:26:48

你是遇到了什麼 bug ?
頁: [1]
查看完整版本: 如何將延遲加進數據