Thread Tools Display Modes
04/07/14, 10:08 PM   #1
ingeniousclown
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 122
[implemented] GetWeaponType()

If this exists, I have no clue where to find it. My asking around has gotten nowhere as well.

GetEquipType() covers armor well enough, but I wish there was a GetWeaponType() to return this set of globals about weapons: http://wiki.esoui.com/Globals#WeaponType

*edit: I figured that while I'm here, I'll extend this quest to GetArmorType() too; we need a way to get heavy, medium or light without having to resort to fallible icon parsing.

Last edited by ingeniousclown : 04/28/14 at 04:02 PM. Reason: added request
 
04/28/14, 06:04 AM   #2
LilBudyWizer
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 32
The only place I've seen those used is in crafting, i.e. patterns in smithing. The tooltip displays it so it seems it must be there somewhere, but like the crafter I have no idea where.
 
04/28/14, 03:15 PM   #3
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 648
I had to resort to pulling this data out of the icon file name. I hope ZOS doesn't stray from this "standard" they've set up.
 
04/28/14, 04:01 PM   #4
ingeniousclown
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 122
Originally Posted by Seerah View Post
I had to resort to pulling this data out of the icon file name. I hope ZOS doesn't stray from this "standard" they've set up.
Unfortunately this isn't infallible. A few users have reported the occasional armor piece missing from their appropriate subfilters in my Advanced Filters add-on. It's rare, but it happens and there isn't really anything I can do about it :/.

Also, there is no way to differentiate between the four types of staves using this method.
 
05/01/14, 04:36 AM   #5
Iyanga
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 183
Originally Posted by ingeniousclown View Post
Unfortunately this isn't infallible. A few users have reported the occasional armor piece missing from their appropriate subfilters in my Advanced Filters add-on. It's rare, but it happens and there isn't really anything I can do about it :/.
We don't know, do we? I mean, do you know the icon names of the items that failed?
It might be something silly, like a typo like _ligth, so there could be a way to include them.
 
05/02/14, 01:20 PM   #6
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 648
I found a better way!
GetItemSoundCategory(bagId, slotIndex)
 

ESOUI » Developer Discussions » Wish List » [implemented] GetWeaponType()


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off