Originally Posted by Lons
Glad I came upon this thread, I like to say I am an amateur macro writer and I use this in raids as my focus macro sheep with the option of using alt to reassign my focus.
#showtooltip Polymorph(Rank 1: Turtle)
/clearfocus [target=focus,dead]
/clearfocus [modifier:alt]
/target focus
/focus [harm,exists,nodead] target
/targetlasttarget [harm]
/target [noexists] focus
/cast [target=focus,exists] Polymorph(Rank 1: Turtle)
It may not be pretty, but it is what I use. my first question is.
1) Can this be cleaned up and
2) I really want to be able to cast random all my polys, but with what I have I run out of room adding the new info tot he macro, is there a way to do what I need done in this macro, but add in a castrandom ability to poly so I can just randomly have all my polys used.
Thanks.
|
Just to make sure I get what you want it to do / what it does correct:
1. Clear focus if current focus is dead
2. Clear focus if alt is held
3. Target current focus (unneeded?)
4. Focus current target if it exists and isn't dead
5. Target your last target (unneeded?)
6. Target your focus if you don't have a target (unneeded?)
7. Cast polymorph on your target.
With that said, you can reduce the macro above to the following, as well as remove the unneeded targeting:
#showtooltip Polymorph(Rank 1: Turtle)
/clearfocus [target=focus,dead][modifier:alt]
/focus [target=focus, noexists]
/cast [target=focus,exists] Polymorph(Rank 1: Turtle)
Total length: 170
The above does:
1. Clears your focus if its dead or alt is held
2. Sets your focus to your current target if you do not have a focus
3. Casts polymorph on your current focus if it exists
If the functionality of targeting your focus if you have no target is still wanted you can simply add the line /target [exists] focus.
To make the macro cast a random poly you do:
#showtooltip Polymorph(Rank 1: Turtle)
/clearfocus [target=focus,dead][modifier:alt]
/focus [target=focus, noexists]
/castrandom [target=focus,exists] Polymorph(Rank 1: Turtle), Polymorph(Rank 1: Pig), Polymorph(Rank 4)
Total length: 219