Skip to content

SpellManager ยป Spells

Namespace: Mayo.Manager.Spells
Namespace: Mayo.Manager.Spells.Interface
Dependencies: ISpellManager
GameClient: GC.SM


You can find more info's about the Spell properties here:


List<Spell> GetSpells()

Returns a list of all Spell's in your spellbook.

Example
foreach (var Spell in GC.SM.GetSpells())
    Log.Write($"{Spell.Name} | ID: {Spell.ID}");
Spell? GetSpell(string SpellName, int Rank = 0)

Returns Spell or null.
The spell name must be in English. The spell must be in your spellbook.
You can also specify the minimum rank that must be met.
If 0, then the spell is returned at the highest level learned.

Spell? GetSpell(int SpellID)

Returns Spell or null.
The spell must be in your spellbook.

string GetSpellNameFromObjectList(int SpellID)

Returns the name of the spell, regardless of whether the character has learned it.

bool HasSpell(string SpellName)

Returns true if learned.

bool HasSpell(int SpellID)

Returns true if learned.