Getting info about augments in gear.

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

Sandypants
decaying skeleton
decaying skeleton
Posts: 8
Joined: Fri Dec 16, 2011 12:23 am

Getting info about augments in gear.

Post by Sandypants » Tue Feb 19, 2013 7:28 pm

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.

dewey2461
Contributing Member
Contributing Member
Posts: 1759
Joined: Sun Apr 17, 2005 1:53 am

Re: Getting info about augments in gear.

Post by dewey2461 » Tue Feb 19, 2013 9:21 pm

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

Sandypants
decaying skeleton
decaying skeleton
Posts: 8
Joined: Fri Dec 16, 2011 12:23 am

Re: Getting info about augments in gear.

Post by Sandypants » Fri Feb 22, 2013 9:24 pm

Thanks a bunch, this works perfectly.