Currently, there is no way to check if a spell is present in the Mage Guild of a town.
*
HasSpellInGuild(town, spell)
town: the town you want to check (see, for example, GetTown).
spell: the ID of the spell you want to check (see section "Spells").
Returns "true" if the specified spell is present in the Mage Guild of the specified town, returns "false" otherwise.
*
GetSpellInGuild(town, level, column)
town: the town you want to check (see, for example, GetTown).
level: the level of the Mage Guild you want to check.
column: a number from "0" to "4" representing which position of the spell in that level you want to check.
Returns the spell present at the specified level and column in the Mage Guild of the specified town.