EventHelperTransferInventoryItemWithDebt 方法 |
转让行囊物品 (其中一方必须是太吾, 会产生债务).
物品将从源角色的行囊转到目标角色的行囊中. 手动调用好感变化应该放在该方法后执行
命名空间: GameData.Domains.TaiwuEvent.EventHelper程序集: GameData (在 GameData.exe 中) 版本:1.0.0
语法public static void TransferInventoryItemWithDebt(
int srcCharId,
int destCharId,
ItemKey itemKey,
int amount,
bool changeFavor = false
)
参数
- srcCharId Int32
- 源角色 ID
- destCharId Int32
- 目标角色 ID
- itemKey ItemKey
- 物品 Key, 必须处于源角色的行囊中.
- amount Int32
- 物品的数量
- changeFavor Boolean (Optional)
- 是否自动处理好感变化
参见