tibia_parse_loot
Parses in-game loot messages line by line, returning item totals with NPC prices and counts, plus unresolved entries.
Instructions
Parses loot messages as the game prints them, one per line, such as "12:34 Loot of a dragon: 2 small diamonds, a steel shield (active prey bonus)." It reads in-game names, not wiki titles. Gives totals by item with count and value, and entries it cannot resolve. Prices are NPC prices in gold, coins at face value. Other lines come back unparsed. Both lists stop at 100, their counts in totals do not.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Loot messages, one per line. | |
| include_lines | No | Also give each line with its items, client IDs and prices. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Each loot line, with include_lines. | |
| totals | Yes | ||
| unparsed | Yes | Lines that are no loot message, the first 100. | |
| indexGeneratedAt | Yes | ||
| unresolvedEntries | Yes | Entries with no single item, the first 100. |