Mi imagen cuando se agregó con éxito
pero tiene una falla en el cuello
Yo uso este codigo :
#define sub_50D810_Addr ((int(__thiscall*)(int a1, int a2, int a3, int a4)) 0x50D810)
#define sub_512D50_Addr ((void*(__thiscall*)(void* a1)) 0x512D50)
#define sub_513C60_Addr ((char*(__thiscall*)(char *This, void *a2, int a3)) 0x513C60)
#define sub_5135F0_Addr ((char*(__thiscall*)(DWORD *This, int a2, int a3)) 0x5135F0)
#define sub_512D60_Addr ((void(*)()) 0x512D60)
void GlovesAssoc(char *This)
{
sub_50D810_Addr((int)(This + 92), ITEM2(0, 50), GLOV2, GLOV1);
void* v2 = sub_512D50_Addr(This + 92);
char* v3 = sub_513C60_Addr(This, v2, (int)(This + 92));
sub_5135F0_Addr((DWORD *)This + 15, (int)This, (int)v3);
sub_512D60_Addr();
sub_50D810_Addr((int)(This + 92), ITEM2(0, 51), GLOV4, GLOV3);
v2 = sub_512D50_Addr(This + 92);
v3 = sub_513C60_Addr(This, v2, (int)(This + 92));
sub_5135F0_Addr((DWORD *)This + 15, (int)This, (int)v3);
sub_512D60_Addr();
}
void __declspec (naked) BattleGloveGlow()
{
static DWORD dwBattleGlovesGlow_Pointer;
static DWORD dwBattleGlovesGlow_Buffer;
static DWORD dwBattleGlovesNewGlow_Buffer;
static DWORD dwBattleGlovesGlow_Jump = 0x005F94E8;
static BOOL bBattleGlovesGlow_Switcher = FALSE;
_asm
{
MOV dwBattleGlovesGlow_Pointer, EAX
}
if ( dwBattleGlovesGlow_Pointer == ITEM2 ( 0, 35 ) )
{
bBattleGlovesGlow_Switcher = TRUE;
}
else if ( dwBattleGlovesGlow_Pointer == ITEM2 ( 0, 50 ) || dwBattleGlovesGlow_Pointer == ITEM2 ( 0, 51 ))
{
bBattleGlovesGlow_Switcher = FALSE;
_asm
{
MOV DWORD PTR SS:[EBP-0x4], 0x2C
JMP dwBattleGlovesGlow_Jump
}
}
if ( bBattleGlovesGlow_Switcher == TRUE )
{
_asm
{
MOV dwBattleGlovesGlow_Buffer, 0x005F91C9
JMP dwBattleGlovesGlow_Buffer
}
}
else
{
_asm
{
MOV dwBattleGlovesGlow_Buffer, 0x005F91D5
JMP dwBattleGlovesGlow_Buffer
}
}
}
__declspec(naked) void RFItemAddInventoryPos()
{
static DWORD IsRFItem = 0;
static DWORD RFPosition = 0x005CD084;
static DWORD NextRFPosition = 0x005CD086;
_asm
{
mov ecx, dword ptr ss : [ebp + 0x8]
mov dword ptr ss : [ebp + 0x8], ecx
mov IsRFItem, ecx
}
if ( IsRFItem == 0x04B3 )
{
_asm {jmp RFPosition}
}
//else if ( IsRFItem == ITEM2 ( 0, 114 ) )
else if ( IsRFItem == ITEM2 ( 0, 50 ) || IsRFItem == ITEM2 ( 0, 51 ))
{
_asm {jmp RFPosition}
}
else
{
_asm {jmp NextRFPosition}
}
}
Te agradezco TSM