Help! HOOK FIELDS & SPINNER

MasterCodeView

Solid & Active Platinian
Original poster
Nov 23, 2020
50
7
8
24
Brasil
Hello, I'm a beginner, I would like to know if there is a way to use "Hook field" in the spinner option? if it is possible send me examples please

void (*old_player)(void *instance);
void player(void *instance) {
if (instance != NULL) {
if (Level) { Z
*(float *) ((uint32_t) instance + 0x40) = Level;
}

return old_player(instance);
}
HOOK_LIB("libil2cpp.so", "0xA64C08", player, old_player);
OBFUSCATE("13_CollapseAdd_Spinner_Level,Low,medium,HIGH")

switch (value) {
case 0:

break;
case 1:
Level = 999;
break;
case 2:
Level = 9000;
break;
case 3:
Level = 999999999;
break;
 
Last edited:

dani olmo

Platinian
Apr 26, 2022
19
2
1
24
in your home :0
C++:
void (*old_FunctionExample)(void *instance);
void FunctionExample(void *instance) {
    if (instance != NULL) {
        if (Level) {
            *(float *) ((uint32_t) instance + 0x40) = 1.0f;
        } if else {
            *(float *) ((uint32_t) instance + 0x40) = 2.0f;
        } if else {
            *(float *) ((uint32_t) instance + 0x40) = 3.0f;
        }
    }
    return old_FunctionExample(instance);
}
 
  • Like
Reactions: MyxHasker

GHr__><__

Solid & Active Platinian
May 22, 2020
71
3,427
1,193
Indonesia
C++:
int Level;

OBFUSCATE("13_CollapseAdd_Spinner_Level,Low,medium,HIGH")

void (*old_player)(...);
void player(void *_this) {
    if (_this != nullptr) {
        
        if (Level == 1) {
            *(float *) ((uint32_t) instance + 0x40) = 999;
        } else if (Level == 2) {
            *(float *) ((uint32_t) instance + 0x40) = 9000;
        } else if (Level == 3) {
            *(float *) ((uint32_t) instance + 0x40) = 999999999;
        }
    }
    old_player(_this);
}

HOOK_LIB("libil2cpp.so", "0xA64C08", player, old_player);

switch (value) {
case 0:
    Level = value;
    break;
}
 
  • Like
Reactions: MyxHasker

MasterCodeView

Solid & Active Platinian
Original poster
Nov 23, 2020
50
7
8
24
Brasil
C++:
int Level;

OBFUSCATE("13_CollapseAdd_Spinner_Level,Low,medium,HIGH")

void (*old_player)(...);
void player(void *_this) {
    if (_this != nullptr) {
        
        if (Level == 1) {
            *(float *) ((uint32_t) instance + 0x40) = 999;
        } else if (Level == 2) {
            *(float *) ((uint32_t) instance + 0x40) = 9000;
        } else if (Level == 3) {
            *(float *) ((uint32_t) instance + 0x40) = 999999999;
        }
    }
    old_player(_this);
}

HOOK_LIB("libil2cpp.so", "0xA64C08", player, old_player);

switch (value) {
case 0:
    Level = value;
    break;
}
Tranks