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
| Parameter | Description |
|---|---|
| BaseObject | Reference entity for the script context |
| S1 | GiftBoxId to send |
| S2 | MobileMessagePartiesId (optional; if omitted, Self is sender and Target is receiver) |
| F1 | Above 0 sends the box without the mobile message, for both system and entity senders (optional) |
Examples
| Description | BaseObject | Command | S1 | S2 |
|---|---|---|---|---|
| Send a birthday gift box from Self to Target | Self | SendGiftBox | GiftBox_Birthday | |
| Send a thank-you gift box using a specific parties definition | Self | SendGiftBox | GiftBox_ThankYou | Parties_FriendToPlayer |
| Send a holiday gift box to Target | Self | SendGiftBox | GiftBox_Holiday | |
| Send a wedding gift using a neighbor-to-player party setup | Self | SendGiftBox | GiftBox_Wedding | Parties_NeighborToPlayer |
| Send a fan letter box without the message (F1=1) | Self | SendGiftBox | FanLetter_Good | AnonymousFan |
Back to Command FinderSearch and filter all 399 Script Execution documents