Get the weapon/armor type of an item
Hello everyone,
(First forgive me for my english ,it's not my native language :)) I just have a question about the information we have on an item. I use this two functions Code:
GetItemInfo(integer bagId, integer slotIndex) I only have the global type (1 hand weapon, 2 hand weapon, boots, head etc...) I wanted to know if there is a way to get the precise type of an item. According to the Globals in the API there is such a group : Code:
http://wiki.esoui.com/Globals#WeaponType I wish there is a function that return that type or a way to obtain it. Thank you in advance guys :) |
For weapon types, I had to resort to grabbing that info out of the file path to the icon texture. Here's hoping that ZOS sticks with that method... :)
|
That's exactly what I thought I would do if there is anything possible.
I hope they will fix it soon I will do the same with armor type (light/medium/heavy) with the path to the icon .dds :) |
Lua Code:
The two functions I made. No way to distinguish between staves it seems so I defaulted to fire staff for all |
All times are GMT -6. The time now is 06:46 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI