I didn't know about the /outputfile spellbook command, I'll be making use of that one myself.
I'm neither finished with my spawn/buff timer nor willing to give up the code yet, but here's what I'm doing-
I maintain a list of spells per class. That list contains min level, max level, name, resolve self, resolve other, min duration and max duration. Some spells have a fixed duration, for those spells you can set the min and max level to the level you get the spell, and the min and max duration to the duration. For most spells however, the duration slides between 2 values, so I set the min level to the level you get the spell, min duration the duration it lasts on that min level, the max level is either the level you replace the spell or the level it stops increasing duration, max duration is the duration at the max level. That way you can accurately get the spell duration at any given level. This works perfectly. Some spells within a duplicate class have the same resolve text, so you need to base the spell off the "you begin casting xxx" message; this will also prevent buff timers popping up for things other people cast. The wiki is all kinds of fucked up when it comes to resolve messages and especially durations.. you'll need to gather that yourself.
It's pretty straightforward other than that.. don't forget to pause buff timers on YOUR character while you're zoning. If there's anything else I can help with send me a pm.
-Spur
|