ProfileManager.LoadNew(@"path to xml", true); When I execute the following onPulse I get the following error. Any idea why? An exception of type 'System.NullReferenceException' occurred in RebornBuddy.exe but was not handled in user code {"Object reference not set to an instance of an object."}
Code: var Path = "Path to XML" NeoProfileManager.Load(Path, true); NeoProfileManager.UpdateCurrentProfileBehavior(); That's what I use.
Thanks. That worked. However just one more problem. When I set it the first time the bot starts, it sets and runs. But then in the onPulse I wanted to move to the next script when I hit a count. I have the below. It goes and Loads the next script correctly but does not move to the next area per the updated script. Its just sits there. public void OnPulse() { if (BotManager.Current.Name == "Order Bot") { if (Core.Player.InCombat == false && bStopBot) { Logging.Write("Teleport"); if (Core.Player.IsMounted) { Actionmanager.Dismount(); Thread.Sleep(1000); } sBook = SkywindI[iIndex]; iIndex++; NeoProfileManager.Load(@"\\diskstation\Camie Patel\FFXIV ARR Scripts\Reborn Scripts\Animus\Skywind I\" + sBook, true); NeoProfileManager.UpdateCurrentProfileBehavior(); bStopBot = false; } } }