// パーティメッセージ static void intif_parse_PartyMessage(int fd) { size_t len = RFIFOW(fd, 2) - 12; FString buf = RFIFO_STRING(fd, 12, len); party_recv_message(RFIFOL(fd, 4), RFIFOL(fd, 8), buf); }
// パーティメッセージ static int intif_parse_PartyMessage (int fd) { // if(battle_config.etc_log) // printf("intif_parse_PartyMessage: %s\n",RFIFOP(fd,12)); party_recv_message (RFIFOL (fd, 4), RFIFOL (fd, 8), (const char *)RFIFOP (fd, 12), RFIFOW (fd, 2) - 12); return 0; }
int party_send_message (struct map_session_data *sd, const char *mes, int len) { if (sd->status.party_id == 0) return 0; intif_party_message (sd->status.party_id, sd->status.account_id, mes, len); party_recv_message (sd->status.party_id, sd->status.account_id, mes, len); // Chat logging type 'P' / Party Chat log_chat (LOG_CHAT_PARTY, sd->status.party_id, sd->status.char_id, sd->status.account_id, mapindex_id2name (sd->mapindex), sd->bl.x, sd->bl.y, NULL, mes); return 0; }
int party_send_message(struct map_session_data *sd,const char *mes,int len) { if(sd->status.party_id==0) return 0; intif_party_message(sd->status.party_id,sd->status.account_id,mes,len); party_recv_message(sd->status.party_id,sd->status.account_id,mes,len); // Chat logging type 'P' / Party Chat if( log_config.chat&1 || (log_config.chat&8 && !(agit_flag && log_config.chat&64)) ) log_chat("P", sd->status.party_id, sd->status.char_id, sd->status.account_id, mapindex_id2name(sd->mapindex), sd->bl.x, sd->bl.y, NULL, mes); return 0; }
// パーティメッセージ送信 int party_send_message(struct map_session_data *sd,char *mes,int len) { if(sd->status.party_id==0) return 0; intif_party_message(sd->status.party_id,sd->status.account_id,mes,len); party_recv_message(sd->status.party_id,sd->status.account_id,mes,len); //Chat Logging support Type 'P' if(log_config.chat&1 //we log everything then || ( log_config.chat&4 //if Party bit is on && ( !agit_flag || !(log_config.chat&16) ))) //if WOE ONLY flag is off or AGIT is OFF log_chat("P", sd->status.party_id, sd->status.char_id, sd->status.account_id, (char*)sd->mapname, sd->bl.x, sd->bl.y, NULL, mes); return 0; }
// パーティメッセージ static void intif_parse_PartyMessage(Session *, const Packet_Head<0x3827>& head, AString& buf) { party_recv_message(head.party_id, head.account_id, buf); }