Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Help

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 01.07.2009, 10:48   #1
Sighed
Guest
 
Posts: n/a
Default Duelist Eat All charges in skills

The problem is that the duelist or gladiator eat all the charges if he has to use some skill that consume some charges. �Any idea how to fix ?

Thank you in advance

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 07-01-2009, 10:48 AM. Открыть источник.
 
Old 01.07.2009, 11:12   #2
goodtimeshaxor
Guest
 
Posts: n/a
Default Duelist Eat All charges in skills

On this note. Does anyone know where the gladiator charge variable is in CCreature/CUser?

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 07-01-2009, 11:12 AM. Открыть источник.
 
Old 01.07.2009, 11:23   #3
Renobizarro
Guest
 
Posts: n/a
Default Duelist Eat All charges in skills

wth? are u using dvamp 100kb? xD

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 07-01-2009, 11:23 AM. Открыть источник.
 
Old 01.07.2009, 17:17   #4
Osito2Dancer
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)

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 07-01-2009, 05:17 PM. Открыть источник.
 
Old 02.07.2009, 00:34   #5
Sighed
Guest
 
Posts: n/a
Default Duelist Eat All charges in skills

Im using COEP Hellbound x64 version

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 07-02-2009, 12:34 AM. Открыть источник.
 
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. Открыть источник.
 
Old 25.12.2009, 14:05   #7
mrmac
Guest
 
Posts: n/a
Default Duelist Eat All charges in skills

FASM.

And yes that code can be used for native C4 exe.

A more "proper fix" would be nopping:

text:00000000006B8BB8 mov [rbp+0BACh]

and then writing a skill effect to decrease charges (pUser Object offset: 0BAC).

Because that offset is inside the operate_cond checking for charges.

Check open PP for reference, someone should have added that ... i think?

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 18:16.