1. Hello, I am trying to make /script :) which casts spell when pressed and target is enemy player(not npc) I tried it many times... for ex. /script if ( isPlayer(target) == 0) then cast = Exorcism; but I think I am going pretty bad with this :) and ofc it don´t work :) I will be pleased if you can help me out. Thx.

  2. Hello, I am trying to make /script :) which casts spell when pressed and target is enemy player(not npc) I tried it many times... for ex. /script if ( isPlayer(target) == 0) then cast = Exorcism; but I think I am going pretty bad with this :) and ofc it don´t work :) I will be pleased if you can help me out. Thx.

    You cannot cast spells via scripts. You would need to do it with a macro, but there is no conditional that does things based on whether or not your target is a player and not an NPC. More information about macro use can be found WoWWiki.

    You have a bit more flexibility outside combat, but it seems you want this for combat.

  3. Yes I already search for it there.. but with macro i cannot determinate if target is enemy player ? Can it be combined somehow ? PS: sorry for duplicity - i want to delete older topic.. but i didn´t figure out how ;)

  4. You can determine if it's an enemy, but not if its an enemy NPC.