So basically this is my old inventory hack method (patched now).I release this so maybe that some of you can learn from it.
I've took the liberty to update the addresses (however again, it's patched).
This is coded in C++.
Code:
typedef DWORD(__thiscall *oGetItemPointer)(void *vThis, int iUnknown);
...
// Set Function
tGetItemPointer = reinterpret_cast<oGetItemPointer>(dwCShell + 0x57F10);
// Set ThisPointer
auto vThisPointer = reinterpret_cast<void *>(*reinterpret_cast<DWORD*>(dwCShell + 0x6C7CC8));
// Get Pointer
auto dwItemPointer = tGetItemPointer(vThisPointer, 0x1387);
// Swap Pointer
*reinterpret_cast<DWORD*>(dwItemPointer) = dwLocalItemList;
Enjoy