item_prices
Global of Kamidori Alchemy Meister: the cell G:0x30f108, of type int[2000][3], data-table, values column 0 buy price, column 1 sell-to-vendor price, column 2 base retail price in the player's shop.
SHOP@0x00e34/0x02687 charges column 0 on purchase. SHOP@0x00e68/0x0102c, ADDITEM@0x00056, USEITEM@0x001fd and CHANGEARM@0x000f3 credit column 1 to money 0x7ea39, including auto-selling overflow above 999 owned. SALE@0x00f5a/0x014cb and CALCSETTLE@0x004de multiply column 2 by the markup percent 0x13f86f /100 for the player's shop.
OME’s registry gives it with high confidence, from investigation. The base mod kamidori-base exports the name, so Lua and an event’s fields can use it.
Its columns are named: 0 buy, 1 sell, 2 retail_base. Lua and an event’s cell write a row’s column item_prices[i].column.
Record tables
It is a field of the table item, as item.id.price.
Scripts that use it
The game’s scripts whose instructions read, write or index (take as an array’s base) the cell, with how many of their operands do each, from OME’s script index.
| Script | Reads | Writes | Indexes |
|---|---|---|---|
ITINIT | 0 | 2487 | 0 |
$3$ITINIT | 0 | 678 | 0 |
$2$ITINIT | 0 | 66 | 0 |
$1$ITINIT | 0 | 39 | 0 |
SHOP | 0 | 0 | 13 |
SALE | 0 | 0 | 5 |
ADDITEM | 0 | 0 | 2 |
ADDSTOCK | 0 | 0 | 2 |
ALCHEMY | 0 | 0 | 2 |
CALCSETTLE | 0 | 0 | 1 |
CHANGEARM | 0 | 0 | 1 |
SETTOOLLIST | 0 | 0 | 1 |
USEITEM | 0 | 0 | 1 |