Solved Hooking

Status
Not open for further replies.

ASDFGHJKLQWE

Solid & Active Platinian
Can anyone can tell me how to hook this
// RVA: 0x144B554 Offset: 0x144B554 VA: 0x144B554
public long get_Coins()

It's in long what should I need to use int/float I like to know ..
 
change to long :

long(*old_Kills)(void *instance);
long Kills(void *instance) {
//Check if instance is NULL to prevent CRASH
if (instance != NULL)
{
return 99999l; //Return how many value
}
//return the original value (this code isn't really needed if you have a toggle/switch)
return old_Kills(instance);
}

HOOK_LIB("libil2cpp.so", "0x123456", Kills, old_Kills);
 
change to long :

long(*old_Kills)(void *instance);
long Kills(void *instance) {
//Check if instance is NULL to prevent CRASH
if (instance != NULL)
{
return 99999l; //Return how many value
}
//return the original value (this code isn't really needed if you have a toggle/switch)
return old_Kills(instance);
}

HOOK_LIB("libil2cpp.so", "0x123456", Kills, old_Kills);
Thanks for the help and I need to try
 
Status
Not open for further replies.
Back
Top Bottom