This will make a log of all your spells in your spellbook by level. The log will be in your logs folder.
Code: Select all
#turbo 20
Sub Main
/declare spells[400,2] string outer UNDEFINED-ELEMENT
/declare slot int local
/declare thisLevel int local
/declare dots string local
/varset dots ........................................
/varset thisLevel 1
/mqlog Spells in ${Me.Name}'s spellbook
/mqlog
:Top
/if (${thisLevel}<=${Me.Level}) {
/for slot 1 to 400
/if (${Me.Book[${slot}].Level}==${thisLevel}) {
/mqlog ${Me.Book[${slot}].Name}${dots.Left[${Math.Calc[40-${Me.Book[${slot}].Name.Length}].Int}]}Level: ${Me.Book[${slot}].Level}
}
/next slot
/varcalc thisLevel ${thisLevel}+1
/goto :Top
}
/echo Completed Search... log is in your logs folder
/endmacro
Edit: Fixed the < problem
Edit: Fixed a missing bracket (thanks fearless)


