tl=44+strlen(title)+1;
if ( !guildtype.isEmpty() ) title.append( " [" + guildtype + "]" ); tl = 44 + title.length() + 1;
void GuildTitle(int s, P_CHAR pc_player2){	char title[150];	char abbreviation[5];	char guildtype[10];	int tl;	if ( pc_player2 == NULL )		return;	if ( pc_player2->guildstone != INVALID_SERIAL && pc_player2->guildtoggle )	{		cGuildStone* pStone = dynamic_cast<cGuildStone*>(FindItemBySerial( pc_player2->guildstone ));		strcpy(abbreviation, pStone->abbreviation.c_str());				if (!(strcmp(abbreviation,"")))			strcpy(abbreviation,"none");		switch (pStone->guildType)		{		case cGuildStone::order:	strcpy(guildtype, "Order");		break;		case cGuildStone::chaos:	strcpy(guildtype, "Chaos");		break;		default:													break;				}		if (pc_player2->guildtitle != "") 			sprintf(title,"[%s, %s] [%s]",pc_player2->guildtitle.c_str(),abbreviation,guildtype);		else 			sprintf(title,"[%s] [%s]",abbreviation, guildtype);		tl=44+strlen(title)+1;		talk[1]=tl>>8;		talk[2]=tl%256;		LongToCharPtr(pc_player2->serial, &talk[3]);		talk[7]=1;		talk[8]=1;		talk[9]=0;		ShortToCharPtr(pc_player2->emotecolor, &talk[10]);		talk[12]=0;		talk[13]=3;		Xsend(s, talk, 14);		Xsend(s, sysname, 30);		Xsend(s, title, strlen(title)+1);	}}