Help! How to call offset?

C++:
void (*AddXP)(void *instance, int inCat);


void (*old_Update)(void *instance);
void Update(void *instance) {
    if(instance!=nullptr) {
        AddXP(instance, XX);   // Replace XX with XPManager.eXPcat reward number of choice (0-16)
    }
    old_Update(instance);
}

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

AddXP = (void(*)(void*, int)) getAbsoluteAddress(targetLibName, 0x24FD2A8);
There is no update on this same class, what do I do?
 
Back
Top Bottom