Quantcast Automatic Macro Updater for partner names. - WoWInterface
Thread Tools Display Modes
11-22-14, 11:33 AM   #1
Spark3000
A Kobold Labourer
Join Date: Jun 2014
Posts: 1
Question 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.

Last edited by Spark3000 : 11-22-14 at 11:44 AM.
  Reply With Quote
11-22-14, 12:41 PM   #2
Clamsoda
A Frostmaul Preserver
Join Date: Nov 2011
Posts: 269
party1 and party2 macros wouldn't suffice?
  Reply With Quote
11-23-14, 01:27 AM   #3
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
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.
__________________
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Automatic Macro Updater for partner names.

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off