Hello,
if you can walk from detected corpse position to dungeon enter without obstacle try:
using System.Windows.Forms;
using robotManager.Helpful;
public class Main : wManager.Plugin.IPlugin
{
public void Initialize()
{
Logging.Write("[EnterCorpse] Started.");
wManager.Events.OthersEvents.OnPathFinderFindPathResult += (from, to, path, mpq, success) =>
{
if (to.DistanceTo2D(new Vector3(-3362.286f, 4665.728f, -22.70619f)) < 30)
{
path.Add(new Vector3(new Vector3(-3362.163f, 4636.226f, -101.049f)));
}
};
}
public void Dispose()
{
Logging.Write("[EnterCorpse] Disposed.");
}
public void Settings()
{
MessageBox.Show("??");
}
}