public override bool Load()
        {
            AGeneralScript Script = WorldMgr.GetScript(_Owner, "");

            if (Script != null)
            {
                AddScript(Script);
            }

            OnObjectLoad(_Owner);
            return(base.Load());
        }
        public void AddScript(string Name)
        {
            if (string.IsNullOrEmpty(Name))
            {
                return;
            }

            if (HasScript(Name))
            {
                return;
            }

            AGeneralScript Script = WorldMgr.GetScript(_Owner, Name);

            if (Script != null)
            {
                AddScript(Script);
            }
            else
            {
                Log.Debug("ScriptsInterface", "Invalid Script :" + Name);
            }
        }
示例#3
0
        public void AddScript(string Name)
        {
            if (Name == null || Name.Length == 0)
            {
                return;
            }

            if (HasScript(Name))
            {
                return;
            }

            AGeneralScript Script = WorldMgr.GetScript(_Owner, Name);

            if (Script != null)
            {
                AddScript(Script);
            }
            else
            {
                Log.Error("ScriptsInterface", "Invalid Script :" + Name);
            }
        }