Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma region Chat Party : =
- if (m->String[0] == '=')
- {
- strncpy(m->MobName, pMob[conn].MOB.MobName, NAME_LENGTH);
- int myleader = pMob[conn].Leader;
- if (myleader <= 0)
- myleader = conn;
- if (myleader <= 0 || myleader >= MAX_USER)
- return;
- if (pUser[myleader].Mode != USER_PLAY)
- return;
- if (myleader != conn)
- pUser[myleader].cSock.AddMessage((char*)m, sizeof(MSG_MessageWhisper));
- for (int i = 0; i < MAX_PARTY; i++)
- {
- int partyconn = pMob[myleader].PartyList[i];
- if (partyconn <= 0 || partyconn >= MAX_USER)
- continue;
- if (partyconn == conn)
- continue;
- if (pUser[partyconn].Mode != USER_PLAY)
- continue;
- if (pUser[partyconn].PartyChat)
- continue;
- m->ID = conn;
- pUser[partyconn].cSock.AddMessage((char*)m, sizeof(MSG_MessageWhisper));
- }
- sprintf(temp, "chat_party, %s : %s", m->MobName, m->String);
- ChatLog(temp, pUser[conn].AccountName, pUser[conn].IP);
- return;
- }
- #pragma endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement