Posts: 150
Threads: 20
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: May 2021
Reputation:
0
Hello, I'd like to see level of selected character into UpdateTargetInfo function.
Anyway
int nLevel = pInfo->GetTargetLevel(eTARGET);
returns always 0 (also trying different eTARGET type).
I've seen that also using pInfo->GetTargetEntity function can't get level number.
Anyone has faced with this?
Posts: 275
Threads: 10
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Sep 2013
Reputation:
0
I think this should be enough to make it display the level of characters:
case CHARACTER:
{
bHideLevel = FALSE; //ADD ONLY THIS LINE
if( m_bShowPkHp )
{
// ¼Ä¡ ¶óÀÌÇÁ ¹öÇÁ°¡ ÀÖ´ÂÁö °Ë»ç.
if (_pUIBuff->IsSkillBuff(475) == TRUE)
{
float fHealth = 0;
Add in in m_bShowPkHp if you only want players with life searcher to see it
File: TargetInfoNewUI.cpp
Posts: 150
Threads: 20
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: May 2021
Reputation:
0
I've already done this but iLevel field is always 0.
Do you know wich back-end function is called to get infi about target?
Posts: 275
Threads: 10
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Sep 2013
Reputation:
0
I don‘t know atm, next week I could look into it if still necessary
Posts: 275
Threads: 10
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Sep 2013
Reputation:
0
Yeah, maybe ilevel is initialized as 0 and then only gets a value from npc packet, and character packet doesnt include it at all, but it‘s just a guess
Edit: client needs to know character level to calculate mob name color tho, maybe u can take it from there
Posts: 150
Threads: 20
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: May 2021
Reputation:
0
11 hours ago, Desarija said:
Yeah, maybe ilevel is initialized as 0 and then only gets a value from npc packet, and character packet doesnt include it at all, but it‘s just a guess
Edit: client needs to know character level to calculate mob name color tho, maybe u can take it from there
/index.php?/profile/18894-desarija/&do=hovercard" data-mentionid="18894" href="/index.php?/profile/18894-desarija/" rel="">@Desarija Correct. Anyway If target is current player, level has value. If target is not current player, so other char hasn't value.
Could yould give me an hint to search in server for the npc packet and character packet?
Posts: 275
Threads: 10
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Sep 2013
Reputation:
0
ptype_appear.h i'd guess ?
Posts: 150
Threads: 20
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: May 2021
Reputation:
0
6 hours ago, Desarija said:
ptype_appear.h i'd guess ?
ptype files are files shared between server and client? I mean same classes? why aren't in a shared directory?
Posts: 150
Threads: 20
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: May 2021
Reputation:
0
After using bHideLevel = FALSE, and added level in server for struct
charStatusPc : public pTypeBase
can't get that struct back in target class.
I've seen that chasStatusPc Struct its used only in EntitiesMP project, then called in Network classes. What do you think?