Reply
Thread Tools Display Modes
Unread 04-11-05, 09:25 PM   #1
Inokis
EQInterface Staff
 
Inokis's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 156
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();
__________________
If not yourself, who can you count on...

Last edited by Inokis : 05-04-05 at 11:59 AM.
Inokis is offline   Reply With Quote
Unread 04-11-05, 09:33 PM   #2
Cairenn
Credendo Vides
 
Cairenn's Avatar
Premium Member
WoWInterface Admin
Join Date: Mar 2004
Posts: 6,938
Nice Inokis, thank you.
Cairenn is online now   Reply With Quote
Unread 04-11-05, 10:10 PM   #3
Inokis
EQInterface Staff
 
Inokis's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 156
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.
__________________
If not yourself, who can you count on...

Last edited by Inokis : 04-11-05 at 10:25 PM.
Inokis is offline   Reply With Quote
Unread 04-25-05, 10:00 PM   #4
Inokis
EQInterface Staff
 
Inokis's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 156
Added an additional 'if UnitIsDead("target")' statement to help prevent any further 'invalid target' messages.
__________________
If not yourself, who can you count on...
Inokis is offline   Reply With Quote
Reply

Go BackWoWInterface » Developer Discussions » Lua/XML Help » Multipurpose Pet Class Macro

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