• 0

    posted a message on How to check when target/focus changes status

    Hey,

    I'm trying to work out how to monitor when my target or focus change status (i.e., from friendly to hostile or vice-versa), and also which of target/focus it was.

     

    This occurs in a fair few situations, for example when beginning/ending a duel or when a boss goes friendly (instead of dying) when you finish the fight.

     

    I have been using /etrace, but I can't find anything that seems consistent. There are some events like:

    PLAYER_SOFT_FRIEND_CHANGED
    PLAYER_SOFT_ENEMY_CHANGED

    but I'm not even sure what they do.

     

    The thing I'm trying to do is change the colours of the hostile/friendly nameplates. So if there isn't an event, perhaps someone can think of another method?

     

    Posted in: Lua Code Discussion
  • To post a comment, please or register a new account.