public void GMLearn(string[] str2)
{
try
{
string activatorstring = "LKCamelot.script.spells.";
var tempspell = Activator.CreateInstance(Type.GetType(activatorstring + str2[1]));
(tempspell as script.spells.Spell).Slot = player.GetFreeSpellSlot();
(tempspell as script.spells.Spell).SLevel2 = 99;
(tempspell as script.spells.Spell).Level = 12;
player.m_MagicLearned.Add((tempspell as script.spells.Spell));
SendPacket(new CreateSlotMagic2((tempspell as script.spells.Spell)).Compile());
}
catch { return; }
}