WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Automatic Macro Updater for partner names. (https://www.wowinterface.com/forums/showthread.php?t=50552)

Spark3000 11-22-14 11:33 AM

Automatic Macro Updater for partner names.
 
Hi all,

So i'm far from new to programming but brand new to both lua and wow addon development. I've been putting together an addon that will automatically modify player names in a bunch of macros after entering an arena, as you can imagine for classes that require a lot of partner macros at a high level inside arena (for example ret paladin), it is really annoying to change the name in 5 places per partner when queuing skirmishes for fun or playing with new partners.

For the most part it's working fine, my problem is that i'm so far unable to find the best event to hook my function up to, which would ensure partners have joined. I've had most success with GROUP_ROSTER_UPDATE which seems to work most of the time but sometimes appears to fire too early before the player actually zones in to the arena group, if i run the function via command line when partners have joined it works just fine.

Thanks in advance.

Clamsoda 11-22-14 12:41 PM

party1 and party2 macros wouldn't suffice?

Phanx 11-23-14 01:27 AM

If you can't use unit tokens (eg. party1) instead of names, then you'd want to register for PLAYER_ENTERING_WORLD and/or ZONE_CHANGED_NEW_AREA and check the return values from GetInstanceInfo to detect when you enter an arena.


All times are GMT -6. The time now is 03:24 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI