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)
 
05/02/14, 03:10 PM   #7
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by Seerah View Post
I found a better way!
GetItemSoundCategory(bagId, slotIndex)
But there is still no way to differentiate between healing staff and destro staff.
http://wiki.esoui.com/Globals#ItemUISoundCategory
 
05/02/14, 03:21 PM   #8
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 648
No. There isn't. Anywhere.
 
05/02/14, 03:59 PM   #9
ingeniousclown
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 122
Originally Posted by Seerah View Post
I found a better way!
GetItemSoundCategory(bagId, slotIndex)
Neat!

Still dumb, but neat! This *should* be infallible for armor types now...
 
05/07/14, 11:24 PM   #10
ingeniousclown
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 122
Originally Posted by Seerah View Post
I found a better way!
GetItemSoundCategory(bagId, slotIndex)
This still isn't infallible... some items have a sound category of 0. Doing an "or" against the icon parse and the sound may fill in the gaps, however...
 
05/23/14, 10:06 AM   #11
thifi
 
thifi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 10
New API functions with 100004!
  • weaponType GetItemWeaponType(itemLink)
  • armorType GetItemArmorType(itemLink)

Read more here: http://www.esoui.com/forums/showthread.php?p=8263


Last edited by thifi : 05/23/14 at 10:07 AM. Reason: Incorrect version number mentioned.
 
05/23/14, 10:10 AM   #12
ingeniousclown
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 122
Originally Posted by thifi View Post
New API functions with 100004!
  • weaponType GetItemWeaponType(itemLink)
  • armorType GetItemArmorType(itemLink)

Read more here: http://www.esoui.com/forums/showthread.php?p=8263

Yeah, I cried for it on reddit and they said they'd add it.
 

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