Help! Help, How to Hook with Link Class

BrokeBroky

Platinian
Original poster
Aug 3, 2024
6
0
1
24
Craft Zombie
public void Update() { } // 0x628AB4
public ResurrectionGUI resurrection_gui; // 0x128
public UIButton resurrect_btn; // 0x50
public override void set_isEnabled(bool value) { } // 0x1930140
How to make Hook this?
 
Last edited:
C++:
void (*set_IsEnabled)(void *instance, bool value);

void (*old_Update)(void *instance);
void Update(void *instance) {
    if(instance!=nullptr) {
        set_IsEnabled(instance, true);
    }
    old_Update(instance);
}

Under hackthread...
C++:
HOOK("0x628AB4", Update, old_Update);

set_IsEnabled = (void(*)(void*, bool)) getAbsoluteAddress(targetLibName, 0x1930140);

If that doesn't work, try this...
C++:
void (*old_Update)(void *instance);
void Update(void *instance) {
    if(instance!=nullptr) {
        void *gui = *(void**) ((uint64_t) instance + 0x128);
        void *btn = *(void**) ((uint64_t) instance + 0x50);
        set_IsEnabled(gui, true);
        set_IsEnabled(btn, true);
    }
    old_Update(instance);
}
 
C++:
void (*set_IsEnabled)(void *instance, bool value);

void (*old_Update)(void *instance);
void Update(void *instance) {
    if(instance!=nullptr) {
        set_IsEnabled(instance, true);
    }
    old_Update(instance);
}

Under hackthread...
C++:
HOOK("0x628AB4", Update, old_Update);

set_IsEnabled = (void(*)(void*, bool)) getAbsoluteAddress(targetLibName, 0x1930140);

If that doesn't work, try this...
C++:
void (*old_Update)(void *instance);
void Update(void *instance) {
    if(instance!=nullptr) {
        void *gui = *(void**) ((uint64_t) instance + 0x128);
        void *btn = *(void**) ((uint64_t) instance + 0x50);
        set_IsEnabled(gui, true);
        set_IsEnabled(btn, true);
    }
    old_Update(instance);
}
it doesn't work, the game is stuck on loading
 

Attachments

  • Screenshot_20240830-074819.jpg
    Screenshot_20240830-074819.jpg
    127.9 KB · Views: 18