group message (#1987)

This commit is contained in:
KayenEQ
2022-02-10 23:55:59 -05:00
committed by GitHub
parent fdd260d5fa
commit db988e4261
3 changed files with 9 additions and 0 deletions
+7
View File
@@ -6960,6 +6960,13 @@ void Client::Handle_OP_GroupInvite2(const EQApplicationPacket *app)
Invitee->CastToClient()->QueuePacket(app);
}
}
else {
if (RuleB(Character, OnInviteReceiveAlreadyinGroupMessage)) {
if (!Invitee->CastToClient()->MercOnlyOrNoGroup()) {
Message(Chat::LightGray, "%s is already in another group.", Invitee->GetCleanName());
}
}
}
}
#ifdef BOTS
else if (Invitee->IsBot()) {
+1
View File
@@ -469,6 +469,7 @@
#define LEADER_OF_X_GUILD 12258
#define NOT_IN_A_GUILD 12259
#define TARGET_PLAYER_FOR_GUILD_STATUS 12260
#define TARGET_ALREADY_IN_GROUP 12265 //% 1 is already in another group.
#define GROUP_INVITEE_NOT_FOUND 12268 //You must target a player or use /invite <name> to invite someone to your group.
#define GROUP_INVITEE_SELF 12270 //12270 You cannot invite yourself.
#define ALREADY_IN_PARTY 12272 //That person is already in your party.