Originally Posted by
knismaps
The method in the script in the original post to get the count of items in the last inventory slot is [[[[[base + 0x936924] + 0x9c] + 0x78] + 0xb0] + 0x58].
I poked around in CE, and the best I could come up with is [[[[[base + 0x84c6b8] + 0x234] + 0x78] + 0xb0] + 0x58] which requires your inventory window to be open to work (the original always worked). The original method would probably still work if the offset for the base were right, but I can't find it. Any ideas?
If you want some other slot than the last, you can change the 0xb0 to the slot number (0 - 44) times 4. 44dec x 4 = 0xb0. That section of memory might be 45 0x80-byte objects for your inventory where the count is at offset 0x58. Maybe some other offset would have an item ID, so a script could jsut scan your whole inventory instead of you having to use a specific slot.
I haven't worked on getting the lure bob stuff yet, which is the important part. Trove will probably fix it before I can figure it out.