Jump to content

Question

Posted

Hello, everyone. After applying the diff from this link.

Party name isn't gonna show if I don't have a guild. See screenshots below.

This is me without a guild.

34fxt6x.jpg

and this is me with guild.

kcbg9c.jpg

Here's what I have on clif.c

   	 //Requesting your own "shadow" name. [skotlex]
		if (ssd->fd == fd && ssd->disguise)
			WBUFL(buf,2) = -bl->id;

		if( ssd->fakename[0] )
		{
			WBUFW(buf, 0) = cmd = 0x195;
			memcpy(WBUFP(buf,6), ssd->fakename, NAME_LENGTH);
			WBUFB(buf,30) = WBUFB(buf,54) = WBUFB(buf,78) = 0;
		} else {
			memcpy(WBUFP(buf,6), ssd->status.name, NAME_LENGTH);
		}

		if( ssd->status.party_id )
		{
			p = party_search(ssd->status.party_id);
		}

and

//Used to update when a char leaves a party/guild. [skotlex]
//Needed because when you send a 0x95 packet, the client will not remove the cached party/guild info that is not sent.
void clif_charnameupdate (struct map_session_data *ssd)
{
unsigned char buf[103];
int cmd = 0x195, ps = -1, i;
struct party_data *p = NULL;
struct guild *g = NULL;

nullpo_retv(ssd);

WBUFW(buf,0) = cmd;
WBUFL(buf,2) = ssd->bl.id;

if( ssd->fakename[0] )
{
	memcpy(WBUFP(buf,6), ssd->fakename, NAME_LENGTH);
} else {
	memcpy(WBUFP(buf,6), ssd->status.name, NAME_LENGTH);
}


if (!battle_config.display_party_name) {
	if (ssd->status.party_id > 0 && ssd->status.guild_id > 0 && (g = guild_search(ssd->status.guild_id)) != NULL)
		p = party_search(ssd->status.party_id);
}else{
	if (ssd->status.party_id > 0)
		p = party_search(ssd->status.party_id);
}

I'm using rAthena revision 15924.

The only thing messed up is the party name and I couldn't find a fix for it.

Any help would be greatly appreciated.

Tia.

2 answers to this question

Recommended Posts

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...