Register for your free account! | Forgot your password?

You last visited: Today at 18:31

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



How to Access Pet Max HP?

Discussion on How to Access Pet Max HP? within the SRO PServer Questions & Answers forum part of the SRO Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2010
Posts: 209
Received Thanks: 30
How to Access Pet Max HP?

Hello,

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;
fuat21 is offline  
Old 07/15/2025, 07:13   #2
 
JellyBitz's Avatar
 
elite*gold: 0
Join Date: Sep 2018
Posts: 419
Received Thanks: 943
Quote:
Originally Posted by fuat21 View Post
I successfully implemented the auto potion GUI, but the main problem is that I can't access the pet's max HP.
The maximum HP for monsters is in the database itself _RefObjCommon -> _RefObjChar.MaxHP, equivalent to the characterdata_xxx.txt in the client files.

If you're talking about using SRO DevKit, then you should check the GlobalDataManager->GetCharacter(RefObjID)->GetData()->MaxHP.
JellyBitz is offline  
Old 07/15/2025, 08:42   #3
 
elite*gold: 0
Join Date: Mar 2010
Posts: 209
Received Thanks: 30
Quote:
Originally Posted by JellyBitz View Post
The maximum HP for monsters is in the database itself _RefObjCommon -> _RefObjChar.MaxHP, equivalent to the characterdata_xxx.txt in the client files.

If you're talking about using SRO DevKit, then you should check the GlobalDataManager->GetCharacter(RefObjID)->GetData()->MaxHP.
Thanks for information but not Character Max HP, I already got it, I can not access COS MaxHP
fuat21 is offline  
Old 07/15/2025, 08:56   #4
 
Ryotic's Avatar
 
elite*gold: 0
Join Date: Nov 2016
Posts: 454
Received Thanks: 121
Quote:
Originally Posted by fuat21 View Post
Thanks for information but not Character Max HP, I already got it, I can not access COS MaxHP
in database _RefObjChar and media chardata in media
Ryotic is offline  
Old 07/15/2025, 08:59   #5
 
elite*gold: 0
Join Date: Mar 2010
Posts: 209
Received Thanks: 30
Quote:
Originally Posted by Ryotic View Post
in database _RefObjChar and media chardata in media
I need to access it with Devkit.
fuat21 is offline  
Old 07/15/2025, 09:00   #6
 
JellyBitz's Avatar
 
elite*gold: 0
Join Date: Sep 2018
Posts: 419
Received Thanks: 943
Quote:
Originally Posted by fuat21 View Post
Thanks for information but not Character Max HP, I already got it, I can not access COS MaxHP
It's the same. There is no distinction but the RefObjID (_RefObjCommon.ID), all the character related data is stored there in _RefObjChar aka characterdata_xxx.txt in the client.

You should definitely take a look to the SRO DevKit project because it seems you're reversing stuffs, you'll find many similarities on other versions so better to take a look:
I described already how you're supposed to get this data through SRO DevKit.
JellyBitz is offline  
Old 07/15/2025, 09:12   #7
 
elite*gold: 0
Join Date: Mar 2010
Posts: 209
Received Thanks: 30
Quote:
Originally Posted by JellyBitz View Post
It's the same. There is no distinction but the RefObjID (_RefObjCommon.ID), all the character related data is stored there in _RefObjChar aka characterdata_xxx.txt in the client.

You should definitely take a look to the SRO DevKit project because it seems you're reversing stuffs, you'll find many similarities on other versions so better to take a look:
I described already how you're supposed to get this data through SRO DevKit.
I already checked it, but you know what's weird? In old clients like the Chinese testing version, there's no directly stored value for the COS's max HP. I even found a comment about it while checking in IDA. For some reason, Joymax developers preferred to calculate the COS's max HP dynamically using values like level, defense, attack, and others.

That's why I can't find a memory address for it using ReClass or Cheat Engine. I've found every piece of information about the COS except for the max HP. That's why I was trying to hook the COS info window, since it displays a text label like "CurrentHP / MaxHP (%Percent)." I thought I could hook that function and retrieve the max HP from there, but it wasn’t successful.

So now, I need a new approach.
fuat21 is offline  
Reply


Similar Threads Similar Threads
[Selling] [NA] - AR44 Klee MAX, Razor MAX, Xingqiu MAX, Sucrose MAX, Mona, Diona + 5* Weapons!
12/04/2020 - Genshin Impact Trading - 0 Replies
Add on discord to discuss: Serge#4103 Price is negotiable, payment preferred: paypal/venmo. 5* Characters: Klee - MAX Constellation Lvl 80 Normal Attack: Lv. 6
[Selling] [NA] AR44 Klee MAX, Razor MAX, Xingqiu MAX, Sucrose MAX, Mona
12/03/2020 - Genshin Impact Trading - 0 Replies
5* Characters: Klee - MAX Constellation Lvl 80 Normal Attack: Lv. 6 E Ability: Lv. 9 Q Ability: Lv 9 Weapon: REFINE 5 - Lost Prayer to the Sacred Winds (5*) - Lvl 80
[EU] Gunner 1250 AP+ Max Gear Max Soul Max Pet
04/07/2018 - Blade & Soul Trading - 3 Replies
Sell Gunner 1250 AP+ on When you want to know anything about price and Informations about the Account contact me via Skype Stiffer1991 or Discord xRayZen#3673 Account can also be Buyed without Soul for a low Price!!! :) Little Information Aransu Pistols Stage 5 2 Triangular Legy Gems other Octagonal
[Selling] BM [EU] 1240+ HM16 Max Soul Max Pet Max VT Aransu Weapon Max Gear Fire
01/05/2018 - Blade & Soul Trading - 1 Replies
Hi i am Selling my BM on the EU Server He is HM 16 1240 AP + Full Fire Build + Fire Gear Max Aransu Weapon with 5 Octagonal Gems and 3 Hepta Fire Gems to Upgrade in Octagonal when the Update comes. The Account has over 400 Customs and 9 Legy Pet Skins many Mats and Is Pemium Rank 10 with 200 Days Premium The Character has 10 Charakter Slots free and 1 lvl 50er voucher code. The Character is a Very Beautiful Yun so i Think you dont Need a new character Optimization. The Character is...



All times are GMT +1. The time now is 18:32.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.