Thread Tools Display Modes
05/23/14, 11:49 AM   #1
Edda
 
Edda's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 60
Fighting mob or player ?

While downloading this insanely big update...

Did anyone find documentation on :

Lua Code:
  1. EVENT_COMBAT_EVENT (
  2. integer result,
  3. bool isError,
  4. string abilityName,
  5. integer abilityGraphic,
  6. integer abilityActionSlotType,
  7. string sourceName,
  8. integer sourceType,
  9. string targetName,
  10. integer targetType,
  11. integer hitValue,
  12. integer powerType,
  13. integer damageType,
  14. bool log
  15. )

I want to check if player is fighting either a mob/elite/whatever or another player. I think what I need to check is integer targetType but no idea what values this var can hold.

I think maybe I could use EVENT_RETICLE_TARGET_CHANGED but nothing about it as well in the wiki.
  Reply With Quote
05/23/14, 01:08 PM   #2
BadVolt
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 74
Originally Posted by Edda View Post
While downloading this insanely big update...

Did anyone find documentation on :

Lua Code:
  1. EVENT_COMBAT_EVENT (
  2. integer result,
  3. bool isError,
  4. string abilityName,
  5. integer abilityGraphic,
  6. integer abilityActionSlotType,
  7. string sourceName,
  8. integer sourceType,
  9. string targetName,
  10. integer targetType,
  11. integer hitValue,
  12. integer powerType,
  13. integer damageType,
  14. bool log
  15. )

I want to check if player is fighting either a mob/elite/whatever or another player. I think what I need to check is integer targetType but no idea what values this var can hold.

I think maybe I could use EVENT_RETICLE_TARGET_CHANGED but nothing about it as well in the wiki.
Use GetUnitType("reticleover") to get info about target unit type.

Unit Types:

COMBAT_UNIT_TYPE_GROUP
COMBAT_UNIT_TYPE_NONE
COMBAT_UNIT_TYPE_OTHER
COMBAT_UNIT_TYPE_PLAYER
COMBAT_UNIT_TYPE_PLAYER_PET
  Reply With Quote
05/23/14, 06:00 PM   #3
Iyanga
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 183
Originally Posted by Edda View Post
While downloading this insanely big update...

Did anyone find documentation on :

Lua Code:
  1. EVENT_COMBAT_EVENT (
  2. integer result,
  3. bool isError,
  4. string abilityName,
  5. integer abilityGraphic,
  6. integer abilityActionSlotType,
  7. string sourceName,
  8. integer sourceType,
  9. string targetName,
  10. integer targetType,
  11. integer hitValue,
  12. integer powerType,
  13. integer damageType,
  14. bool log
  15. )

I want to check if player is fighting either a mob/elite/whatever or another player. I think what I need to check is integer targetType but no idea what values this var can hold.
targetType
sourceType
powerType
damageType
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Fighting mob or player ?

Thread Tools
Display Modes

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