This is the AMP version of this page.
If you want to load the real page instead, click this text.

Help! Help Hook Damage multiplier

Erothots

Platinian
Original poster
Oct 15, 2023
47
25
8
124
Hello everyone, can someone show me how to hook the Damage multiplier, I tried this
C++:
float (*old_atk)(void *instance);
float get_atk(void *instance) {
    if (instance != NULL && Atk > 1) {
        return (float) Atk;
    }
    return old_atk(instance);
}

HOOK_LIB("libil2cpp.so", "0xce0eb4", get_atk, old_atk);

case 11:
            Atk = value;
            break;

But the problem is that the Damage value will be equal to the slider value, instead of multiplied. Can anyone help me?
Sorry for using Google translate
 
Reactions: 4f7tr6ytd47d
Show me the code after the fix & variable and you should try without slider see if its actually working

float (*old_atk)(void *instance);
float get_atk(void *instance) {
if (instance != NULL && Atk > 1) {
return (float) Atk;
}
return old_atk(instance) * (float)Atk;
}

Is that right?
 
Reactions: Raebydett
float (*old_atk)(void *instance);
float get_atk(void *instance) {
if (instance != NULL && Atk > 1) {
return (float) Atk;
}
return old_atk(instance) * (float)Atk;
}

Is that right?


float (*old_atk)(void *instance);
float get_atk(void *instance) {
if (instance != NULL && Atk) {
return old_atk(instance) * (float)Atk;
}
return old_atk(instance) ;
}

try this
 
Reactions: Erothots