View Single Post
Old 25.12.2009, 13:34   #6
NewOne
Guest
 
Posts: n/a
Default Duelist Eat All charges in skills

I had to search for postpacific's google cache, but i found this:

Public ChargeFix

.const

.code

ChargeFix proc

;SkillInfo = r12+68h

;SkillInfo+0h - wszSkillName

;SkillInfo+8h - skillID

;RBP - pUser

;overwrited code

;.text:00000000006B8BB6 xor esi, esi ;Clear ESI

;.text:00000000006B8BB8 mov [rbp+0BACh], esi ;ZeroCharges

;.text:00000000006B8BBE mov rax, [rbp+0] ;ExitPoint

mov rax, [r12+68h] ;SkillInfo

mov eax, dword ptr [rax+8h] ;SkillID

cmp eax, 105h ;TripleSonicSlash

je FourChargesRequied

cmp eax, 5h ;DoubleSonicSlash

je ThreeChargesRequied

cmp eax, 6h ;SonicBlaster

je TwoChargesRequied

cmp eax, 11Ch ;HurricaneAssault

je TwoChargesRequied

cmp eax, 36h ;ForceBlaster

je OneChargeRequied

jmp Exit_Point

FourChargesRequied:

mov eax, dword ptr [rbp+0BACh] ;Get current charges

sub eax, 4h ;Decrease current charges

mov [rbp+0BACh], eax ;Set new charges

jmp Exit_Point

ThreeChargesRequied:

mov eax, dword ptr [rbp+0BACh] ;Get current charges

sub eax, 3h ;Decrease current charges

mov [rbp+0BACh], eax ;Set new charges

jmp Exit_Point

TwoChargesRequied:

mov eax, dword ptr [rbp+0BACh] ;Get current charges

sub eax, 2h ;Decrease current charges

mov [rbp+0BACh], eax ;Set new charges

jmp Exit_Point

OneChargeRequied:

mov eax, dword ptr [rbp+0BACh] ;Get current charges

sub eax, 1h ;Decrease current charges

mov [rbp+0BACh], eax ;Set new charges

jmp Exit_Point

Exit_Point:

xor esi, esi

mov rax, 006B8BBEh

jmp rax

ChargeFix endp

end

By the looks of it, it's located in PUser+0BACh (so, it would be 0BACh)

Hello, this code works for C4? -- Can someone supply a small tutorial to apply it? Like, what is a good ASM assembler you recommend? Or if this is not for C4, information on fixing C4 duelist charge bug would be appreciated. For future noobs who try to search for the fix! :P

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 12-25-2009, 01:34 PM. Открыть источник.