Hi IGCN Team,
Would it be possible to add a Lua API hook that fires when a player opens the inventory window?
Currently the onItemRepair hook is triggered after the repair is processed, so the durability we read is already the post-repair value.
If we could receive an event when the inventory window opens, we could cache the item state (durability, options, money, ruud... etc.) beforehand and determine more reliably whether an item was already at maximum durability and can be attracted much more valuable things from this API.
Edited by MrAngry83

Recommended Comments
There are no comments to display.