What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

SpellManager.Refresh()?

ski

Well-Known Member
Joined
Feb 12, 2010
Messages
3,720
Anyone know if this works? I added a SpellManager.Refresh(); during my spell selection code so that it will get whichever spells the user has (so they don't have to exit/reopen hb when they switch specs), but it doesn't seem to do anything.

Is there any other method to refresh the spellbook?
 
SpellManager..::.Refresh Method
SpellManager Class See Also Send Feedback

Refreshes the spell book to find new spells the user has obtained since the last refresh.
Namespace: Styx.Logic.Common.Combat
Assembly: Styx (in Styx.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax
C#
public static void Refresh()

Visual Basic (Declaration)
Public Shared Sub Refresh

Visual C++
public:
static void Refresh()
 
Maybe pull apart eTrain and see how Erinon does it.

Same thing in eTrain:

Code:
                            Logging.Write("Refreshing spellbook to get new spells!");
                            SpellManager.Refresh();
                            Thread.Sleep(5000);

Though I've never used eTrain to know if it works in there - is it possible it only works in a plugin?
 
Try using the same
using _________;

Added all his using entries to mine, same thing. It compiles fine, throws no error, but when its called it just doesn't work. I added log entries before and after the command and both are logged, so its definitely hitting it...
 
I guess its safe to assume its just not working and the Devs need to look into it.
 
Try adding it to the button.
So when you click you know its being called
 
public override bool WantButton { get { return true; } }

public override void OnButtonPress()
{
SpellManager.Refresh();
}

/filler Blah
 
As noobish as this sounds, I've been looking at how to react to that button :)
 
As noobish as this sounds, I've been looking at how to react to that button :)
lol yea

public override bool WantButton { get { return true; } } ----Makes it useable
public override void OnButtonPress(){SpellManager.Refresh();}--Operation you want done
 
On a side note, why the hell are there 75 thousand files in my C:\Users\Username\Appdata\Local\Temp folder? I know that's where HB stores its temp dll's and they all have random names, lol. Something's not cleaning up after itself right.
 
Code:
    public override bool WantButton{ get { return true; } }
    public override void OnButtonPress()
    {
        SpellManager.Refresh();
    }

Results in:
Code:
Compiler errors in CC!
c:\hb\CustomClasses\skiWarlock - nonpriority-test.csLine: 76 Error: 'Styx.Bot.CustomClasses.AfflictionWarlock.WantButton': no suitable method found to overridec:\hb\CustomClasses\skiWarlock - nonpriority-test.csLine: 77 Error: 'Styx.Bot.CustomClasses.AfflictionWarlock.OnButtonPress()': no suitable method found to override
Re-compile complete
 
oh fuck.
This is a cc not a Plugin?

Si Senior. Trying to call a Spellbook refresh when the CC is run so I don't have to close/reopen every time I change talents.
 
Ahh Well then I would put SpellManager.Refresh(); under
public void Combat()
{
SpellManager.Refresh();
}

If you cc has a requirement set to execute SpellManager.Refresh(); it might not be happening like you thought. If you put it under Combat() all you do is get in a fight and you'll know right away if its your condition or problem with the SpellManager.Refresh(); method.
 
Back
Top