Skip to content

Contextmenu.Click() not working #2

@justbark

Description

@justbark

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"

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions