PDA

View Full Version : |Source| Desativar botões nas estatísticas e no inventário Main 1.04e (Muemu)



megaman
03/09/2019, 09:20 AM
Fonte para Main 1.04e (Muemu)

Antes:
[Only registered and activated users can see links]

Depois:
[Only registered and activated users can see links]




__declspec(naked) void OffButtonQuestInStats()
{
static DWORD ButtonAddress = 0x0077EBB5;
_asm{jmp ButtonAddress}
}

__declspec(naked) void OffButtonPetsInStats()
{
static DWORD ButtonAddress = 0x0077EC5E;
_asm{jmp ButtonAddress}
}

__declspec(naked) void OffButtonSkillMasterInStats()
{
static DWORD ButtonAddress = 0x0077ECE7;
_asm{jmp ButtonAddress}
}

__declspec(naked) void OffButtonInventoryExp()
{
static DWORD ButtonAddress = 0x00836A28;
_asm{jmp ButtonAddress}
}

__declspec(naked) void OffButtonOpenStore()
{
static DWORD ButtonAddress = 0x008369B4;
_asm{jmp ButtonAddress}
}
__declspec(naked) void OffButtonRepeirInInventory()
{
static DWORD ButtonAddress = 0x00836941;
_asm{jmp ButtonAddress}
}


//===================================
//Primera forma

SetOp((LPVOID)0x0083693C, (LPVOID) OffButtonRepeirInInventory, ASM::CALL);
SetOp((LPVOID)0x008369AF, (LPVOID) OffButtonOpenStore, ASM::CALL);
SetOp((LPVOID)0x00836A23, (LPVOID) OffButtonInventoryExp, ASM::CALL);
SetOp((LPVOID)0x0077EBB0, (LPVOID) OffButtonQuestInStats, ASM::CALL);
SetOp((LPVOID)0x0077EC59, (LPVOID) OffButtonPetsInStats, ASM::CALL);
SetOp((LPVOID)0x0077ECE2, (LPVOID) OffButtonSkillMasterInStats, ASM::CALL);


//===================================
//Segunda forma

SetCompleteHook(0xE9, 0x0083693C, &OffButtonRepeirInInventory);
SetCompleteHook(0xE9, 0x008369AF, &OffButtonOpenStore);
SetCompleteHook(0xE9, 0x00836A23, &OffButtonInventoryExp);
SetCompleteHook(0xE9, 0x0077EBB0, &OffButtonQuestInStats);
SetCompleteHook(0xE9, 0x0077EC59, &OffButtonPetsInStats);
SetCompleteHook(0xE9, 0x0077ECE2, &OffButtonSkillMasterInStats);


Credito:
Yalc