This is the AMP version of this page.
If you want to load the real page instead, click this text.

Help! How To Hook Field List Offset

imls01245

Platinian
C#:
public int[] statUpgradeCost; // 0x90

I was searching a Hook using MonoArray in Field But I can't find one, please help me!

Here is The Struct I found in Numark Tutorial but i dont know how to use it


C++:
template <typename T>
struct monoArray
{
    void* klass;
    void* monitor;
    void* bounds;
    int   max_length;
    void* vector [1];
    int getLength()
    {
        return max_length;
    }
    T getPointer()
    {
        return (T)vector;
    }
};
 
You get that array like this:
C++:
monoArray<int> *statUpgradeCost = *(monoArray<int>**)((uint64_t)your_instance+ 0x90);
Depending on what type of array it is, you'll put the type inside the <> brakets. Here it's int, can also be <float>, or <void**> if it's an array of class objects.