WoWInterface (
-   Macro Help (
-   -   SendChatMessage with command (

rouggy 10-06-19 09:46 AM

SendChatMessage with command
Hi all,

I am trying to do a macro but i am always facing the same issue.

I am trying to Pick Pocket then Cheap Shot for PVE and directly Cheap Shot if pvp with same key.


#showtooltip Cheap Shot
/run if (UnitIsPlayer("target"))then SendChatMessage("/cast Cheap Shot","say"); else SendChatMessage("/castsequence reset=target Pick Pocket, Cheap Shot","say"); end
This one keeps writing as say but do not launch the commands.

Anything i am doing wrong ?


Kanegasi 10-06-19 09:52 AM

Macro commands have nothing to do with chat. Those are in the say channel because that's what those functions are for.

What you're trying to do is not possible. There is no macro method available that can determine if a target is a player or NPC.

rouggy 10-06-19 09:53 AM

Ok thanks a lot for your answer, that is unfortunate :(

glupikreten 10-10-19 01:45 AM

But couldnt some addon be made that would create macro with proper /casts if target and pve and overwrite that macro if target and pvp?

Kanegasi 10-10-19 06:30 AM

I believe that's possible, but macros cannot be changed in combat. An addon that sets up your macros for pvp or pve combat, but you're stuck with what they prepared until combat drops, which means if a player appears while you're killing a mob, you won't have your pvp parts.

All times are GMT -6. The time now is 01:15 AM.

vBulletin © 2020, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI