game / pragma.inventory / InventoryService / updateItemsV0 /

updateItemsV0 #

suspend fun updateItemsV0(session: PlayerSession, request: InventoryRpc.UpdateItemsV0Request): InventoryRpc.UpdateItemsV0Response

Lets players update multiple items by list of 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.