Hi, i'm building a small hack but now, i'm having some problems on calling the SendAttackPacket() function.
This is my code for now:
This is the error that is being showed:
Send Battle :
Call Func :
This'is My Code but Not Work
Code:
bool SendBattleAttack(int vId)
{
DWORD NetPointer = *(DWORD*)0x1268868;
DWORD BattleCall = 0x055A4D0;
__asm {
mov ecx, [NetPointer]
push vId
push 0
call BattleCall
}
return 0;
}
DWORD WINAPI MainFunction(LPVOID lpParam) {
MessageBoxA(NULL, "TarGetDamage", "Info", MB_ICONINFORMATION);
while (true)
{
DWORD GetTargetVID = (*(DWORD*)(*(DWORD*)0x1268868 + 0x0134DC));
if (GetTargetVID>0)
{
SendBattleAttack(GetTargetVID);
}
Sleep(1000);
}
}
Hope somone can help.