Beispiel #1
0
        public static void Initialize()
        {
            Commands.Register("IdanVis", AccessLevel.GameMaster, new CommandEventHandler(IdanVis_OnCommand));
            Commands.Register("IdanBlood", AccessLevel.GameMaster, new CommandEventHandler(IdanBlood_OnCommand));
            Commands.Register("IdanCloud", AccessLevel.GameMaster, new CommandEventHandler(IdanCloud_OnCommand));

            EventSink.Movement += new MovementEventHandler(EventSink_Movement);
        }
Beispiel #2
0
        public static void Initialize()
        {
            Commands.Register("Freeze", AccessLevel.Administrator, new CommandEventHandler(Freeze_OnCommand));
            Commands.Register("FreezeMap", AccessLevel.Administrator, new CommandEventHandler(FreezeMap_OnCommand));
            Commands.Register("FreezeWorld", AccessLevel.Administrator, new CommandEventHandler(FreezeWorld_OnCommand));

            Commands.Register("Unfreeze", AccessLevel.Administrator, new CommandEventHandler(Unfreeze_OnCommand));
            Commands.Register("UnfreezeMap", AccessLevel.Administrator, new CommandEventHandler(UnfreezeMap_OnCommand));
            Commands.Register("UnfreezeWorld", AccessLevel.Administrator, new CommandEventHandler(UnfreezeWorld_OnCommand));
        }
        public static void Initialize()
        {
            EventSink.Speech += new SpeechEventHandler(EventSink_Speech);

            if (!Directory.Exists("Logs"))
            {
                Directory.CreateDirectory("Logs");
            }

            string directory = "Logs/Speech";

            if (!Directory.Exists(directory))
            {
                Directory.CreateDirectory(directory);
            }

            Console.Write("Speech Logging: Loading...");

            try
            {
                m_toWrite = new StreamWriter(Path.Combine(directory, String.Format("{0}.log", DateTime.Now.ToLongDateString())), true);

                m_toWrite.AutoFlush = true;

                m_toWrite.WriteLine("####################################");
                m_toWrite.WriteLine("Logging started on {0}", DateTime.Now);
                m_toWrite.WriteLine();

                Console.WriteLine("done");
            }
            catch
            {
                Console.WriteLine("failed");
            }

            Commands.Register("ConsoleListen", AccessLevel.Administrator, new CommandEventHandler(ConsoleListen_OnCommand));
        }
        private const int Team          = 0;                          //"team" the npcs are on

        public static void Initialize()
        {
            Commands.Register("UOAMVendors", AccessLevel.Administrator, new CommandEventHandler(Generate_OnCommand));
        }
Beispiel #5
0
 public static void Initialize()
 {
     Commands.Register("Path", AccessLevel.GameMaster, new CommandEventHandler(Path_OnCommand));
 }
Beispiel #6
0
 public static void Initialize()
 {
     Commands.Register("VendorGen", AccessLevel.Administrator, new CommandEventHandler(VendorGenerator.VendorGen_OnCommand));
 }
Beispiel #7
0
 public static void Initialize()
 {
     PacketHandlers.Register(0xD9, 0x10C, false, new OnPacketReceive(OnReceive));
     Commands.Register("HWInfo", AccessLevel.GameMaster, new CommandEventHandler(HWInfo_OnCommand));
 }
 public static void Initialize()
 {
     Commands.Register("SpawnGen", AccessLevel.Administrator, new CommandEventHandler(SpawnGen_OnCommand));
 }