Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Grand Reset in Character Menu (C)  (Visto 508 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline rekis Posteado: December 13, 2021, 04:17:44 PM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 54
  • Gracias recibida: 10
  • lv
Hello.

How to add Grand Reset/Master Reset in Character menu (C) ? I have no idea about correct offsets... Files using Louis emu up 13.
So its Level: xx | Resets: xx | GResets: xx
https://prnt.sc/22uxusk

This is for Level and Reset
Code: [Select]
	SetCompleteHook(0xE9,0x0077FB09,&PrintPlayerLevel1);

SetCompleteHook(0xE9,0x0077FB3E,&PrintPlayerLevel2);


__declspec(naked) void PrintPlayerLevel1() // OK
{
static DWORD PrintPlayerLevelAddress1 = 0x0050D100;
static DWORD PrintPlayerLevelAddress2 = 0x0077FB28;

_asm
{
Mov Eax,ViewReset
Push Eax
Mov Ecx,Dword Ptr Ds:[MAIN_CHARACTER_STRUCT]
Xor Edx,Edx
Mov Dx,Word Ptr Ds:[Ecx+0x0E]
Push Edx
Push 0
Lea Ecx,gCustomMessage
Call [CCustomMessage::GetMessage]
Push Eax
Lea Ecx,Dword Ptr Ss:[Ebp-0x128]
Push Ecx
Call [PrintPlayerLevelAddress1]
Add Esp,0x10
Jmp [PrintPlayerLevelAddress2]
}
}

__declspec(naked) void PrintPlayerLevel2() // OK
{
static DWORD PrintPlayerLevelAddress1 = 0x0050D100;
static DWORD PrintPlayerLevelAddress2 = 0x0077FB68;

_asm
{
Mov Eax,ViewReset
Push Eax
Mov Ecx,Dword Ptr Ds:[MAIN_CHARACTER_STRUCT]
Xor Edx,Edx
Mov Dx,Word Ptr Ds:[Ecx+0x0E]
Push Edx
Push 0
Lea Ecx,gCustomMessage
Call [CCustomMessage::GetMessage]
Push Eax
Lea Ecx,Dword Ptr Ss:[Ebp-0x128]
Push Ecx
Call [PrintPlayerLevelAddress1]
Add Esp,0x10
Jmp [PrintPlayerLevelAddress2]
}
}


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
0 Replies
914 Views
Last post February 13, 2019, 04:36:29 PM
by Dambis
3 Replies
3977 Views
Last post February 11, 2021, 11:52:54 AM
by melo920
1 Replies
722 Views
Last post March 01, 2021, 07:11:32 PM
by ZabiinoOo
1 Replies
1874 Views
Last post March 23, 2021, 08:38:59 PM
by Specifier
5 Replies
306 Views
Last post December 01, 2025, 02:40:38 PM
by Djassar