Thread Tools Display Modes
10-06-19, 09:46 AM   #1
rouggy
A Defias Bandit
Join Date: Oct 2019
Posts: 2
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 ?

Thanks
  Reply With Quote
10-06-19, 09:52 AM   #2
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
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.
  Reply With Quote
10-06-19, 09:53 AM   #3
rouggy
A Defias Bandit
Join Date: Oct 2019
Posts: 2
Ok thanks a lot for your answer, that is unfortunate
  Reply With Quote
10-10-19, 01:45 AM   #4
glupikreten
A Theradrim Guardian
Join Date: Apr 2009
Posts: 60
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?
  Reply With Quote
10-10-19, 06:30 AM   #5
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
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.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Macro Help » SendChatMessage with command

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