Page 1 of 1

Spells in spellbook

Posted: Sat May 01, 2004 1:49 am
by wassup
Nothing major, but maybe useful to people.

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: Changed Competed to Completed
Edit: Fixed the < problem
Edit: Fixed a missing bracket (thanks fearless)

Posted: Sat May 01, 2004 4:01 am
by bzt
it makes the log..the log just says the time and SonSos spell book..nothing else

Posted: Sat May 01, 2004 4:28 am
by wassup
bzt wrote:it makes the log..the log just says the time and SonSos spell book..nothing else
Odd, works fine here.

Are you letting it complete?

I suppose I could do it a different way that would probably be faster now that I think about it...

I just did this on the spur of the moment.

Posted: Sat May 01, 2004 2:18 pm
by wassup
I redid the macro to make it faster...

Shouldn't take nearly as long as it did before, but realize it searches each slot of your spellbook for each level of your character.

Posted: Sat May 01, 2004 2:30 pm
by bzt
that worked great!

Posted: Mon May 17, 2004 9:50 am
by rasor
I saved the macro as spellbook.mac

I ran the macro as /macro spellbook.mac

it says "completed search..log is in your logs folder"

when i go to log folder.... nothing no log to be found. any idea?

Posted: Mon May 17, 2004 9:58 am
by don'tdoit
are you looking in your EQ logs folder or your MQ logs folder?

Posted: Mon Feb 14, 2005 11:53 pm
by Some Guy
You are missing a } here:

Code: Select all

   /if (${thisLevel[color=red]}[/color]<=${Me.Level}) {