I am trying to make a macro that casts a spell when I'm targeting an enemy NPC and a different spell when targeting an enemy player. What is the modifier for that or does it even exist?
'); document.write(''); var yuipath = 'clientscript/yui'; var yuicombopath = ''; var remoteyui = false; } else // Load Rest of YUI remotely (where possible) { var yuipath = 'https://ajax.googleapis.com/ajax/libs/yui/2.9.0/build'; var yuicombopath = ''; var remoteyui = true; if (!yuicombopath) { document.write(''); } } var SESSIONURL = ""; var SECURITYTOKEN = "guest"; var IMGDIR_MISC = "warmane/misc"; var IMGDIR_BUTTON = "warmane/buttons"; var vb_disable_ajax = parseInt("0", 10); var SIMPLEVERSION = "422"; var BBURL = "https://forum.warmane.com"; var LOGGEDIN = 0 > 0 ? true : false; var THIS_SCRIPT = "showthread"; var RELPATH = "showthread.php?goto=nextoldest&t=483701"; var PATHS = { forum : "", cms : "", blog : "" }; var AJAXBASEURL = "https://forum.warmane.com/"; var CoTTooltips = { rename: true, icons: false, iconsize: 15, qualitycolor: true, overridecolor: { spells: '#839309', items: '', npcs: '#fff', objects: '#fff', quests: '#ffb100', achievements: '#fff' } }; // -->
I am trying to make a macro that casts a spell when I'm targeting an enemy NPC and a different spell when targeting an enemy player. What is the modifier for that or does it even exist?
/cast [@mouseover,harm,player][harm,player] Polymorph; [@mouseover,harm,npc][harm,npc] Frostbolt
or
/cast [@mouseover,harm,player][] Polymorph
/cast [@mouseover,harm,npc][] Frostbolt
or
/cast [@mouseover,harm,nodead,player][harm,nodead,player] SpellA; [@mouseover,harm,nodead,npc][harm,nodead,npc] SpellB
or
/cast [harm,player] SpellForPlayers; [harm,npc] SpellForNPCs
something like this?
What a ****ing AI bot answer to OPs question. Anime picture.
There is no way for a macro and its conditions to differentiate between a hostile NPC target and a hostile player target.
If there is a certain thing you want to be able to do you can type it out here, but be specific and I can help you.
There are ways to implement conditional modifiers but yeah sure go ahead and keep saying that.
If you want the simpler version you can work with /targetenemyplayer which is specific to players only and /targetenemy for generalized targetting. Depends on your situation though.
#showtooltip
/cleartarget [dead][noharm]
/targetenemyplayer [mod:shift,noexists]
/targetenemy [nomod,noexists]
/cast [mod:shift] Cyclone; Starfire
this macro lets you switch between target all enemies and enemy players by pressing shift as example. This is the simple version without 3rd party. in this case Cyclone is used on an enemy player and Starfire on enemies you can target in general. you can see the visualization on the icon when you press shift so you know if you're targetting players or npcs.
"There is no way for a macro and its conditions to differentiate between a hostile NPC target and a hostile player target." this is exactly what this macro does mr smartass. Better shut up if you have only limited knowledge rather than trying to call someone else out lmao.
Edited: February 13, 2026
so you get bumped, forgot to quote.