wulf
Community Developer
- Joined
- Dec 29, 2010
- Messages
- 1,832
- Reaction score
- 118
Hi guys,
Is there a way to rebuild spell book while HB is running ?
I want to call this method from within my CC
Please wait a few seconds while Honorbuddy initializes.
ItemForAura - Questhelper - Version 2.0 Loaded.
Building spell book
Spell book built
Initialization complete.
Honorbuddy is up-to-date
or here in Bold.
I can update the current rotationbase of CLU on active spec change but because the spell book is initialized during startup, it does not contain the *new* spec spells (swapping from BM to survival, it will not execute Explosive shot as it does not have the spell.)
Any help would be appreciated as this is the only piece of the puzzle missing.
cheers.
Is there a way to rebuild spell book while HB is running ?
I want to call this method from within my CC
Please wait a few seconds while Honorbuddy initializes.
ItemForAura - Questhelper - Version 2.0 Loaded.
Building spell book
Spell book built
Initialization complete.
Honorbuddy is up-to-date
or here in Bold.
Code:
[9:05:20 PM:860] Activity: Initializing.
[9:05:20 PM:861] Activity: Loading memory management & tables
[9:05:20 PM:873] [B][COLOR="#0000FF"]Activity: Loading Spells[/COLOR][/B]
[9:05:20 PM:898] H: 7B-8B-C6-74-2A-94-01-6B-82-85-1A-EB-F4-C8-6D-CD-67-5E-9A-27
[9:05:20 PM:899] V: 2.0.0.5800
[9:05:20 PM:900] [B][COLOR="#0000FF"]Activity: Initializing Spell Manager[/COLOR][/B]
[9:05:20 PM:913] Activity: Initializing Plugins
[9:05:20 PM:914]
I can update the current rotationbase of CLU on active spec change but because the spell book is initialized during startup, it does not contain the *new* spec spells (swapping from BM to survival, it will not execute Explosive shot as it does not have the spell.)
Code:
static CLU()
{
Lua.Events.AttachEvent("CHARACTER_POINTS_CHANGED", UpdateActiveRotation);
Lua.Events.AttachEvent("ACTIVE_TALENT_GROUP_CHANGED", UpdateActiveRotation);
}
private static void UpdateActiveRotation(object sender, LuaEventArgs args)
{
[COLOR="#0000FF"][B]// I need a re-build spell book in here!![/B][/COLOR]
rotationBase = null; //This will force CLU to update its active rotation (which it does!)
}
Any help would be appreciated as this is the only piece of the puzzle missing.
cheers.
Last edited: