Jump to content
  • 0

Help I want the monster names to display their IDs.


Question

Posted

I want the monster names to also display their IDs, like in the picture. I've tried searching in many ways but couldn't find if anyone has asked this before. If someone has already asked, I apologize.

As you can see in the picture, there's a lot of other information in the monster's name, but I only want to display the ID.

Thank you.


mobinfo.jpg.615c0b1fbb9c53127ad65c9a8fa749b7.jpg

9 answers to this question

Recommended Posts

  • 0
Posted

You need to edit in clif.cpp the show_mob_info part:
 

}else if( battle_config.show_mob_info ){
				PACKET_ZC_ACK_REQNAMEALL packet = { 0 };

				packet.packet_id = HEADER_ZC_ACK_REQNAMEALL;
				packet.gid = bl->id;
				safestrncpy( packet.name, md->name, NAME_LENGTH );

				char mobhp[50], *str_p = mobhp;

				if( battle_config.show_mob_info&4 ){
					str_p += sprintf( str_p, "Lv. %d | ", md->level );
				}

				if( battle_config.show_mob_info&1 ){
					str_p += sprintf( str_p, "HP: %u/%u | ", md->status.hp, md->status.max_hp );
				}

				if( battle_config.show_mob_info&2 ){
					str_p += sprintf( str_p, "HP: %u%% | ", get_percentage( md->status.hp, md->status.max_hp ) );
				}

				// Even thought mobhp ain't a name, we send it as one so the client can parse it. [Skotlex]
				if( str_p != mobhp ){
					*(str_p-3) = '\0'; //Remove trailing space + pipe.
					safestrncpy( packet.party_name, mobhp, NAME_LENGTH );
				}

				clif_send(&packet, sizeof(packet), src, target);

 

  • MVP 1
  • 0
Posted
23 minutes ago, Poring King said:

If im not mistaken you can find this on your server files conf 

You mean the conf\battle\monster.conf file, right? It doesn't have an option to display the ID, so I don't know what to do.

image.png.c4ecc4abb75254f1120e86d80221bb38.png

  • 0
Posted
33 minutes ago, MyMemorandum said:

You mean the conf\battle\monster.conf file, right? It doesn't have an option to display the ID, so I don't know what to do.

image.png.c4ecc4abb75254f1120e86d80221bb38.png

Yes put 7 on it .  But base on that picture you sent i think there is no ID

  • 0
Posted
7 minutes ago, Poring King said:

Yes put 7 on it .  But base on that picture you sent i think there is no ID

After entering "7" as you suggested, it seems that the ID is still not showing, as shown in the image.

Screenshot2024-08-22124230.png.9081d7870110e784536baef66de099e3.png

  • 0
Posted
7 minutes ago, MyMemorandum said:

After entering "7" as you suggested, it seems that the ID is still not showing, as shown in the image.

Screenshot2024-08-22124230.png.9081d7870110e784536baef66de099e3.png

Like what i said there will be no ID 

  • 0
Posted
16 minutes ago, WhiteEagle said:

You need to edit in clif.cpp the show_mob_info part:
 

}else if( battle_config.show_mob_info ){
				PACKET_ZC_ACK_REQNAMEALL packet = { 0 };

				packet.packet_id = HEADER_ZC_ACK_REQNAMEALL;
				packet.gid = bl->id;
				safestrncpy( packet.name, md->name, NAME_LENGTH );

				char mobhp[50], *str_p = mobhp;

				if( battle_config.show_mob_info&4 ){
					str_p += sprintf( str_p, "Lv. %d | ", md->level );
				}

				if( battle_config.show_mob_info&1 ){
					str_p += sprintf( str_p, "HP: %u/%u | ", md->status.hp, md->status.max_hp );
				}

				if( battle_config.show_mob_info&2 ){
					str_p += sprintf( str_p, "HP: %u%% | ", get_percentage( md->status.hp, md->status.max_hp ) );
				}

				// Even thought mobhp ain't a name, we send it as one so the client can parse it. [Skotlex]
				if( str_p != mobhp ){
					*(str_p-3) = '\0'; //Remove trailing space + pipe.
					safestrncpy( packet.party_name, mobhp, NAME_LENGTH );
				}

				clif_send(&packet, sizeof(packet), src, target);

 

It's done! Thank you so much for your guidance.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...