Execute_PayForObjectsExchangeInSite
Description
Deducts the exchange cost of the target object from the self character's currency balance. The exchange cost is calculated from the target entity. If the self character is enrolled in property damage insurance, the cost is also recorded in the insurance manager for future insurance payout calculations.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The character who pays the exchange cost (Self). |
| S1 | Currency type ID to deduct from the character's balance (e.g., Cash, Coin). |
Examples
| Description | BaseObject | Command | S1 |
|---|---|---|---|
| Pay exchange cost for the target object using Cash | Self | PayForObjectsExchangeInSite | Cash |
| Pay for in-site object exchange using Coin currency | Self | PayForObjectsExchangeInSite | Coin |
| Deduct the exchange cost and log it for property damage insurance | Self | PayForObjectsExchangeInSite | Cash |
Back to Command FinderSearch and filter all 399 Script Execution documents