private void LoadSpellScript(string spellscriptstr, bool primary = false) { var script = ScriptManager.Load <SpellScript>(spellscriptstr, Spell.Create(1, ServerContext.GlobalSpellTemplateCache[spellscriptstr])); if (script != null) { script.IsScriptDefault = primary; SpellScripts.Add(script); } }