Item Names

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

Moderator: MacroQuest Developers

Banannaboy
a lesser mummy
a lesser mummy
Posts: 43
Joined: Tue Apr 13, 2004 9:59 pm

Item Names

Post by Banannaboy » Tue May 11, 2004 10:18 am

How would I get the name of every single item in my inventory? That is, inside my bags, not equipped on my character.

I know to search for a specific item you would do

Code: Select all

${FindItem[=itemnamehere].ID}
But then if I tried

Code: Select all

${Me.Inventory[Id That the Previous Code Returned]}
It would return the name of the BAG that the item i searched for was in. Not the item its self.

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Tue May 11, 2004 11:36 am

You're going about this all wrong ;)
If you want to list everything inside your bags as well as non-bags in your main inventory slots...

Code: Select all

/declare nPack int
/declare nSlot int
/for nPack 1 to 8
/if (${Me.Inventory[pack${nPack}].Container}) {
  /for nSlot 1 to ${Me.Inventory[pack${nPack}].Items}
   /echo ${Me.Inventory[pack${nPack}].Item[${nSlot}]}
  /next nSlot
} else {
  /echo ${Me.Inventory[pack${nPack}]}
}
/next nPack
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0