@L808
Little fix for you
Function is double and you are using int with SliderValue, Also added something new , check it at your end and let me know
float sliderValue = 0;
//the void *instance is a self-created variable.
double (*old_GetDamageMultiplier)(void *instance);
double GetDamageMultiplier(void *instance) {
//Check if instance is NULL to prevent CRASH
if (instance != NULL)
{
return old_GetDamageMultiplier(instance) * sliderValue; // Damage Multiplier
}
//return the original value (this code isn't really needed if you have a toggle/switch)
return old_GetDamageMultiplier(instance);
}
MSHookFunction((void *) getAbsoluteAddress(targetLibName,
string2Offset(OBFUSCATE("0xC4DC1C"))),
(void *) GetDamageMultiplier, (void **) &old_GetDamageMultiplier);
OBFUSCATE("Category_▾ Skill Damage ▾"), //NOT COUNTED
OBFUSCATE("0_SeekBar_Damage Multiplier_0_100"), //0 Case
OBFUSCATE("Category_ ▾ Thank you for the support ▾"), //NOT COUNTED
case 0:
sliderValue = value*100;
break;