Find raid member roles, effectively
Ok so, I've been requested by a friend to create an addon for him to simply automark his arena partners once they've gotten into arena.
It seems currently even with forming a raid and marking individuals before joining the arena clears those raid marks once they join. Marking them by name is fairly easy however he wanted to know if it were possible to set marks by their talents and their talent role, without having them to set their own roles. After looking through some of the blizzard inspect coding and some other addons like tiptac talents, the only usable solution would be to build a table of inspected group members and somehow queue up each raid member for inspection that doesn't have their role set already. Due to the inspection restrictions placed after the whole GearScore fad this becomes a bit of an issue. So here is what I have so far in terms of setting roles for the raid automatically: Lua Code:
|
Take a look at how I do it in Symbiotic:
https://github.com/p3lim/Symbiotic/b...ic.lua#L95-113 I initate the request at line 70. |
Use LibGroupInSpecT I'd say so there's one point of failure for this type of task.
|
Quote:
Quote:
I'd still like to see if I could reproduce a lot of their stuff with perhaps just 'raid1-5' although including the library wouldn't be very heavy on the addon. |
Quote:
|
Quote:
The addon will primarily be for Arena, that being said, you'll always get placed into raid1-5 once you join arena. This was more just for faster talent scanning without requiring much throttling if any. |
What you probably need is to call GetInspectSpecialization(name) which returns you a global spec id. You could then use GetSpecializationRoleByID(specID) to get a non-localized role string for that spec. Beware of the return behavior of UnitName(unitid). I use
Code:
local name, realm = UnitName(unitid) I looked at LibGroupInSpecT, but if I didn't miss something, it re-queues the whole group for inspect every 10 sec or so to catch re-specs, which I don't need with my case. The docs say that if you don't call ClearInspectPlayer(name), the server sends further INSPECT_READY events for the unit, so maybe this is the way to get re-specs (haven't tested this yet). |
All times are GMT -6. The time now is 01:11 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI