Jump to content

Droidz

Administrators
  • Posts

    12442
  • Joined

  • Last visited

Posts posted by Droidz

  1. Hello,

    For mailbox and post all items in auction house use the product "Auction", for go to guild bank and deposit gold use "Custom Profile" or "Quester".

    To switch between "Auction" and "Custom Profile" / "Quester" products, you can use "Relogger" application or "Schedule" product.

  2. Hello,

    For the randomize profile selection, you can use this approach Random Step.xml

    To load quest profile (from quest profile) use step type "LoadProfile", put the profile file name (like it's appeared in "Product settings").

    In Battleground product settings you have the option to use another product during queue (that can cause problems with quester product, some profiles can be complexes)

  3. Hello,

    You seem to play on a server with custom spells and use game addons (that are bad points).

    But I think that your problem is that you use a "Leveling" fightclass. Some fightclasses work only for against NPCs and not in combat against players.

  4. Hello,

    Your code is wrong, the code would look more like this (not tested):

    using System.Linq;
    using System.Windows.Forms;
    using robotManager.Helpful;
    using wManager.Wow.Bot.States;
    using wManager.Wow.Helpers;
    using wManager.Wow.ObjectManager;
    
    public class Main : wManager.Plugin.IPlugin
    {
        public void Initialize()
        {
            robotManager.Events.FiniteStateMachineEvents.OnBeforeCheckIfNeedToRunState += (engine, state, cancelable) =>
            {
                if (state is IsAttacked &&
                    Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause)
                {
                    var enemies = ObjectManager
                        .GetObjectWoWPlayer()
                        .Where(u =>
                            u.IsValid &&
                            u.IsAlive &&
                            u.PlayerFaction != ObjectManager.Me.PlayerFaction &&
                            u.IsTargetingMe &&
                            u.InCombatFlagOnly
                        );
                    if (enemies.Any())
                    {
                        var enemy = enemies.First();
                        Logging.Write($"Attacking player {enemy.Name} in response to being attacked.");
                        Fight.StartFight(enemy.Guid);
                    }
                }
            };
        }
    
        public void Dispose()
        {
            Logging.Write("Disposed.");
        }
    
        public void Settings()
        {
            MessageBox.Show("No settings for this plugin.");
        }
    }

     

×
×
  • Create New...