Skip to main content

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

ParameterDescription
BaseObjectThe character who pays the exchange cost (Self).
S1Currency type ID to deduct from the character's balance (e.g., Cash, Coin).

Examples

DescriptionBaseObjectCommandS1
Pay exchange cost for the target object using CashSelfPayForObjectsExchangeInSiteCash
Pay for in-site object exchange using Coin currencySelfPayForObjectsExchangeInSiteCoin
Deduct the exchange cost and log it for property damage insuranceSelfPayForObjectsExchangeInSiteCash