Jump to content
  • 0

About fakename.


Legato

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  87
  • Reputation:   1
  • Joined:  11/20/11
  • Last Seen:  

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.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  407
  • Reputation:   159
  • Joined:  11/18/11
  • Last Seen:  

conf/battle/party.conf

// Display party name regardless if player is in a guild.

// Official servers do not display party name unless the user is in a guild. (Note 1)

display_party_name: yes

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  87
  • Reputation:   1
  • Joined:  11/20/11
  • Last Seen:  

Ooohh. Dang..

That made me crack my head. </3

Thanks, Lilith.

Link to comment
Share on other sites

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.

×
×
  • Create New...