冰楓論壇

標題: TwMS v216.1 CRC Auto HP/MP [打印本頁]

作者: rhg59321    時間: 2019-5-16 23:05
標題: TwMS v216.1 CRC Auto HP/MP
// TwMS v216.1 CRC Auto HP/MP
// Update from GMS

[Enable]
alloc(HP,4)
alloc(MP,4)
alloc(CheckHP,128)
alloc(CheckMP,128)
alloc(PressKey,128)
label(HPReturn)
label(MPReturn)

define(HP_Value,#1000) //Define HP Trigger Here (Do not remove # tag)
define(MP_Value,#600) //Define MP Trigger Here (Do not remove # tag)
define(HealthKey,01520000) //HP Key--Insert
define(ManaKey,01510000) //MP Key--PgDown

HP:
dd HP_Value
MP:
dd MP_Value

CheckHP:
mov [eax+00000214],ebx
cmp esi,[HP]
jg HPReturn
pushad
mov edx,HealthKey
call PressKey
popad
jmp HPReturn

CheckMP:
mov [ebx+00000214],edi
cmp esi,[MP]
jg MPReturn
pushad
mov edx,ManaKey
call PressKey
popad
jmp MPReturn

01FF8A4A:
jmp CheckHP
db 90
HPReturn:

01FF78FF:
jmp CheckMP
db 90
MPReturn:

PressKey:
mov esi,[0398ED6C]
mov ecx,[esi+A4]
push edx
push 00
call 02601F90
ret

[disable]
01FF8A4A:
mov [eax+00000214],ebx
01FF78FF:
mov [ebx+00000214],edi
dealloc(HP)
dealloc(MP)
dealloc(CheckHP)
dealloc(CheckMP)
dealloc(UseHP)
dealloc(UseMP)
dealloc(PressKey)






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