Quantcast LoTROInterface - View Single Post - Missing Events in Lua
View Single Post
Unread 06-19-2016, 03:01 PM
Garan's Avatar
Garan Garan is offline
The Undying
Interface Author - Click to view interfaces
Join Date: Oct 2010
Posts: 269
Very little item information is exposed to Lua. The localPlayer:GetEquipment() method will return an Equipment object that represents the items currently equipped. Unfortunately, the only information available for the items are the Name and the information exposed by the ItemInfo methods, such as Category, Description, Durability, image info, quantity & stack info, and quality info. None of the important info such as weapons statistics or LI info are exposed to Lua - not even the item's ID is exposed making it impossible to programmatically use the information to create a quickslot or shortcut object.

There are some other ways to derive some additional info but they are very inefficient workarounds and all require user interaction such as drag/drop or linking to chat for every item so they aren't very useful. Unfortunately the devs that were implementing Lua were doing so on their own time and they are no longer working on LotRO so it is highly unlikely the API will ever be expanded to include additional item information.

Last edited by Garan : 06-19-2016 at 03:09 PM.
Reply With Quote