[outdated] GetGuildTabard(playerName) API Function
Would it be possible to add an API function to grab the guild name that a player is currently showing in their nameplate (from their equipped guild tabard)? This would be best implemented using the player's character or display name, since many functions include that in their parameters, as opposed via a unitTag.
One way I'd like to use this is to be able to see which guild members in group currently have the right guild name showing. Although my example is for group members, extending the function to be used for anyone - including opposing players in PVP zones - would be a great way to go, as the guild name is already available information we can see just not access via code at the moment. |
Just grab item name from the equipslot ?
it's GetItemLinkFlavorText no? I don't a lot of access, but you don't need a new api function for this. |
I think he is talking about the tabards of other people.. Since he wants to check who in his guild has the wong tabard equipped.
|
|
The best we could do is give you the guild id. But the entire guild system is based off of a fake id instead of the real guild id, so it would involve changing those APIs to use the real guild id.
|
The real guild id is already used by some events (join/leave guild). Maybe instead of changing the whole system you could just add a bunch of new functions like GetGuildNameFromRealId and GetGuildIdFromRealGuildId, along with GetUnitTabbardRealGuildId. Maybe also a GetUnitKioskRealGuildId for NPC traders which would allow me to create my own local mapping between ids and names as requested here.
|
Could there just be a new function, GetGuildIdGlobalName() or something, in addition to the global guild id from the tabard?
|
Quote:
But decay2 is correct - I'd like a way to grab it from other players, friendly and enemy, as long as they have their settings set-up to display it. And I had no idea that their were similar threads already posted, such as Ayantir's nameplate request or sirinsidiator's Guild Kiosks thread. Quote:
I really appreciate all the talk on this thread for suggestions on how to get it to work. :) |
Yeah, we could key the name API off of a different guild id as gross as that is.
|
Using GetGuildName(number guildId) as an example:
Rather than have a second function for all of these, could you just slap a mode on it? GetGuildName(number guildId,boolean mode) mode = true then it assumes the guildId given is the true ID. If blank or false, it assumes you mean local ID. |
Please no mode flags! They are bad practice since they change a function from "does this" to "does either this or that". Give the "new" guildId a differnet name. e.g. guildUid, guildIdGlobal, realGuildId and name the functions accordingly. :D
|
Quote:
|
All times are GMT -6. The time now is 01:25 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI