Jump to content

11 posts in this topic

Recommended Posts

Posted

Hey it's L808, during my break i will share with u my recent discoveries (since i'm still learning stuff after days of other modders already learned it lol)
 

Hidden Content

React or reply to this topic to see the hidden content & download link. 👀


Enjoy, HF!

  • Like 76
  • Winner 7
  • Thanks 6
  • Haha 1
  • Agree 8
  • Informative 4
Posted

@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;

 

  • Like 2
  • Agree 1
Posted
2 hours ago, AlyssaX64 said:

@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;

 

Let me try that, but mine worked too, i will send you video in pm

  • Winner 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines