I also too as well am having context menu problems. My code looks like dis:
static void exitEncounter(PlayerMobile P)
{
Console.WriteLine("Exiting encounter");
ScriptSDK.Configuration.ContextOptions.Initialize();
P.ContextMenu.Parse();
//P.ContextMenu.Click("Exit Shadowguard");
// or
//P.ContextMenu.Click(1156287);//or some number like that...
}
any ContextMenu.Click line gives me a weird error.
Error in IdServer: "Access Violation at address 0052AD65 in module 'Stealth.Exe'. Read of address 00000025"