Skip to main content

catalog.purchase

Generated from spec/protocol.yaml. Do not edit by hand.

Overview

  • ID: 3492
  • Header: CATALOG_PURCHASE
  • Direction: Client to Server (c2s)
  • Realm: Catalog & Store
  • Phase: session
  • Since: nitro-1.6.6
  • Summary: Purchase an item from the catalog

Payload fields

FieldTypeRequiredDescription
pageIdint32requiredCatalog page of the offer.
offerIdint32requiredOffer identifier.
extraDatastringrequiredExtra data for personalized items (e.g. pet name, text).
amountint32requiredNumber of items to purchase.

Behavior

Sender

Sent when the user confirms a purchase. The server deducts currency and delivers the item.

Receiver

The server responds with catalog.purchase_ok (s2c 869) on success, catalog.purchase_error (s2c 1404) or catalog.purchase_not_allowed (s2c 3770) on failure. Confirmed in GLADIATOR.

Notes

  • No additional notes