-
Posted by gaborn on Wed, 08 Jul 2009 09:43:25
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.
-
Posted by jnwhiteh on Wed, 08 Jul 2009 17:45:58
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.
-
Posted by gaborn on Wed, 08 Jul 2009 18:14:53
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 ;)
-
Posted by jnwhiteh on Thu, 30 Jul 2009 22:32:13
You can determine if it's an enemy, but not if its an enemy NPC.