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

Need help from a HB Dev

king

Member
Joined
Jan 15, 2010
Messages
463
Reaction score
1
Was wondering if there was a way to have the bot go train new spells right after Train Auto was turned on via profile if needed instead of waiting for the next ding to occur or doing a force train new spells with a quest behavior.
 
Last edited:
edit: sorry, misread your post. You want to do this inside a profile. I have no idea, sorry -- I'll keep the plugin below anyway because it might be useful to somebody.


Was wondering if there was a way to have the bot go train new spells right after Train Auto was turned on via profile if needed instead of waiting for the next ding to occur or doing a force train new spells with a quest behavior.

You can do this with a plugin.

Code:
    public class Trainer : HBPlugin
    {
        public override Version Version { get { return new Version(1, 0); } }

        public override string Name { get { return "Trainer"; } }
        public override string Author { get { return "fiftypence"; } }

        private bool mTrainNewSkills { get; set; }

        public override void Initialize()
        {
            mTrainNewSkills = CharacterSettings.Instance.TrainNewSkills;

            Logging.Write(Color.Orange, "[Trainer] Loaded");
        }

        public override void Pulse()
        {
            if (mTrainNewSkills != CharacterSettings.Instance.TrainNewSkills)
            {
                mTrainNewSkills = !mTrainNewSkills;

                if (CharacterSettings.Instance.TrainNewSkills)
                {
                    Styx.Logic.Vendors.ForceTrainer = true;

                    Logging.Write(Color.Orange, "[Trainer] The train skills option has been turned on.")
                    Logging.Write(Color.Orange, "[Trainer] Forcing training of new skills.");
                }
            }
        }
    }

Feel free to reuse the code if it was what you were looking for. See attachment for the full plugin file.
 

Attachments

Last edited:
if this doesn't work if autotrain is disabled, it is exactly what I was looking for, tho I wish HB dev would implement train if enabled via profile, and also there was something to train without going it to automatically train at trainer
 
if this doesn't work if autotrain is disabled, it is exactly what I was looking for, tho I wish HB dev would implement train if enabled via profile, and also there was something to train without going it to automatically train at trainer

It will only force training if the option changes from off to on. In other words, it will train if the profile or player turns auto train on. It will have no effect if auto train is disabled or auto train is changed from on to off.
 
oh, was hoping for a code that would train if turned on and it was needed, there is a quest behavior to force train already :(
 
oh, was hoping for a code that would train if turned on and it was needed, there is a quest behavior to force train already :(

Do you mean you need a plugin that will immediately train skills upon being activated if skills need to be trained?
 
It sound slike he wants to call training when he wants, like the Force Train behavior, but only if the Auto Train option is turned on, if it's turned off, do nothing.

I'm not sure how this differs from it's current behavior, if you set your trainers in your profile, it will go train automatically as necessary. What am i missing here, can you give us the reason why the current options aren't sufficient?
 
No I just want to be able to turn auto train on and off via the profile, but when it is turned on train only if there are new spells to be learned. Currently, if turned on it wont train the new spells until you ding again.
 
No I just want to be able to turn auto train on and off via the profile, but when it is turned on train only if there are new spells to be learned. Currently, if turned on it wont train the new spells until you ding again.
Here is a quick little plugin that will force honorbuddy to go train in case "Auto train" is on (e.g. when you turn it on), and there is spells available. (notice: this is patch dependent, since i haven't found a way for HB to tell if spells is available - new offsets can be found on ownedcore)View attachment AutoTrain.cs
 
Sounds like what I was looking for, thanks will try it out ASAP
 
Well I tried it and it just looped force train action. Any actual hb devs able to help? Starting to feel they don't even look at these forums.......
 
Well I tried it and it just looped force train action. Any actual hb devs able to help? Starting to feel they don't even look at these forums......
 
Well I tried it and it just looped force train action. Any actual hb devs able to help? Starting to feel they don't even look at these forums......
Yeah forgot a thing, Will reupload a Working one.
 
Thanks, Appreciate it

Made it check to see if it had already gone to vendor (and when it has trained it will allow it to go train again). Also added a check for mount, so it won't go train if mount gets available.
View attachment AutoTrain.cs

Feel free to reply in this thread in case a problem shows up with the plugin. I'll try to fix it for you.
 
It is working beautifully, ty. I can now choose the window that training is allowed. HB dev plz add this to the main hb.
 
Back
Top