1. I can read the auction house using GetAuctionItemInfo(list,i) to get an items information, but part of what I need is the 'type' of the item (that is wether the item is a Weapon, Armour, Container, etc..)

    I have found that GetItemInfo will give me the required information about the item, but it keeps returning nil data. I understand that this function can only be used if the item is already in a local item cache, but is there any other way of getting the item 'type' if it isn't in the cache?

    I wish to be able to search the auction house for a user-selected set of item types, for instance finding all Weapons, Containers and Trade Goods, and to do this I need to be able to access the 'type' field somehow.

    Any assistance would be greatly recieved, but please try and keep it simple. I have been programming for over 20 years,(mainly C and Assembly), but am very new to Lua.

    Thanks in advance

     

    I can read the auction house using GetAuctionItemInfo(list,i) to get an items information, but part of what I need is the 'type' of the item (that is wether the item is a Weapon, Armour, Container, etc..)

    I have found that GetItemInfo will give me the required information about the item, but it keeps returning nil data. I understand that this function can only be used if the item is already in a local item cache, but is there any other way of getting the item 'type' if it isn't in the cache?

    I wish to be able to search the auction house for a user-selected set of item types, for instance finding all Weapons, Containers and Trade Goods, and to do this I need to be able to access the 'type' field somehow.

    Any assistance would be greatly recieved, but please try and keep it simple. I have been programming for over 20 years,(mainly C and Assembly), but am very new to Lua.

    Thanks in advance

     

    I wish to be able to search the auction house for a user-selected set of item types, for instance finding all Weapons, Containers and Trade Goods, and to do this I need to be able to access the 'type' field somehow.

    Do you mean you want to be able to search all three different categories at the same time or is individually ok? The auction house already has the ability to filter by item type, so you might start by looking at the code for the AH interface. You probably don't actually want to manually search through all auction items. That would require downloading the entire set of auctions (usually in the 10s of thousands of items).

    Also, be sure to take a look at the Auction category of the API docs.

    My main intention is to write an add-on similar to how the old version of Auctioneer worked, where you could select the item types you wish to search for, (1, 2, 3 or all 12), and then search the AH for those items that are been sold for much less than their usual price.

    I find the new Auctioneer far too complicated, and I've lost a lot of gold trying to make it work for me, so i would rather have something like the old one. If I have to write it myself, then so be it.

     

     

    My main intention is to write an add-on similar to how the old version of Auctioneer worked, where you could select the item types you wish to search for, (1, 2, 3 or all 12), and then search the AH for those items that are been sold for much less than their usual price.

    I find the new Auctioneer far too complicated, and I've lost a lot of gold trying to make it work for me, so i would rather have something like the old one. If I have to write it myself, then so be it.

    I would be reading the AH file once, getting each item in turn, and checking if it is one of the selected item types. If it is not I would discard it and get the next item. If it is, I would then apply other checks, (ie within certain pricing parameters) and list the item in a table for me to manually decide wether or not to purchase.