aa4763197 發表於 2019-5-19 17:32:52

求扣血寫法

就是定時扣人物自身血量的,求,

65302666 發表於 2019-5-19 19:02:01

//此代码为CMS_079 私服 控血无敌/3次MISS一次损血

Registersymbol(kongxue)
Alloc(kongxue, 128)
Registersymbol(guagua)
Alloc(diaoxue, 4)
Alloc(cishu,128)
Registersymbol(cishu)
alloc(diaoxue,512)
Registersymbol(diaoxue)

cishu:
dd #3

diaoxue:     //此处修改掉血值
dd #0

kongxue:
dec dword ptr
cmp dword ptr,0
je diaoxue
mov eax,0
mov ,eax
jmp 0096537A

diaoxue:
mov ,#4
mov eax,0
mov eax,
mov ,eax
jmp 0096537A

009644D4:
jmp kongxue
nop


009644D4:
je 00965375
unRegistersymbol(cishu)
unRegistersymbol(guagua)
Unregistersymbol(kongxue)
dealloc(kongxue)
Unregistersymbol(diaoxue)
dealloc(diaoxue)

aa4763197 發表於 2019-5-19 21:54:37

65302666 發表於 2019-5-19 19:02 static/image/common/back.gif
//此代码为CMS_079 私服 控血无敌/3次MISS一次损血

Registersymbol(kongxue)


有最新國服寫法嘛,大佬,162

65302666 發表於 2019-5-19 22:07:51

aa4763197 發表於 2019-5-19 21:54 static/image/common/back.gif
有最新國服寫法嘛,大佬,162

你更新过去看看能不能用就知道了

prt 發表於 2019-5-19 23:29:26

65302666 發表於 2019-5-19 19:02 static/image/common/back.gif
//此代码为CMS_079 私服 控血无敌/3次MISS一次损血

Registersymbol(kongxue)


此數據是私服的  以前196.3有此數據
https://bingfong.com/forum.php?mod=viewthread&tid=511883&highlight=196.3

65302666 發表於 2019-5-20 19:25:56

prt 發表於 2019-5-19 23:29 static/image/common/back.gif
此數據是私服的  以前196.3有此數據
https://bingfong.com/forum.php?mod=viewthread&tid=511883&highligh ...

感谢P大分享

ke90927 發表於 2019-5-21 16:27:22


alloc(CUserLocal__SetDamaged_Hook,128)
label(CUserLocal__SetDamaged_Normal)
label(return)

CUserLocal__SetDamaged_Hook:
push 00
push 00
push 00
push 00//0为关,1为持续【可以视为间隔】
push 00
push 00
push 00
push 00
push 00
push 00
push 00
push 00//掉血量
xor edx,edx
call CUserLocal__SetDamaged_Normal
ret 0030

CUserLocal__SetDamaged_Normal:
push ebp
mov ebp,esp
push -01
jmp return

02648640: // CUserLocal::SetDamaged
jmp CUserLocal__SetDamaged_Hook
return:


//E8 ? ? ? ? EB ? 6A 00 6A 01 6A 00 6A 01
02648640: //E8 ? ? ? ? 8D ? ? E8 ? ? ? ? 8B ? ? 64 ? ? ? ? ? ? 59 5E 8B ? 5D C2 1C 00
db 55 8B EC 6A FF

数据自行AOB更新
頁: [1]
查看完整版本: 求扣血寫法