class Item //Does not have an update function
//field
Money = 0x30
//Method
//nothing intresting
class NetworkPlayer //this is a class related to the class :Item , and it has an update function
//field
etc = etc
//Method
//Offset = 0x114A120
private void Update()
Well if the class got access to that item class, it should also have access to the field too. Just hook the update normally and call the field normally too. You shouldn’t needa do anything extra
Well if the class got access to that item class, it should also have access to the field too. Just hook the update normally and call the field normally too. You shouldn’t needa do anything extra
It cant be hooked directly since it will go to the fields in class NetworkPlayer and edit the fields onlyWell if the class got access to that item class, it should also have access to the field too. Just hook the update normally and call the field normally too. You shouldn’t needa do anything extra
the class NetworkPlayer has 2 fields with "Item" the first image is field one wich field offset is "0x10" the second one is = 0x58Well if the class got access to that item class, it should also have access to the field too. Just hook the update normally and call the field normally too. You shouldn’t needa do anything extra
Okay so just do something like thisthe class NetworkPlayer has 2 fields with "Item" the first image is field one wich field offset is "0x10" the second one is = 0x58
void (*PointerToClass)(void *instance); // the pointer of the class field
void (*old_Update)(void *instance);
void Update(void *instance)
{
if(instance != NULL)
{
if(EnableCheat)
{
if(MyPointer != NULL)
{
void *OtherClass = *(void *)((uint64_t)PointerToClass + 0x10);//i think te 0x10 one would be better to use
if(OtherClass != NULL)
{
*(void *)((uint64_t)OtherClass + 0x224); //modify the other field here
}
}
}
}
old_Update(instance);
}
ok ill tryOkay so just do something like this
C++:void (*PointerToClass)(void *instance); // the pointer of the class field void (*old_Update)(void *instance); void Update(void *instance) { if(instance != NULL) { if(EnableCheat) { if(MyPointer != NULL) { void *OtherClass = *(void *)((uint64_t)PointerToClass + 0x10);//i think te 0x10 one would be better to use if(OtherClass != NULL) { *(void *)((uint64_t)OtherClass + 0x224); //modify the other field here } } } } old_Update(instance); }
my hook should be likeOkay so just do something like this
C++:void (*PointerToClass)(void *instance); // the pointer of the class field void (*old_Update)(void *instance); void Update(void *instance) { if(instance != NULL) { if(EnableCheat) { if(MyPointer != NULL) { void *OtherClass = *(void *)((uint64_t)PointerToClass + 0x10);//i think te 0x10 one would be better to use if(OtherClass != NULL) { *(void *)((uint64_t)OtherClass + 0x224); //modify the other field here } } } } old_Update(instance); }
MyPointer gives an erorOkay so just do something like this
C++:void (*PointerToClass)(void *instance); // the pointer of the class field void (*old_Update)(void *instance); void Update(void *instance) { if(instance != NULL) { if(EnableCheat) { if(MyPointer != NULL) { void *OtherClass = *(void *)((uint64_t)PointerToClass + 0x10);//i think te 0x10 one would be better to use if(OtherClass != NULL) { *(void *)((uint64_t)OtherClass + 0x224); //modify the other field here } } } } old_Update(instance); }
All this code gives an erorOkay so just do something like this
C++:void (*PointerToClass)(void *instance); // the pointer of the class field void (*old_Update)(void *instance); void Update(void *instance) { if(instance != NULL) { if(EnableCheat) { if(MyPointer != NULL) { void *OtherClass = *(void *)((uint64_t)PointerToClass + 0x10);//i think te 0x10 one would be better to use if(OtherClass != NULL) { *(void *)((uint64_t)OtherClass + 0x224); //modify the other field here } } } } old_Update(instance); }
dont worry i found a code similar to ursOkay so just do something like this
C++:void (*PointerToClass)(void *instance); // the pointer of the class field void (*old_Update)(void *instance); void Update(void *instance) { if(instance != NULL) { if(EnableCheat) { if(MyPointer != NULL) { void *OtherClass = *(void *)((uint64_t)PointerToClass + 0x10);//i think te 0x10 one would be better to use if(OtherClass != NULL) { *(void *)((uint64_t)OtherClass + 0x224); //modify the other field here } } } } old_Update(instance); }
void (*old_update)(void* _this);
void update(void* _this) {
if(_this != NULL) {
void *MoneyClass = *(void**)((uint64_t)_this + 0x20);
{
if(Coin != NULL) {
*(int *) ((uint64_t) MoneyClass + 0x10) = 999;
}
}
}
old_update(_this);
}
i need help how can i hook i field offsets using update in another class, reason there is no update in the class of the field offset
View attachment 520679View attachment 520680View attachment 520681
can you help me how to hook field.
Follow the previous conversationsAnyone knows how?
Normally when there's no Update method, it mean that there's a particular method that makes uses of that field, in that particular class, that's the method you need to hook or use RVA address of..i haven't been on this website in a while but just follow the above conversation i had, i already put a similar code which might be useful
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