ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   Fighting mob or player ? (https://www.esoui.com/forums/showthread.php?t=1603)

Edda 05/23/14 11:49 AM

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.

BadVolt 05/23/14 01:08 PM

Quote:

Originally Posted by Edda (Post 8351)
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

Iyanga 05/23/14 06:00 PM

Quote:

Originally Posted by Edda (Post 8351)
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


All times are GMT -6. The time now is 11:21 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI