Jump to content

How to active plugin from plugin?


79135

Recommended Posts

    The code in the plugin, but don't work, just repeat 123

        if (wManager.wManagerSetting.CurrentSetting.PluginsSettings.Any(p => !p.Actif && string.Equals(p.FileName, "file name.cs")) && 
            _isLaunched && Products.IsStarted &&
            Conditions.InGameAndConnectedAndProductStartedNotInPause &&
            (Usefuls.ContinentId == (int)ContinentId.Northrend ||
            Usefuls.ContinentId == (int)ContinentId.Expansion01 ||
            Usefuls.ContinentId == (int)ContinentId.Kalimdor ||
            Usefuls.ContinentId == (int)ContinentId.Azeroth))
            {
                
                foreach (var p in wManager.wManagerSetting.CurrentSetting.PluginsSettings)
                {

                    Logging.Write("123");
                    Thread.Sleep(1000);
                    if (p.FileName == "SmoothMove.dll")
                        p.Actif = true;
                }
                wManager.Plugin.PluginsManager.LoadAllPlugins();

            }

Link to comment
Share on other sites

Just example please). And in quester profile quest type "Kill and Loot" I can as the extract point route in to is complete condition? (return ObjectManager.Me.Position.DistanceTo(pointRoute) < 3;

I think you have to dispose all then load all, but I'm a new thread



 

Link to comment
Share on other sites

7 minutes ago, Matenia said:

new System.Threading.Thread(() => {
  wManager.Plugin.PluginsManager.DisposeAllPlugins();
  wManager.Plugin.PluginsManager.LoadAllPlugins();
}).Start();

 

Thanks) . How about quester profile, do you don't know?

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...