I'm working with the Devkit on ECSRO client for fun and to improve myself. My main goal was to add an auto potion system for pets. I successfully implemented the auto potion GUI, but the main problem is that I can't access the pet's max HP.
As far as I understand, the ECSRO client doesn't store a direct max HP value for pets—it seems to calculate it dynamically using attributes like attack, defense, level, etc. I've managed to find values like current HP, type ID, unique ID, EXP, attack, defense, and more, but without access to max HP, I can't fully implement the auto potion feature.
I also tried hooking the COS UI function, hoping I could extract the max HP from the COS info screen as text, but I wasn't successful.
Please note that I'm a newbie developer, not a professional—this is just a learning project for me. If you have any ideas on how I can access or calculate the max HP value, I'd really appreciate your help.
Here’s the structure I have now ;
Code:
DWORD_PTR baseAddress; unsigned int currentHP; // +0x000 unsigned int typeID; // +0x00C unsigned int minPhysicalAttack; // +0x020 unsigned int maxPhysicalAttack; // +0x024 unsigned int uniqueID; // +0x030 unsigned int currentEXP; // +0x038 bool isValid;







