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); } }
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); }