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;
Nothing changes, the value is still equal to the sliderreturn old_atk(instance) * (float)Atk;
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?
Thanks it workedfloat (*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
This doesn't work, or maybe I misunderstood the meaning.there is another way i know that works too
case 11
Atk=value*2;
break;
you can try if you want it will works the same way
This doesn't work, or maybe I misunderstood the meaning.
The method you mentioned just multiplies the slider valueOh sorry then, it worked for me on 1 particular game but probably because the method itself was a multiplier
Glad you found someone helping you out!
(I'm not good at hooking btw ;-;)
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies