Jump to content

Apexx

Elite user
  • Posts

    332
  • Joined

Posts posted by Apexx

  1. // Return Number of Hostile Units Attacking in Specified Range
    private int HostileUnitsInRange(float range)
    {
        int hostileUnitsInRange = ObjectManager.GetUnitAttackPlayer().Count(u => u.GetDistance <= range);
        return hostileUnitsInRange;
    }

    Try something like the following (Will check if no unit is attacking you within 30 yards):

    wManager.Events.FightEvents.OnFightEnd += delegate
    {
        if (HostileUnitsInRange(30) == 0)
            Buff();
    };

     

  2. Thanks for the reply @lonellywolf. When I started the FightClass from ground zero again, I managed to get it to work. Once I added a few more abilities, it stopped
    working as I intended it to. If I even clicked a hostile unit from a large distance gap (Say 50-100 yards away) and wait a second, you can see the Auto Attack
    button start flashing. It would be nice if it didn't automatically try to attack the unit, unless the player is within the Range value we set inside the C# class.

    When it was working, I could literally stand right on top of a hostile unit without it even attacking it unless I moved behind the target, then it opened with Shred.
    If I was not behind the target, it seemed that I would manually have to use an ability to open the rotation and have the script do the rest of the work.

    But yes, it is a bummer there is no real way to disable Auto Attack.

  3. Hey @reapler Here's a the log file from one fight using your latest post example:
     

    06:43:34 - [Fight] Player Attack Galak Windchaser (lvl 24)
    06:43:35 - not active
    [F] 06:43:35 - [Spell] Cast Demoralizing Shout (Demoralizing Shout)
    06:43:35 - not active
    [F] 06:43:35 - [Spell] Cast Demoralizing Shout (Demoralizing Shout)
    06:43:36 - not active
    [F] 06:43:36 - [Spell] Cast Demoralizing Shout (Demoralizing Shout)
    06:43:36 - not active
    [F] 06:43:36 - [Spell] Cast Demoralizing Shout (Demoralizing Shout)
    06:43:37 - not active
    [F] 06:43:37 - [Spell] Cast Demoralizing Shout (Demoralizing Shout)
    [F] 06:43:37 - [Spell] Cast Bloodrage (Bloodrage)
    [F] 06:43:38 - [Spell] Cast Rend (Rend)
    06:43:38 - not active
    [F] 06:43:38 - [Spell] Cast Demoralizing Shout (Demoralizing Shout)
    06:43:39 - not active
    [F] 06:43:39 - [Spell] Cast Demoralizing Shout (Demoralizing Shout)
    [F] 06:43:39 - [Spell] Cast Mocking Blow (Mocking Blow)
    [F] 06:43:39 - [Spell] Cast Demoralizing Shout (Demoralizing Shout)
    06:43:40 - debuff active
    06:43:40 - debuff active
    06:43:40 - debuff active
    06:43:41 - debuff active
    [F] 06:43:41 - [Spell] Cast Thunder Clap (Thunder Clap)
    06:43:41 - debuff active
    06:43:42 - debuff active
    06:43:42 - debuff active
    06:43:42 - debuff active
    06:43:43 - debuff active
    06:43:43 - debuff active
    06:43:44 - debuff active
    [F] 06:43:44 - [Spell] Cast Mocking Blow (Mocking Blow)
    06:43:44 - debuff active
    06:43:45 - debuff active
    06:43:45 - debuff active
    06:43:45 - debuff active
    06:43:46 - debuff active
    [F] 06:43:46 - Galak Windchaser casting time remaining: 1.1 seconds.
    [F] 06:43:46 - Player interrupted with Shield Bash (Id found: 72, Name found: Shield Bash, NameInGame found: Shield Bash, Know = True, IsSpellUsable = False)
    06:43:46 - debuff active
    [F] 06:43:46 - Galak Windchaser casting time remaining: 0.7 seconds.
    [F] 06:43:46 - Player interrupted with Shield Bash (Id found: 72, Name found: Shield Bash, NameInGame found: Shield Bash, Know = True, IsSpellUsable = False)
    06:43:46 - debuff active
    [F] 06:43:46 - [Spell] Cast Demoralizing Shout (Demoralizing Shout)
    [F] 06:43:47 - Galak Windchaser casting time remaining: 0.1 seconds.
    [F] 06:43:47 - [Spell] Cast Shield Bash (Shield Bash)
    [F] 06:43:47 - Player interrupted with Shield Bash (Id found: 72, Name found: Shield Bash, NameInGame found: Shield Bash, Know = True, IsSpellUsable = False)
    06:43:47 - debuff active
    06:43:48 - debuff active
    06:43:48 - debuff active
    06:43:48 - debuff active
    06:43:49 - debuff active
    06:43:49 - debuff active
    06:43:50 - debuff active
    06:43:50 - debuff active
    [F] 06:43:50 - [Spell] Cast Demoralizing Shout (Demoralizing Shout)
    06:43:51 - debuff active
    06:43:51 - debuff active
    06:43:51 - debuff active
    06:43:52 - debuff active
    06:43:52 - debuff active
    06:43:52 - debuff active
    [F] 06:43:53 - [Spell] Cast Demoralizing Shout (Demoralizing Shout)
    06:43:53 - debuff active
    06:43:53 - debuff active
    06:43:54 - debuff active
    06:43:54 - debuff active
    06:43:55 - debuff active
    06:43:55 - debuff active
    06:43:55 - debuff active
    06:43:56 - debuff active
    06:43:56 - debuff active
    06:43:57 - debuff active
    06:43:57 - debuff active
    06:43:57 - debuff active
    06:43:58 - debuff active
    [F] 06:43:58 - [Spell] Cast Rend (Rend)
    06:43:58 - debuff active
    06:43:59 - debuff active
    06:43:59 - debuff active
    06:43:59 - debuff active
    06:44:00 - debuff active
    [F] 06:44:00 - [Spell] Cast Demoralizing Shout (Demoralizing Shout)
    06:44:00 - debuff active
    06:44:01 - debuff active
    06:44:01 - debuff active
    06:44:02 - debuff active
    06:44:02 - debuff active
    06:44:02 - debuff active
    06:44:03 - debuff active
    06:44:03 - debuff active
    06:44:04 - debuff active
    06:44:04 - debuff active
    06:44:04 - debuff active
    06:44:05 - debuff active
    06:44:05 - debuff active
    06:44:05 - debuff active
    06:44:06 - debuff active
    06:44:06 - debuff active
    06:44:06 - debuff active
    06:44:07 - debuff active
    06:44:07 - not active
    [F] 06:44:07 - [Spell] Cast Demoralizing Shout (Demoralizing Shout)
    06:45:13 - [Apexx Protection Warrior v1.0] Stop in progress.

    Demoralizing Shout Debuff lasts for 30 seconds. I am not sure why it keeps reapplying it.

×
×
  • Create New...