ServersMU - Comunidad
Zona Programadores => Sources => Mensaje iniciado por: Applayo en Abril 25, 2021, 12:55:00 am
-
Fonte para Main 1.04e (Muemu)
Antes:
(https://i.imgur.com/uLLx4uH.png)
Depois:
(https://i.imgur.com/w1DSQOv.png)
[code]__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);[/code]
Credito:
Yalc
-
Great sharing thanks
-
Very helpful, thanks for sharing.