07-09-2014, 06:22 PM
(07-09-2014, 06:04 PM)erleo Wrote: Awesome.. Very Thanks Mega<3!
But if have in my screen 1 friend and other player, say the spell?
[macro]1000 {FriendOnScreen} FriendOnScreen:=0 Creatures.PlayersOnScreen()==2 Creatures.ByName(YOURFRIENDNAME)==1 FriendOnScreen:=1[/macro]
Change YOURFRIENDNAME to your friend`s name.
This macro will check if there`s only two players on screen (you're counted), so you + friend == 2, if there`s a third player on the screen it wont set the variable to 1.
Also it will check if the second player is your friend.