scriptsdk / CSharp-ScriptSDK-Legacy

ScriptSDK is an advanced extension written in .NET. The framework is based on a local tcp socket protocol library written by maxwell and extend the provided architecture by additional methods and handlers.
GNU General Public License v3.0
9 stars 11 forks source link

Contextmenu.Click() not working #2

Open justbark opened 8 years ago

justbark commented 8 years ago

If i have done everything correctly, I believe the contextMenu.click() is not working? heres a my code:

static void exitEncounter(PlayerMobile P)
        {
            Console.WriteLine("Exiting encounter");
            ScriptSDK.Configuration.ContextOptions.Initialize();
            P.ContextMenu.Parse();
            int contextCount = P.ContextMenu.Entries.Count();
            Console.WriteLine("context menu buttons: " + contextCount);
            foreach(var e in P.ContextMenu.Entries)
            {
                Console.WriteLine("button: " + e.Text + "cliloc: " + e.ClilocID);
            }
            //1156287 = exit shadowguard
            P.ContextMenu.Click(1156287);
        }

I have attempted contextmenu.click with 1156287 (the cliloc id) and just a string "exit shadowguard" neither work. The error msg i get is this: Error in IdServer: "Access Violation at address 0052AD65 in module 'Stealth.Exe'. Read of address 00000025"

Crome696 commented 8 years ago

Looks like a Stealth bug. I will discuss this with Vizit0r