Thread Tools Display Modes
09-03-10, 08:46 AM   #1
Flaster
A Fallenroot Satyr
 
Flaster's Avatar
Join Date: Feb 2010
Posts: 20
KgPanels script - Inspect teammates

Good day.
How to write a script that when the focus teammates, proved Panel, and click on panel permit Inspect Player?
Or, how to write a script that when I click on the panel to act as a drop-down menu when focus teammate?
thank you
__________________
I do not speak much English, but I try
  Reply With Quote
09-08-10, 07:03 AM   #2
Sanat
A Kobold Labourer
Join Date: Sep 2010
Posts: 1
I am not 100% sure this will do it but something like:

Code:
OnLoad:
selfRegisterEvent("PLAYER_FOCUS_CHANGED")

OnEvent:
if UnitPlayerControlled("focus") and UnitIsFriend("focus")then
self:Show()
else
self:Hide()
end

OnClick:
if (UnitPlayerControlled("focus") and CheckInteractDistance("focus", 1) and not UnitIsUnit("player", "focus")) then
  InspectUnit("focus")
end
Should preform your required task
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » KgPanels script - Inspect teammates


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