Hello, Me.IsSitting is not in WRobot api, you cannot detect if your character is sit or not.
Correct plugin code seem more like (not work) :
using System.Threading;
using wManager.Plugin;
using wManager.Wow.Helpers;
public class Main : IPlugin
{
public void Initialize()
{
while (Conditions.ProductIsStarted)
{
if (Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause)
{
if (robotManager.Helpful.Logging.Status == "Regeneration")
{
if (!wManager.Wow.ObjectManager.ObjectManager.Me.IsSitting)
{
wManager.Wow.Helpers.Move.SitStandOrDescend();
Thread.Sleep(1000);
}
}
}
Thread.Sleep(500);
}
}
public void Dispose()
{
}
public void Settings()
{
}
}
Try this:
using System.ComponentModel;
using System.Threading;
using robotManager.FiniteStateMachine;
using wManager.Wow.Helpers;
public class Main : wManager.Plugin.IPlugin
{
public void Initialize()
{
robotManager.Events.FiniteStateMachineEvents.OnRunState += delegate(Engine engine, State state, CancelEventArgs cancelable)
{
if (state.DisplayName == "Regeneration")
{
Move.SitStandOrDescend();
Thread.Sleep(1000);
}
};
}
public void Dispose()
{
}
public void Settings()
{
}
}