WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Multipurpose Pet Class Macro (https://www.wowinterface.com/forums/showthread.php?t=603)

Inokis 04-11-05 09:25 PM

Multipurpose Pet Class Macro
 
This is the multipurpose Macro I use, as a Warlock, for casting and pet assisting. Posting here for use if anyone needs:

edit: changed the second line of code to be a more party freindly pet assist, in case a player is targeted

edit: Consolitated the script into on line /script instead of two.

/script if UnitExists("pet") and not UnitExists("target") or UnitIsFriend("target", "pet") or UnitIsDead("target") then AssistUnit("pet"); end
/stand
/cast Curse of Agony(Rank 4)
/script PetAttack();

Cairenn 04-11-05 09:33 PM

Nice Inokis, thank you.

Inokis 04-11-05 10:10 PM

Fixed: Found the correct Unit Values.

There is a bug with the second script. What I'm trying to get it to do is if target==pet then assist pet, however the current configuration will assist pet even if you have your own target, so i'm trying to work out the if pet==target part.

Inokis 04-25-05 10:00 PM

Added an additional 'if UnitIsDead("target")' statement to help prevent any further 'invalid target' messages.


All times are GMT -6. The time now is 06:19 PM.

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