Skip to main content

Execute_SendGiftBox

Description

Sends a relationship-based gift box. If S2 (MobileMessagePartiesId) is specified, the sender and receiver are determined by MobileMessageParties data; otherwise sends from Self to Target. Each box comes with a mobile message unless F1 is above 0. F1 only drops the message; an entity sender still pays for the gift and the receiver still gets the relationship reward on opening. Use F1 to send several boxes and one separate message (for example fan letters).

Parameters

ParameterDescription
BaseObjectReference entity for the script context
S1GiftBoxId to send
S2MobileMessagePartiesId (optional; if omitted, Self is sender and Target is receiver)
F1Above 0 sends the box without the mobile message, for both system and entity senders (optional)

Examples

DescriptionBaseObjectCommandS1S2
Send a birthday gift box from Self to TargetSelfSendGiftBoxGiftBox_Birthday
Send a thank-you gift box using a specific parties definitionSelfSendGiftBoxGiftBox_ThankYouParties_FriendToPlayer
Send a holiday gift box to TargetSelfSendGiftBoxGiftBox_Holiday
Send a wedding gift using a neighbor-to-player party setupSelfSendGiftBoxGiftBox_WeddingParties_NeighborToPlayer
Send a fan letter box without the message (F1=1)SelfSendGiftBoxFanLetter_GoodAnonymousFan