Jump to content

Apexx

Elite user
  • Posts

    332
  • Joined

Posts posted by Apexx

  1. Initial SettingAttribute

    [Setting]
    [Category("Settings")]
    [DisplayName("Object(s) list")]
    [Description("")]
    public List<string> ObjectsList { get; set; }

    Modified to allow a list of strings entering each item on its own line:

    [Setting]
    [Category("Settings")]
    [DisplayName("Object(s) list")]
    [Description("")]
    [Editor(@"System.Windows.Forms.Design.StringCollectionEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.Drawing.Design.UITypeEditor))]
    public List<string> ObjectsList { get; set; }

    Finished result:

    string-collection-editor-fixed.png

  2. Is this XML or C#?

    C#:

    public void Initialize() // When product started, initialize and launch Fightclass
    {
        WatchForEvents();
    }
    public class Main: ICustomClass
    {
        internal void WatchForEvents()
        {
            EventsLuaWithArgs.OnEventsLuaWithArgs += (LuaEventsId id, List<string> args) =>
            {
                if (id == LuaEventsId.PLAYER_REGEN_ENABLED && ObjectManager.Me.HealthPercent <= wManager.wManagerSetting.CurrentSetting.FoodPercent)
                {
                    Lua.RunMacroText("/cancelaura [stance:1] Dire Bear Form; [stance:2] Aquatic Form; [stance:3] Cat Form; [stance:4] Travel Form; [stance:5] Moonkin Form");
                }
            };
        }
    }

    This has not been tested, and I am not sure if Vanilla WoW uses the same LuaEventID. This is just an idea.
     

  3. Hi thanks for reading this thread post. I was wondering if Me.IsCast works for channeled spells like, Volley.
    My goal is to throw a while loop in my fight class, if I am casting Volley to run a Thread.Sleep(10) until cast time is diminished.

    Also, a question in regards to checks like, Me.Pacified. What exactly does Pacify mean here? Is there an ultimate check if the player
    is completely incapable of casting spells? I have added a few like, Me.HaveBuff("Sleep") etc, but the list would be huge for every
    spell that renders the player unable to perform attacks. The idea is to stop the bot from trying to cast spells while under those types
    of spell debuffs.

    Thanks everyone!

  4. Okay, here's a snapshot of the last tidbits of the log file:

    19:13:52 - [BMHunter] Is initialized.
    19:13:52 - [BMHunter] Is started.
    [D] 19:13:52 - PetPassiveMode() Enabled
    19:13:52 - [Butler] Butler version 1.3 is loaded and ready
    [D] 19:13:54 - [Butler] acknowledging item "Charger's Armor" id 15479 with a value of 115
    [D] 19:13:54 - [Butler] acknowledging item "Ranger's Vest" id 23266 with a value of 55
    19:13:55 - [Butler] item "Charger's Armor" id 15479 blacklisted
    [D] 19:13:55 - [Butler] acknowledging item "Sharp Arrow" id 2515 with a value of 5.833333
    19:13:56 - [Butler] item "Sharp Arrow" id 2515 blacklisted
    [D] 19:13:57 - [Butler] acknowledging item "Charger's Handwraps" id 15476 with a value of 64
    [D] 19:13:57 - [Butler] acknowledging item "Embossed Leather Gloves" id 4239 with a value of 241
    19:14:00 - [Fight] Player Attack Zhevra Runner (lvl 13)
    [F] 19:14:00 - [Spell] Cast Hunter's Mark (Hunter's Mark)
    [F] 19:14:00 - [Spell] Cast Serpent Sting (Serpent Sting)
    [D] 19:14:01 - AUTO ATTACK ENABLED.
    [D] 19:14:01 - Zhevra Runner GetDistance = 28.04692
    [D] 19:14:02 - PetDefensiveMode() Enabled
    [F] 19:14:02 - [Spell] Cast Serpent Sting (Serpent Sting)
    [F] 19:14:04 - [Spell] Cast Arcane Shot (Arcane Shot)
    [D] 19:14:04 - AUTO ATTACK ENABLED.
    [D] 19:14:04 - Zhevra Runner GetDistance = 9.811253
    [F] 19:14:06 - /castsequence !Auto Shot, !Auto Shot
    [F] 19:14:07 - /castsequence !Auto Shot, !Auto Shot
    [D] 19:14:07 - AUTO ATTACK ENABLED.
    [D] 19:14:07 - Zhevra Runner GetDistance = 9.811253
    [F] 19:14:07 - /castsequence !Auto Shot, !Auto Shot
    [F] 19:14:08 - /castsequence !Auto Shot, !Auto Shot
    [F] 19:14:08 - [Spell] Cast Serpent Sting (Serpent Sting)
    [D] 19:14:08 - PetPassiveMode() Enabled

    If it's the correct way to determine Auto Attack initiating, it would be nice to disable this feature for range classes until the target is within melee range.
    I appreciate your help @Avvi

  5. The spellbook shows "Auto Attack" (ID 6603), but the ability on my action bar reads, "Attack".
    The addon, "SpellID" returns 6603 in the tooltip for Auto Attack, but does not return any ID for the ability, "Attack" on my action bar.
    Are they the same?

    Dragging the "Auto Attack" ability to my action bar, changed the name to "Attack" and does not show spell ID information.

    How would you suggest testing if Auto Attack is activated?

  6. Looking at the ability that is interrupting Auto Shot again, my thread title might be misleading. The standard "Attack" skill is the one flashing against Auto Shot in the animated .gif above.
    I have the addon, "SpellID" that shows the obvious - spell ID in tooltips, and Attack is not returning any ID. I don't think I would be able to test if "Attack" is activated.

    I will try and disable any close proximity melee abilities from the fight class and see what happens...

  7. I have seen this issue proposed all over the forums, but have yet to see an actual fix or comment regarding a possible workaround.
    Hunter's use Auto Shot as a good chunk of damage output, but WRobot likes to use "Attack" on its own, which causes conflicts,
    interrupting Auto Shot. Here's a quick .gif I put together showing just the issue.
     

    Spoiler

    ezgif-1-170373b576.gif

    Auto_Shot_Failed.png

    It looks extremely bot-ish. It would be great to see some light shed on this subject.

  8. Is there a way to check using C#, if the hunter player even has a pet? I would like to include pet mending, reviving, and calling inside my fight class, but
    if the hunter does not even own a pet yet, how can I bypass the abilities inside the fight class if there is no pet?
     

    Quote

    Digits 4-10 - A constant value unique to the individual pet: like a player's unique ID it is constant across multiple sessions.

    -http://wowprogramming.com/docs/api_types#guid


    I was wondering if I could just check if GUID != 0?

×
×
  • Create New...