冰楓論壇

標題: 求TwMs v247.1 寵物-物品定位 [打印本頁]

作者: m1505    時間: 2022-10-27 01:23
標題: 求TwMs v247.1 寵物-物品定位
如舊版TwMs v240.2 寵物-物品定位,懇求高手幫忙TwMs v247.1 人物左右走數據,感恩!
作者: rhg59321    時間: 2022-10-27 01:23
// TwMS v247.1 寵物-物品定位
[Enable]
141BF6E80:
DB 90 90 90 90 90 90

[Disable]
141BF6E80:
DB 0F 85 89 15 00 00


// TwMS v247.1 人物左右走
[ENABLE]
Alloc(AutoLRICSEntry,128,147869E90)
Alloc(AutoLRRange,08,147869E90)
Alloc(AutoLRMain,256,147869E90)
Alloc(AutoLRValue,08,147869E90)
Label(ICSReturn)
Label(GoLeft)
Label(GoRight)

AutoLRRange:
DQ A  //16進制 A=10 設置0為不左右走

AutoLRICSEntry:
push rax
mov rax,140A86ED3
cmp [rsp+08],rax
jne ICSReturn
mov rax,AutoLRMain
mov [rsp+08],rax
ICSReturn:
pop rax
jmp GetFocus

AutoLRMain:
cmp [AutoLRRange], 0
je 140A86ED3
inc [AutoLRValue]
mov eax,[AutoLRRange]
cmp eax,[AutoLRValue]
jge GoLeft
add eax,[AutoLRRange]
cmp eax,[AutoLRValue]
jge GoRight
mov [AutoLRValue],1
jmp GoLeft

GoLeft:
xor r14l,r14l
mov [rsp+50],FFFFFFFF
jmp 140A86EF5

GoRight:
xor r14l,r14l
mov [rsp+50],1
jmp 140A86EF5

147869E90:
DQ AutoLRICSEntry

[DISABLE]
147869E90:
DQ GetFocus

DeAlloc(AutoLRMain)
DeAlloc(AutoLRValue)
DeAlloc(AutoLRRange)
DeAlloc(AutoLRICSEntry)





歡迎光臨 冰楓論壇 (https://bingfong.com/) Powered by 冰楓