void (*old_set_coinCount)(void *instance, int);
void set_coinCount(void *instance, int) {
if (instance != NULL) {
}
old_set_coinCount(instance, 999999);
}
void (*addcoin)(void *instance, int value);
void (*old_update)(void *instance);
void update(void *instance) {
if (instance != NULL) {
if (Coin) {
addcoin(instance, 99999);
}
}
old_update(instance);
}
addcoin = (void(*)(void *,int))getAbsoluteAddress("libil2cpp.so", 0x81C4FC);
HOOK_LIB("libil2cpp.so","0x7C5D64", update, old_update);
The class does not have an update method.try this
C++:void (*addcoin)(void *instance, int value); void (*old_update)(void *instance); void update(void *instance) { if (instance != NULL) { if (Coin) { addcoin(instance, 99999); } } old_update(instance); } addcoin = (void(*)(void *,int))getAbsoluteAddress("libil2cpp.so", 0x81C4FC); HOOK_LIB("libil2cpp.so","0x7C5D64", update, old_update);
Have a look, please! The money is kept here. How to break?try this
C++:void (*addcoin)(void *instance, int value); void (*old_update)(void *instance); void update(void *instance) { if (instance != NULL) { if (Coin) { addcoin(instance, 99999); } } old_update(instance); } addcoin = (void(*)(void *,int))getAbsoluteAddress("libil2cpp.so", 0x81C4FC); HOOK_LIB("libil2cpp.so","0x7C5D64", update, old_update);
void (*old_add)(void *instance, int value);
void add(void *instance, int value) {
if (instance != NULL) {
if (AddCoins) {
old_addkeys(instance, 1000000);
return;
}
}
old_add(instance, value);
HOOK_LIB("libil2cpp.so","0x7C5D64", add, old_add);
You must add type bool like bool addcoin;I don't need the "if (AddCoins) {" switch
same here xDHi, absolutely 0 programming skills here. Just wanted to drop by and say that you guys are amazing. Watching you guys' conversation is blowing my mind
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