Hello, no tested but like that:
public static bool ManageMovement()
{
if (robotManager.Products.Products.ProductName == "WRotation")
{
string errorsCSharp;
if (wManager.Wow.Helpers.RunCodeExtension.RunScript(robotManager.Helpful.RunCode.CodeType.CSharp, @"robotManager.Helpful.Var.SetVar(""ManageMovementWRotation"", WRotation.Bot.WRotationSetting.CurrentSetting.ManageMovement);", "", out errorsCSharp))
{
return robotManager.Helpful.Var.Exist("ManageMovementWRotation") && robotManager.Helpful.Var.GetVar<bool>("ManageMovementWRotation");
}
}
return false;
}
(try to call this code only one time at start (and cache value) to avoid performance problem)