Represents an item.
| LuaItem.integer_id | [R] The integer ID of this item. |
| LuaItem.position | [RW] The item's position. |
| LuaItem.charges | [RW] The number of charges this item holds (for rods, bait, etc.) |
| LuaItem.subname | [RW] The subname of this item. |
| LuaItem.image | [RW] The image ID of the item. |
| LuaItem.value | [RW] The value of the item. |
| LuaItem.param1 | [RW] A generic parameter. |
| LuaItem.param2 | [RW] A generic parameter. |
| LuaItem.param3 | [RW] A generic parameter. |
| LuaItem.param4 | [RW] A generic parameter. |
| LuaItem.own_state | [RW] Controls the ownership of this item. |
| LuaItem.material | [RW] The material ID of this item. |
| LuaItem.id | [R] The new-style prototype ID of the item. |
| LuaItem.name | [R] The name of the item with article and number. |
| LuaItem.basename | [R] The name of the item without article and number. |
| LuaItem.number | [RW] The number of this item. |
| LuaItem.curse_state | [RW] The curse state of this item. |
| LuaItem.identify_state | [RW] The identify state of this item. |
| LuaItem.color | [RW] The color ID of the item. |
| LuaItem.is_acidproof | [RW] The flag if the item is acidproof. |
| LuaItem.is_fireproof | [RW] The flag if the item is fireproof. |
| LuaItem.is_coldproof | [RW] The flag if the item is coldproof. |
| LuaItem.is_precious | [RW] The flag if the item is precious. |
| LuaItem.has_charges | [RW] The flag if the item has charge. |
| LuaItem.has_cooldown_time | [RW] The flag if the item has cooldown time. |
| LuaItem.is_aphrodisiac | [RW] The flag if the item is aphrodisiac. |
| LuaItem.is_poisoned | [RW] The flag if the item is poisoned. |
| LuaItem.is_blessed_by_ehekatl | [RW] The flag if the item is blessed by Ehekatl. |
| LuaItem.is_stolen | [RW] The flag if the item is stolen. |
| LuaItem.is_quest_target | [RW] The flag if the item is quest target. |
| LuaItem.is_no_drop | [RW] The flag if the item is marked as no-drop. |
| LuaItem.is_alive | [RW] The flag if the item is alive. |
| LuaItem.is_eternal_force | [RW] The flag if the item is eternal force. |
| LuaItem.is_handmade | [RW] The flag if the item is handmade. |
| LuaItem.is_showroom_only | [RW] The flag if the item is showroom only. |
| LuaItem.prototype | [R] The prototype data of the character. |
| LuaItem:remove () | Removes this item. |
| LuaItem:change_material (material_id) | Changes the material of this item. |
[R] The integer ID of this item.
[RW] The item's position.
[RW] The number of charges this item holds (for rods, bait, etc.)
[RW] The subname of this item.
Controls the character index of corpses, etc.
[RW] The image ID of the item.
[RW] The value of the item.
[RW] A generic parameter.
[RW] A generic parameter.
[RW] A generic parameter.
[RW] A generic parameter.
[RW] Controls the ownership of this item.
-2: Item was dropped by the player on death
0: Normal, can be picked up by the player
1: Not owned ("It's not your property", etc.)
2: Not carryable (shopkeeper's trunk).
3: Built shelter
4: Harvestable item in harvest quests
[RW] The material ID of this item.
To change it, use LuaItem.change_material.
[R] The new-style prototype ID of the item.
[R] The name of the item with article and number.
[R] The name of the item without article and number.
[RW] The number of this item.
[RW] The curse state of this item.
[RW] The identify state of this item.
[RW] The color ID of the item.
[RW] The flag if the item is acidproof.
[RW] The flag if the item is fireproof.
[RW] The flag if the item is coldproof.
[RW] The flag if the item is precious.
[RW] The flag if the item has charge.
[RW] The flag if the item has cooldown time.
[RW] The flag if the item is aphrodisiac.
[RW] The flag if the item is poisoned.
[RW] The flag if the item is blessed by Ehekatl.
[RW] The flag if the item is stolen.
[RW] The flag if the item is quest target.
[RW] The flag if the item is marked as no-drop.
[RW] The flag if the item is alive.
[RW] The flag if the item is eternal force.