Hey Shrek_III,
I found the issue that the bot was having, thanks to your, FerroKarr, and thetestdummy have said.
It was the problem with;
Code:
public static void CheckIfOverLevel()
{
if (LokiPoe.Me.IsInTown || !BotManager.IsRunning)
return;
[B] while (Loki.Game.LokiPoe.StateManager.IsLoadingStateActive)[/B]
{
CheckIfOverLevel();
}
This was test code that needed to be removed, which I forgot to.
The new update I added
Code:
if (LokiPoe.Me.IsInTown || !BotManager.IsRunning ||[B] !LokiPoe.IsInGame || !_overLevelChecked[/B])
return;
IsInGame, checks for states the game currently is in, including loading. The
CheckIfOverLevel() gets called in Tick now, and will run only once, hence the bool
!_overLevelChecked is there, once it runs once, it won't run until next area change. In the future, it will be called upon level up, since there is no internal levelup API, I did a quick hack to compare levels and determine level up. Code is still buggy.
Look forward to the update soon.
Thanks!