Anyone got some idea which memory locations are used for either:
1) Free bag space
2) Total and occupied bag space
3) For each bag slot status full/empty (location of start)
I tried memory scaning but no luck with finding this one so far
Anyone got some idea which memory locations are used for either:
1) Free bag space
2) Total and occupied bag space
3) For each bag slot status full/empty (location of start)
I tried memory scaning but no luck with finding this one so far
You can get free backpack slots easily because the GUIDs of the items are stored in your character descriptors, if the GUID of item X is 0 then that space is free. For each bag you can call the function at 58CCE0h passing a pointer to the bag object in ecx to get the number of free slots. You could also rewrite it, it's pretty easy as far as reversing goes.
Hook endscene, Inject code to be able to DoString() and then execute:
local sum = 0;
for bag=0,4 do
sum = sum + GetContainerNumFreeSlots(bag);
end;
Thanks, that should complete my "Vendor run".
Time to implement my first function call i guess, hope it doesnt give me too much trouble