- Code: Select all
#region Trainer Window
//styles
case 20:
{
Style style = SkillBase.GetStyleByID((int)objectID, client.Player.CharacterClass.ID);
if (style == null) return;
caption = style.Name;
WriteStyleInfo(objectInfo, style, client);
break;
}
//spells
case 22:
{
Spell spell = SkillBase.GetSpellByID((int)objectID);
if (spell == null) return;
caption = spell.Name;
WriteSpellInfo(objectInfo, spell, SkillBase.GetSpellLine(GlobalSpellsLines.Reserved_Spells), client);
break;
}
#endregion
*the spellline is only needed to create a spellhandler to check wether the spellhandler is implemented, so it's player independable