game / pragma.inventory / InventoryService / updateItemV4 /

updateItemV4 #

suspend fun updateItemV4(session: PlayerSession, request: InventoryRpc.UpdateItemV4Request): InventoryRpc.UpdateItemV4Response

Lets players update an item by InventoryCommon.InstancedItemUpdate.

Plugins

  • InstancedItemPlugin.update
  • StackableItemPlugin.onUpdate called for stackable item grants and updates chained from the InstancedItemPlugin

PragmaResultErrors

  • PragmaError.InventoryService_InstanceNotFound - When the item to update is not found in the player’s inventory.
  • PragmaError.InventoryService_ContentNotFound - When an update entry id is sent on the request but does not map to a valid update entry.
  • PragmaError.InventoryService_RequirementsNotMetError - When the requirements related to the update entry cost are not met.
  • PragmaError.InventoryService_GrantError - When db errors.
  • PragmaError.InventoryService_GetError - When db retrieve fails.