Thread Tools Display Modes
11-17-06, 11:12 AM   #1
Ashkiran
A Fallenroot Satyr
Join Date: Nov 2006
Posts: 20
Clique

Hi all,

How do i make a click set for friendly units in combat so that it doesn't apply to friendly units out of combat?
My right mouse button is a heal but i dont want it to heal when im out of combat and want to trade people for example.

Thnx in advance,

ashkiran
  Reply With Quote
11-17-06, 11:31 AM   #2
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
You need to make a custom script and use the API function UnitAffectingCombat("player") for this.

Code:
if UnitAffectingCombat("player") then
 --heal
 Clique:EfficientHeal()
else
  TargetUnit(clique.unit)
  BeginTrade()
end
BeginTrade() will open a trade window with your current target, so you need to first set your target to it so you can trade.
Haven't checked ingame it the script is right, if it pops an error post it.
  Reply With Quote
11-17-06, 12:14 PM   #3
Ashkiran
A Fallenroot Satyr
Join Date: Nov 2006
Posts: 20
thnx for the reply, ravagernl.
I tried it but it gives a nil value when right clicking a friendly unit out of combat.
  Reply With Quote
11-17-06, 04:09 PM   #4
Ashkiran
A Fallenroot Satyr
Join Date: Nov 2006
Posts: 20
I was thinking further playing around with that script.

I wondered if there was a way of customizing clique so that when i click my right mouse button on a unit frame
-> i see a default menu (with options like trade) out of combat
-> i cast a holy light on that unit with an appropriate rank depending how much hp the unit is missing in combat
Same would be cool for left mouse button:
-> selecting someone out of combat
-> casting a flash of light with the appropriate rank depending how much hp the unit is missing in combat

I dont know much about scripting, so i would greatly appreciate a detailed script.
Thnx in advance,
ashkiran
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Clique


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