Exemplo n.º 1
0
        public bool Run(params object[] args)
        {
            string nowString = DateTime.UtcNow.ToString("yyyy-MM-dd hh:mm:ss");

            Console.WriteLine(nowString + ": Module OnLoad executing...");

            Console.WriteLine("Starting background thread manager...");
            _backgroundThreadManager.Start();

            _nwnxChat.RegisterChatScript("mod_on_nwnxchat");
            SetModuleEventScripts();
            SetAreaEventScripts();
            SetWeaponSettings();

            // Bioware default
            _.ExecuteScript("x2_mod_def_load", Object.OBJECT_SELF);
            _objectProcessing.RegisterProcessingEvent <AppStateProcessor>();
            _objectProcessing.OnModuleLoad();
            _dataPackage.OnModuleLoad();
            _farming.OnModuleLoad();
            _base.OnModuleLoad();
            _area.OnModuleLoad();
            _spawn.OnModuleLoad();
            _customEffect.OnModuleLoad();
            _objectVisibility.OnModuleLoad();

            nowString = DateTime.UtcNow.ToString("yyyy-MM-dd hh:mm:ss");
            Console.WriteLine(nowString + ": Module OnLoad finished!");
            return(true);
        }
Exemplo n.º 2
0
        public bool Run(params object[] args)
        {
            _nwnxChat.RegisterChatScript("mod_on_nwnxchat");
            SetModuleEventScripts();
            SetAreaEventScripts();

            // Bioware default
            _.ExecuteScript("x2_mod_def_load", Object.OBJECT_SELF);

            _death.OnModuleLoad();
            _structure.OnModuleLoad();
            _objectProcessing.OnModuleLoad();
            _farming.OnModuleLoad();

            return(true);
        }