PurchaseEquipment
Buy equipment in town: each item_ids entry buys one purchase lot (zero time).
Full documentation: PurchaseEquipment. Wire type: purchase_equipment.
Legal session modes: town
JSON Schema
{
"description": "Buy equipment in town: each `item_ids` entry buys one purchase lot (zero time).\n\nThe party must be in town. The whole basket prices first; if the member cannot\nafford the total, nothing is bought.\n\nModes:\n `town`\n\nRejections:\n - `session.command.wrong_mode` \u2014 the party is not in town.\n - `session.command.unknown_member` \u2014 `character_id` names no party member.\n - `session.command.member_incapacitated` \u2014 the member cannot act.\n - `session.command.unknown_item` \u2014 an entry names no equipment item.\n - `items.purchase.insufficient_funds` \u2014 the purse cannot cover the total.\n\nEvents:\n [`ItemAcquiredEvent`][osrlib.crawl.events.ItemAcquiredEvent] listing the\n purchases.",
"properties": {
"command_type": {
"const": "purchase_equipment",
"default": "purchase_equipment",
"title": "Command Type",
"type": "string"
},
"character_id": {
"title": "Character Id",
"type": "string"
},
"item_ids": {
"items": {
"type": "string"
},
"minItems": 1,
"title": "Item Ids",
"type": "array"
}
},
"required": [
"character_id",
"item_ids"
],
"title": "PurchaseEquipment",
"type": "object"
}