Hey, it is hardcoded but try code like that (not tested)
using System.Threading;
using System.Threading.Tasks;
using robotManager.Helpful;
using robotManager.Products;
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.OnRunState += (engine, state, cancelable) =>
{
if (state is Resurrect || state is ResurrectBG)
{
Task.Run(() =>
{
while (Conditions.InGameAndConnectedAndProductStartedNotInPause && ObjectManager.Me.IsDeadMe)
{
if (ObjectManager.Me.IsValid &&
ObjectManager.Me.PositionCorpse.DistanceTo(ObjectManager.Me.Position) < 45)
{
Logging.Write("Stop product near corpse");
Products.ProductStop();
}
Thread.Sleep(500);
}
});
}
};
}
public void Dispose()
{
}
public void Settings()
{
}
}