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);
            }
        }
Exemplo n.º 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);
            }
        }
 public void AddScript(AGeneralScript Script)
 {
     Scripts.Add(Script);
     Script.OnInitObject(_Owner);
 }
Exemplo n.º 5
0
 public void AddScript(AGeneralScript Script)
 {
     Scripts.Add(Script);
     Script.OnInitObject(_Owner);
 }