Thread Tools Display Modes
01-23-10, 11:17 AM   #1
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
check if party member in combat

is there no easy way to see if a party member is on any mobs hate list? like player_regen is used for your own in combat check?
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote
01-23-10, 11:24 AM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,935
You could try this :
"UNIT_COMBAT"
Fired when an npc or player participates in combat and takes damage
arg1 - the UnitID of the entity
arg2 - Action,Damage,etc (e.g. HEAL, DODGE, BLOCK, WOUND, MISS, PARRY, RESIST, ...)
arg3 - Critical/Glancing indicator (e.g. CRITICAL, CRUSHING, GLANCING)
arg4 - The numeric damage
arg5 - Damage type in numeric value (1 - physical; 2 - holy; 4 - fire; 8 - nature; 16 - frost; 32 - shadow; 64 - arcane)
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote
01-23-10, 11:37 AM   #3
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
Yea that will show when they are attacking or being attacked but not if they are on a hate list. a combination of that and some other events one could write something to do it and be almost 100% accurate. was hoping there was an easy way
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote
01-23-10, 11:48 AM   #4
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,935
Rofl, nearly everything is a combination of multiple events

The other option is to have it check your targets threat status with each member of your party/raid. Someone asked for something like this a few months back but can't remember if someone managed to find something that does it.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote
01-23-10, 12:47 PM   #5
Akryn
A Firelord
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 479
You can just poll with http://www.wowwiki.com/API_UnitAffectingCombat every so often. I don't think there's an event for it.
  Reply With Quote
01-23-10, 03:44 PM   #6
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
Originally Posted by Akryn View Post
You can just poll with http://www.wowwiki.com/API_UnitAffectingCombat every so often. I don't think there's an event for it.
That event can give quite varying returns as well, so I wouldn't really call it a definitive solution by itself. You could probably combine it with some functions and events listed earlier, but determining combat for non-player units is shady business.
__________________
「貴方は1人じゃないよ」
  Reply With Quote
01-23-10, 06:40 PM   #7
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
actually im trying to determine combat for party members.
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote
01-23-10, 08:45 PM   #8
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Yes, "party members" would fall under the category of "non-player units", as the "player" unit is not considered a party member by the API.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » check if party member in combat


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