SellTreasure
Sell valuables in town at full value (zero time).
Full documentation: SellTreasure. Wire type: sell_treasure.
Legal session modes: town
JSON Schema
{
"description": "Sell valuables in town at full value (zero time).\n\nThe party must be in town. Each entry names a carried valuable's instance id;\nthe coins credit its carrier's purse. osrlib adopts full `value_gp` as the\nsale price: the OSE SRD prices treasure but names no exchange spread, and full\nvalue keeps the 1-gp-1-XP identity clean. Magic items have no fixed sale value\n(RAW's own words) and reject; revealed curses stick.\n\nModes:\n `town`\n\nRejections:\n - `session.command.wrong_mode` \u2014 the party is not in town.\n - `town.sell.no_fixed_value` \u2014 magic items cannot be sold for a fixed\n price.\n - `exploration.item.not_carried` \u2014 no member carries a valuable with that\n instance id.\n\nEvents:\n [`TreasureSoldEvent`][osrlib.crawl.events.TreasureSoldEvent] per selling\n member, with the credited value.",
"properties": {
"command_type": {
"const": "sell_treasure",
"default": "sell_treasure",
"title": "Command Type",
"type": "string"
},
"item_ids": {
"items": {
"type": "string"
},
"minItems": 1,
"title": "Item Ids",
"type": "array"
}
},
"required": [
"item_ids"
],
"title": "SellTreasure",
"type": "object"
}