Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY! > Extenders

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 12.03.2008, 21:54   #1
Kation
Guest
 
Posts: n/a
Default Gladiator/Tyrant's Fix

Code:

Code:
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
You got 100% info where to hook and how many nops in code. Have Fun.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Дата оценена по относительному времени в снимке (6 Days Ago); точное время не сохранилось. Открыть источник.
 
 

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 20:39.