Discussion in 'Scripts (.NET)' started by MstrGareth, Mar 23, 2008.

  1. MstrGareth

    MstrGareth Active Member

    Messages:
    88
    I am trying to see if a given equipment slot is empty
    Works
    Code (Text):
    ext.Me().Inventory("CurrentEquipSlot", "Diplomacy Chest").Name == null
    Works
    Code (Text):
    ext.Me().Inventory("CurrentEquipSlot", "Crafting Chest").Name == null
    Does not work
    Code (Text):
    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 :)
  2. Amadeus

    Amadeus The Maestro Staff Member

    Messages:
    8,264
    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 (Text):

    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]})
     
  3. MstrGareth

    MstrGareth Active Member

    Messages:
    88
    Thanks again :)

Share This Page