Page 1 of 1

Getting info about augments in gear.

Posted: Tue Feb 19, 2013 7:28 pm
by Sandypants
Is there a way to gain info about augs inside of your gear in mq2?

Say for example, you wanted to know the HP and AC of the aug in slot 1 of your helm?

The best I can get mq2 to give me is the augment type in each slot.

Re: Getting info about augments in gear.

Posted: Tue Feb 19, 2013 9:21 pm
by dewey2461
From what I remember augs are stored the same way bags are stored.

From inventory.mac you can see how you find the bag then open the items in the bag. Same idea except if its not a bag then the items are augs.

Code: Select all

   /mqlog -- ${Me.Name} - ${Me.Level} ${Me.Race} ${Me.Class} --
   /mqlog Head: ${Me.Inventory[head].Name}
   /mqlog Head: ${Me.Inventory[head].Spell}
   /mqlog Head: ${Me.Inventory[head].AugSlot1}
   /mqlog Head: ${InvSlot[2].Item.Item[3].ID}

Code: Select all

Sub MainPack(int PackSlot)
    /declare index int local
    /mqlog ${PackSlot}) ${InvSlot[pack${PackSlot}].Item.Name} has ${InvSlot[pack${PackSlot}].Item.Container}/${InvSlot[pack${PackSlot}].Item.Items} slots/used, combine type: ${InvSlot[pack${PackSlot}].Item.Type}
    /for index 1 to ${InvSlot[pack${PackSlot}].Item.Container}
        /if (${InvSlot[pack${PackSlot}].Item.Item[${index}].ID}) {
            /mqlog ${InvSlot[pack${PackSlot}].Item.Item[${index}].Stack}x ${InvSlot[pack${PackSlot}].Item.Item[${index}].Name}
        }
   /next index
/return

Re: Getting info about augments in gear.

Posted: Fri Feb 22, 2013 9:24 pm
by Sandypants
Thanks a bunch, this works perfectly.