Jump to content

Droidz

Administrators
  • Posts

    12590
  • Joined

  • Last visited

Posts posted by Droidz

  1. Hello,

    Try with this plugin Main.cs :

    using System.Threading;
    using wManager.Wow.Class;
    using wManager.Wow.Enums;
    using wManager.Wow.Helpers;
    
    public class Main : wManager.Plugin.IPlugin
    {
        const int SpellId = 46457;
        const int NpcId = 50041;
        
        public void Initialize()
        {
            robotManager.Events.FiniteStateMachineEvents.OnRunState += (engine, state, cancelable) =>
            {
                if (state is wManager.Wow.Bot.States.ToTown)
                {
                    MovementManager.StopMove();
                    new Spell(SpellId).Launch(true);
                    Thread.Sleep(5000);
    
                    var npc = new Npc
                    {
                        ContinentId = (ContinentId)Usefuls.ContinentId,
                        Name = "Field Repair Bot 75B",
                        Entry = NpcId,
                        Position = wManager.Wow.ObjectManager.ObjectManager.Me.Position,
                        Type = Npc.NpcType.Repair,
                        Faction = Npc.FactionType.Neutral
                    };
                    
                    NpcDB.ListNpc.RemoveAll(n => n.Active && n.Entry == npc.Entry && n.Type == npc.Type && n.ContinentId == npc.ContinentId && n.CurrentProfileNpc);
                    
                    NpcDB.AddNpc(npc, false, true);
                }
            };
        }
    
        public void Dispose()
        {
        }
    
        public void Settings()
        {
        }
    }

     

  2. Hello,

    To try to fix this, I made a plugin that manages the "Do Not Sell" list automatically.

    Instead of loading a huge list, the plugin updates the "Do Not Sell" list based on what’s actually in your bag.

    Edit the _doNotSellList list in the C# to include the items you don’t want to sell :

    using System.Collections.Generic;
    using System.Linq;
    using wManager.Wow.Helpers;
    
    public class Main : wManager.Plugin.IPlugin
    {
        private List<string> _doNotSellList = new List<string>
        {
            "item name to not sell 1",
            "item name to not sell 2",
            "item name to not sell 3",
        };
        
        public void Initialize()
        {
            robotManager.Events.FiniteStateMachineEvents.OnRunState += (engine, state, cancel) =>
            {
                if (state is wManager.Wow.Bot.States.ToTown)
                {
                    var bagItems = Bag.GetBagItem().Where(i => !string.IsNullOrWhiteSpace(i.Name)).Select(i => i.Name).ToList();
                    wManager.wManagerSetting.CurrentSetting.DoNotSellList.Clear();
                    foreach (var itemNameToNotSell in _doNotSellList)
                    {
                        if (bagItems.Contains(itemNameToNotSell))
                        {
                            wManager.wManagerSetting.CurrentSetting.DoNotSellList.Add(itemNameToNotSell);
                        }
                    }
                }
            };
        }
    
        public void Dispose()
        {
        }
    
        public void Settings()
        {
        }
    }

     

  3. Have you tried with a new installation of WRobot? Without deleting your current installation, download and install WRobot in a new folder, fill in only the flight form option and launch to see if it works, then try with your profile, and then your fight class.

×
×
  • Create New...