Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added NWNX_Player_SendPartyInvite #1608

Merged
merged 2 commits into from
Mar 21, 2023

Conversation

Cjreek
Copy link
Contributor

@Cjreek Cjreek commented Mar 21, 2023

void NWNX_Player_SendPartyInvite(object oToPlayer, object oInviter = OBJECT_SELF, int bForceInvite = FALSE, int bHideDialog = FALSE);

closing #1509

Plugins/Player/NWScript/nwnx_player.nss Outdated Show resolved Hide resolved
Plugins/Player/NWScript/nwnx_player.nss Show resolved Hide resolved
Plugins/Player/NWScript/nwnx_player.nss Outdated Show resolved Hide resolved
Plugins/Player/NWScript/nwnx_player.nss Outdated Show resolved Hide resolved
Plugins/Player/Player.cpp Outdated Show resolved Hide resolved
else if ((pInvitedCreature->GetFaction() && (!pInvitedCreature->GetFaction()->GetSingletonParty())))
{
auto pMessageData = new CNWCCMessageData;
pMessageData->SetObjectID(0, pInvitedCreature->m_idSelf);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hate this duplication, but only slightly. Merging.

/// @brief Send a party invite from oInviter to oPlayer
/// @param oPlayer The player to invite
/// @param oInviter The one inviting the player
/// @param bForceInvite TRUE: Sends the invite even if the target ignores invites
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if worth noting, but there is also a clientside setting to ignore invites in general, and bForceInvite won't help with that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bSlightlyForceInvite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants