//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.
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.
and this is me with guild.
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