Elitist Jerks
Register
Blogs
Forums


Go Back   Elitist Jerks » Public Discussion » User Interface and AddOns

Reply
 
LinkBack Thread Tools
Old 09/27/07, 6:55 PM   #1
Fizban
Glass Joe
 
Human Death Knight
 
Lightninghoof
2.2 changes to macros?

Hello,

I apologize greatly if this has been covered somewhere I missed.

I've been reading that there were API changes in 2.2 which required certain macros to be re-written, specifically ones with modifiers. Unfortunately I can't seem to find a concise location for this information, just some posts here or there with replies of "change X to Y". I use quite a few macros for CC functions that focus my target or target my current focus. Ever since 2.2 I receive a lot of errors with this, either when activating the macro or mousing over the focus frame. Other people have confirmed FocusFrame still works in 2.2, so now I look at my macros that focus people. Here is an example of one:

MACRO 13 "Fear" INV_Misc_QuestionMark
#showtooltip
/clearfocus [modifier:alt]
/focus [target=focus,noexists]; [target=focus,dead]
/clearfocus [target=focus,help]
/stopcasting
/cast [target=focus,exists,harm] Fear(Rank 3); Fear(Rank 3)
END

Basically this will fear my focus. If no one is focused, it focuses my current target then fears. Holding 'alt' while casting will clear focus and fear current target. Most of my macros follow the same concept. Is there anything in this that needs to be modified for the new version? Even better does anyone have a location with information on what type of macro functions changed and how?

Thanks

Offline
Reply With Quote
Old 10/14/07, 2:13 AM   #2
Draught
Glass Joe
 
Draught's Avatar
 
Blood Elf Paladin
 
Mal'Ganis
I'm pretty sure the ; within the /focus line is unnecessary and may be causing issues. You can also remove the (Rank 3) from the Fear and the macro will default to your highest rank of the spell. Both /clearfocus lines can be condensed into a single line as it will either clear on holding alt or clear if you have focus that is friendly. The cast line removes the ;Fear and adds []. This is a cleaner way of having it default to attempting to fear your current target if you do not have an enemy set as your focus.

#showtooltip
/clearfocus [modifier:alt] [target=focus,help]
/focus [target=focus,noexists] [target=focus,dead]
/stopcasting
/cast [target=focus,exists,harm] [] Fear
Try this and let me know if it works.

Offline
Reply With Quote
Reply

Go Back   Elitist Jerks » Public Discussion » User Interface and AddOns

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
more macros Lodi User Interface and AddOns 6 06/17/07 8:37 AM
Macros WoW 2.0 flyinfungi Public Discussion 159 01/13/07 4:23 AM