It seems like I need additional checks for currentTarget, actorType and stuff so it doesn't trigger when it's doors but only monsters
Hey toNyx, I'm sure Pushedx won't mind =). Just add this to Start() Code: var plugin = PluginManager.EnabledPlugins.FirstOrDefault(n => n.Name == "AutoFlask"); if (plugin != null) { Log.ErrorFormat("[FlaskHelper] AutoFlaskIs Enabled, will cause issues with this plugin. Disabling it."); PluginManager.Disable(plugin); // you have your IPlugin, and it's in EnabledPlugins }
hi, I am getting this now, basically every action: Code: Exception during plugin Tick.System.NullReferenceException: Object reference not set to an instance of an object. at FlaskHelper.Helpers.TargetHelpers.get_CurrentTargetIsMonster() in d:\Games\Path Of Exile 2015\Messenger\Plugins\FlaskHelper\Helpers\TargetHelpers.cs:line 14 at FlaskHelper.Helpers.TargetHelpers.get_BestTarget() in d:\Games\Path Of Exile 2015\Messenger\Plugins\FlaskHelper\Helpers\TargetHelpers.cs:line 9 at FlaskHelper.Usage.ShouldUseDivinationFlask(Int32 flaskId) in d:\Games\Path Of Exile 2015\Messenger\Plugins\FlaskHelper\Usage.cs:line 284 at FlaskHelper.Usage.CheckFlaskUsage(FlaskTypes flaskType, Single flaskThreshold) in d:\Games\Path Of Exile 2015\Messenger\Plugins\FlaskHelper\Usage.cs:line 79 at FlaskHelper.Main.Tick() in d:\Games\Path Of Exile 2015\Messenger\Plugins\FlaskHelper\Main.cs:line 161 at Loki.Bot.PluginManager.(IPlugin )
Woopsy, I probably forgot the double check in the helpers... My bad gonna fix it tonight or maybe tomorrow, but you shouldnt worry about the error, i won't affect any performances. sorry for that mistake