View Single Post
05/04/18, 01:53 PM   #4
Rhyono
AddOn Author - Click to view addons
Join Date: Sep 2016
Posts: 659
Basically, you look at what a function needs and you look at another function to provide what you need that doesn't need anything/as much.

For example, you want all of your guild names?

You use GetGuildName() but you need to know how many guilds you have, so you use GetNumGuilds()

Now that you know you have X guilds, you can loop through each one and get the name.

GetGuildId() does exist, which takes an index and returns which guild it is for you. Someone else might know, but for me the ID is always identical to the index.

Now some functions you have to use some common sense, like SelectTradingHouseGuildid()
That function will choose which trading house you're currently viewing. Obviously you can't call it just anywhere and have it magically open, so you have to assume you have to be in a guild store at the bank. So if you open the guild store and call it with a value of 1,2, etc. you'll see your active guild store change.
  Reply With Quote