+ Reply to Thread
Results 1 to 4 of 4

Thread: Looping Attackers

  1. #1
    Junior Member masteramoebe is on a distinguished road
    Join Date
    Sep 2009
    Posts
    9

    Default Looping Attackers

    hi everyone,

    i am trying to code my own custom class and i wonder if it is possible to loop
    through the attackers ?

    at the moment i only see the
    public static int AttackedCount { get; }

    but what i would need is a array with all the attackers (GUID) in a fight.

    that way i want to loop through the attackers and check if i am the target with >> public static bool IsTargetingMe { get; } <<
    and if i am the target i want to let my pet attack this NPC.

    i hope someone can lead me on the right way, thanks for your time.

    best regards,
    amoebe

  2. #2
    Super Moderator theGardener is on a distinguished road
    Join Date
    Sep 2009
    Location
    USA
    Posts
    99

    Default

    I have the same problem.

    The best solution I have for it is to watch my health and when it gets below 60%, I send "/petpassive" and then "/petdefensive" to the keyboard and the pet will pick up what is attacking me.

    This only works ok, not the best/right solution, but better than nothing.

    Good luck,

    tG

  3. #3
    Junior Member masteramoebe is on a distinguished road
    Join Date
    Sep 2009
    Posts
    9

    Default

    thanks for this nice workaround ;-) not the perfect api solution i searched for but a way to compensate it until hopefully rival can implement something in the api.

  4. #4
    Super Moderator theGardener is on a distinguished road
    Join Date
    Sep 2009
    Location
    USA
    Posts
    99

    Default

    Quote Originally Posted by masteramoebe View Post
    thanks for this nice workaround ;-)
    Getting rep around here is harder than getting blood from a rock...

    tG

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts