CurrentEquipSlot problem

MstrGareth

Active Member
I am trying to see if a given equipment slot is empty
Works
Code:
ext.Me().Inventory("CurrentEquipSlot", "Diplomacy Chest").Name == null
Works
Code:
ext.Me().Inventory("CurrentEquipSlot", "Crafting Chest").Name == null
Does not work
Code:
ext.Me().Inventory("CurrentEquipSlot", "Chest").Name == null
The last will return false if the diplomacy or the crafting slot has an item equipped. The first item is finds in a slot that has "Chest" in its equip slot name.

Is it possible to get this changed to not be a substring comparison, or add an exact match version for the "CurrentEquipSlot" search?

Thanks :)
 

Amadeus

The Maestro
Staff member
I don't really have multiple pieces of armor for the same slot to test with at the moment; however, this should work. Let me know if it doesn't for any reason.

Code:
March 23, 2008 -- By Amadeus
[ISXVG-20080318.0011]
* Added a new parameter to the inventory search item routines: "Exact".  This can be used when searching for "Type", "CurrentEquipSlot", 
  "Rarity", or "DefaultEquipSlot".   (Example: ${Me.Inventory[Exact,CurrentEquipSlot,Chest]})
 
Top Bottom