求更新牆值左右走以及牆值指針
如題求更新牆值左右走以及指針
或者是設定定點座標走動
本帖最後由 smilelin0419 於 2023-9-1 10:24 編輯
//TwMs v254.4 牆值左右走
Alloc(AutoLRICSEntry,128,140C20C38)
Alloc(AutoLRMain,256,140C20C38)
Alloc(MyLR,08,140C20C38)
Label(GetWall)
Label(GetChrX)
Label(ICSReturn)
Label(GoLeft)
Label(GoRight)
MyLR:
DQ 1
AutoLRICSEntry:
push rax
mov rax,140C20C38
cmp ,rax
jne ICSReturn
mov rax,AutoLRMain
mov ,rax
ICSReturn:
pop rax
jmp GetFocus
AutoLRMain:
call GetWall
mov ,r14l
mov ,eax
xor rcx,rcx
xor rbx,rbx
xor rax,rax
jmp 140C20C67
GetWall:
call GetChrX
mov rcx,
mov ebx,
sub eax,ebx
cmp eax,20
jle GoRight
call GetChrX
mov rcx,
mov ebx,
sub ebx,eax
cmp ebx,20
jle GoLeft
mov eax,
ret
GoLeft:
Mov ,FFFFFFFF
Mov Eax,FFFFFFFF
Ret
GoRight:
Mov ,1
Mov Eax,1
Ret
GetChrX:
mov rax,
mov rax,
mov rax,
mov rax,
mov rax,
ret
146C94630:
DQ AutoLRICSEntry
146C94630:
DQ GetFocus
DeAlloc(AutoLRMain)
DeAlloc(AutoLRValue)
DeAlloc(AutoLRRange)
DeAlloc(AutoLRICSEntry) 您好,版上有這個數據呢,我個人可以使用,還是您是要其他的數據呢 //TwMs v254.4 人物左右走
Alloc(AutoLRICSEntry,128,140C20C38)
Alloc(AutoLRRange,08,140C20C38)
Alloc(AutoLRMain,256,140C20C38)
Alloc(AutoLRValue,08,140C20C38)
Label(ICSReturn)
Label(GoLeft)
Label(GoRight)
AutoLRRange:
DQ 46 //16進制 A=10 設置0為不左右走
AutoLRICSEntry:
push rax
mov rax,140C20C38
cmp ,rax
jne ICSReturn
mov rax,AutoLRMain
mov ,rax
ICSReturn:
pop rax
jmp GetFocus
AutoLRMain:
cmp , 0
je 140C20C38
inc
mov eax,
cmp eax,
jge GoLeft
add eax,
cmp eax,
jge GoRight
mov ,1
jmp GoLeft
GoLeft:
mov ,r14l
mov ,FFFFFFFF
jmp 140C20C67
GoRight:
mov ,r14l
mov ,1
jmp 140C20C67
146C94630:
DQ AutoLRICSEntry
146C94630:
DQ GetFocus
DeAlloc(AutoLRMain)
DeAlloc(AutoLRValue)
DeAlloc(AutoLRRange)
DeAlloc(AutoLRICSEntry)
我目前的16進制是改為46,您要不要先試試看 童章明 發表於 2023-8-27 22:22 static/image/common/back.gif
//TwMs v254.4 人物左右走
Alloc(AutoLRICSEntry,128,140C20C38)
這是人物左右 不是牆值.....
不一樣的呢 童章明 發表於 2023-8-27 22:16 static/image/common/back.gif
您好,版上有這個數據呢,我個人可以使用,還是您是要其他的數據呢
哪裡有呢? 啊!那我誤會您的意思了? smilelin0419 發表於 2023-8-28 19:44 static/image/common/back.gif
//TwMs v254.4 牆值左右走
Alloc(AutoLRICSEntry,128,140C20C38)
根據你的描述,點評描述,你就是忘了寫這串代碼,才沒辦法不用遇到牆值就能左右走
//以下為忘記部分
MyLR:
dq 01
//以上為忘記部分
下面附上修正後的版本:
//TwMs v254.4 牆值左右走
Alloc(AutoLRICSEntry,128,140C20C38)
Alloc(AutoLRMain,256,140C20C38)
Alloc(MyLR,08,140C20C38)
Label(GetWall)
Label(GetChrX)
Label(ICSReturn)
Label(GoLeft)
Label(GoRight)
MyLR:
dq 01
AutoLRICSEntry:
push rax
mov rax,140C20C38
cmp ,rax
jne ICSReturn
mov rax,AutoLRMain
mov ,rax
ICSReturn:
pop rax
jmp GetFocus
AutoLRMain:
call GetWall
mov ,r14l
mov ,eax
xor rcx,rcx
xor rbx,rbx
xor rax,rax
jmp 140C20C67
GetWall:
call GetChrX
mov rcx,
mov ebx,
sub eax,ebx
cmp eax,20
jle GoRight
call GetChrX
mov rcx,
mov ebx,
sub ebx,eax
cmp ebx,20
jle GoLeft
mov eax,
ret
GoLeft:
Mov ,FFFFFFFF
Mov Eax,FFFFFFFF
Ret
GoRight:
Mov ,1
Mov Eax,1
Ret
GetChrX:
mov rax,
mov rax,
mov rax,
mov rax,
mov eax,
ret
146C94630:
DQ AutoLRICSEntry
146C94630:
DQ GetFocus
DeAlloc(AutoLRMain)
DeAlloc(AutoLRValue)
DeAlloc(AutoLRRange)
DeAlloc(AutoLRICSEntry)
頁:
[1]