I dont know if this is something that can fairly easily be solved but i need some help making a script that would scan the item in an item slot (in this case, looking at the offhand slot (17)) and determining what the subtype (i.e. shield, mace, etc) is. Ive tried using the following code, but it doesnt seem to work:
Code:
linktext = GetInventoryItemLink("player",17);
local sName, sLink, iQuality, iLevel, sType, sSubType = GetItemInfo(linktext);