taejim (08-07-2015)
I highly doubt this is going to be useful in the foreseeable future but anyway here it is :D
If you do not use dll inject, you have to replace the DWORD pointers with ReadProcessMemory functions. :( :( :(Code://For dll only #define INVENTORY_BASE 0x88F584 size_t GetInventorySize() { DWORD gb = (DWORD)GetModuleHandle("trove.exe"); //game base DWORD *pStart = *(DWORD *)(*(DWORD *)(gb+INVENTORY_BASE)+0x17C)+0x78; DWORD *pEnd = *(DWORD *)(*(DWORD *)(gb+INVENTORY_BASE)+0x17C)+0x7C; return (size_t)( (*pEnd - *pStart) / sizeof(DWORD) ); }
If you need help with the code feel free to ask me, I'll try to reply where possible.
taejim (08-07-2015)
Hello, On this line : return (size_t)( (*pEnd - *pStart) / sizeof(DWORD) );
What is the DWORD inside of sizeof() if I were to replace the dll with reading memory?
Last edited by taejim; 08-07-2015 at 07:17 AM.
If you appreciate what i have done:Code:My Trove Bot (OUTDATED) LazyFishing v1.9
1. Press the Thanks button above and give me reputation <3
2. You can donate me if you feel like it, any amount is much appreciate.
sizeof(type) is C standard which returns size in bytes of the object representation of type.
Therefore, sizeof(DWORD) is 4. Surely you can write 4 in place of sizeof(DWORD) but that way it is not so descriptive.
P.S. I only know C++/MASM so unfortunately I am not able to answer questions with other macro programs like AutoHotKey script
Last edited by fairytalesx; 08-07-2015 at 09:29 AM.
If you appreciate what i have done:Code:My Trove Bot (OUTDATED) LazyFishing v1.9
1. Press the Thanks button above and give me reputation <3
2. You can donate me if you feel like it, any amount is much appreciate.
If you appreciate what i have done:Code:My Trove Bot (OUTDATED) LazyFishing v1.9
1. Press the Thanks button above and give me reputation <3
2. You can donate me if you feel like it, any amount is much appreciate.
If you appreciate what i have done:Code:My Trove Bot (OUTDATED) LazyFishing v1.9
1. Press the Thanks button above and give me reputation <3
2. You can donate me if you feel like it, any amount is much appreciate.
// Moved to "Trove Disussions & Help" as it fits better here!