Solved Hook

Status
Not open for further replies.
float Health0 = 1.0f;

void (*old_FunctionExample)(void *instance);
void FunctionExample(void *instance) {
if (instance != NULL) {
if (Health0) {
*(int *) ((uint64_t) instance + 0x48) = Hp;
}
}
return old_FunctionExample(instance);
}

OBFUSCATE("11_CollapseAdd_SeekBar_HP HACK_0_50"),

case 11:
Health0 = value;
break;
 
@Levy asaf

Is this question solved for you?
When it's solved please answer and i will mark it as "solved" and lock the question.
When you don't answer within 1 week i will close the question anyway.
You're of course always able to write me a message and i will just reopen the thread.
 
how to hook inputvalue with fields?
Help, pls
Code:

int sliderValue = 1, level = 0;

void (*old_Rate)(void *instance);
void Rate(void *instance) {
if (feature3 != NULL) {
if (feature3) {
*(int *) ((uint64_t) instance + 0xBC) = 99999;
}
}
return old_Rate(instance);
}

MSHookFunction((void*)getAbsoluteAddress("libil2cpp.so", 0x5F60DC), (void*)Rate, (void**)&old_Rate);

OBFUSCATE("Toggle_Rate"),

case 2:
sliderValue = value;

break;
 
Status
Not open for further replies.
Back
Top Bottom