Dramoor

Member
I am curious if there is anyways to override an AccessLevel command.

Say I have something that on double click of a stone is doing something like this
Code:
public override void OnDoubleClick(Mobile from)
        {

            string prefix = Server.Commands.CommandSystem.Prefix;
            foreach (Generic.CommandEntry entry in Generic.Commands)
            {
                    CommandSystem.Handle(from, prefix + entry.CreateCommand);
            }
        }

But that commands accesslevel using would be set to Accesslevel.Administrator......Is there any way to override it just on that double click instead of having to Change the access level of the command itself?
 
Isnt there a delegate assigned in the command entry?

Code:
CommandEventArgs e = new CommandEventArgs(from, command, argString, args);
entry.Handler(e);
EventSink.InvokeCommand(e);
 

Active Shards

  • Unchained
    Custom (Classic)
    • Players
    • 156 Online
    • 273 Peak
  • UO Eventine
    Custom (Classic)
    • Players
    • 87 Online
    • 137 Peak
  • The Crossroads
    Mondain's Legacy
    • Players
    • 81 Online
    • 190 Peak
  • Insane UO
    Endless Journey
    • Players
    • 77 Online
    • 105 Peak
  • UO: New Renaissance
    Custom (Classic)
    • Players
    • 30 Online
    • 85 Peak
  • CALYPSO
    Custom (Modern)
    • Players
    • 21 Online
    • 30 Peak
  • UO Phoenix
    Custom (Classic)
    • Players
    • 21 Online
    • 48 Peak
  • UO Enigma
    Custom (Modern)
    • Players
    • 19 Online
    • 172 Peak
  • Heritage
    New Legacy
    • Players
    • 16 Online
    • 41 Peak
  • Arth
    Custom (Modern)
    • Players
    • 15 Online
    • 34 Peak

Donations

Total amount
$0.00
Goal
$500.00
Back