WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   1 Global Totem macro, 3 char's (https://www.wowinterface.com/forums/showthread.php?t=3193)

Purity 01-09-06 08:16 PM

1 Global Totem macro, 3 char's
 
With the new limits on macros, I am trying to max my slots. I want to make one macro to target and shoot or attack totems.

This is what I have been working on. I am really new to this. Any help is greatly appreciated. Even ideas about another direction welcome.

/target Earthbind Totem
/target Searing Totem
/target Magma Totem
/target Mana Spring Totem
/target Grounding Totem
/target Healing Stream Totem
/script if ( HasPetUI() ) then PetAttack(); else
/cast Shoot or
/script AttackTarget();
/script TargetLastEnemy();

I am using Supermacro. I also have the hunter functionos and discord functions. Perhaps these would help?

I was also looking at the UnitClass("unit") where unit could be hunter, warrior or priest. Where a warrior csbn "attack" else hunter csbn" Auto Shot" else preist csbn"Shoot". I am just not sure how to write it up.

Thanks in advance!


All times are GMT -6. The time now is 05:40 PM.

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