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!

Request: A "Reload" Plugin

Uxxx

New Member
Joined
Sep 17, 2015
Messages
57
Hey guys i would really love a plugin that just types /rl or /reload to reload WoW like every 20 mins, it would be perfect if you could adjust the time window and maybe with a random adjustment. like it reloads IN 30 min or 45MIN max. can anyone make that?
 
anyone particular reason?

Well i just made the expierience that when my character is stuck, a reload ingame helps to get him on the right track again very often without having to delete a cache or anything. then i remeberd that there are respond plugins to whispers and then i thought, "i would like to know if its possible to make a plugin that types "/reload" betwen like every 20-30 minutes."

and i want it as plugin cause its easy to turn off if i use only a CR for example.
 
Slash Reload

Whipped together this really quick for you, I did not test in game, but it should work. It will use the command /reload randomly every 20 to 30 minutes. Create a folder in your plugins called Slash Reload and place the attached .cs in it and enable it in HB.
 

Attachments

Whipped together this really quick for you, I did not test in game, but it should work. It will use the command /reload randomly every 20 to 30 minutes. Create a folder in your plugins called Slash Reload and place the attached .cs in it and enable it in HB.
Thank you! I will test it and give you feedback if you want. Really thank you
 
Ok sadly it stops HB from running anything at all. I cleared cache, did even a clean install but as soon as i enable your plugin HB may start but nothing happens then afterwards. if i disable it, he starts running his programms again like questing
 
This one: https://www.thebuddyforum.com/honor...equests/274237-lf-raf-grant-level-plugin.html does something very similar to that. You can just change the inside of it from:

Code:
Lua.DoString("GrantLevel(\"party1\");");
Lua.DoString("GrantLevel(\"party2\");");
Lua.DoString("GrantLevel(\"party3\");");
Lua.DoString("GrantLevel(\"party4\");");
Lua.DoString("GrantLevel(\"party5\");");

Lua.DoString("AcceptLevelGrant();");

To:

Code:
Lua.DoString("/reload");
 
This one: https://www.thebuddyforum.com/honor...equests/274237-lf-raf-grant-level-plugin.html does something very similar to that. You can just change the inside of it from:

Code:
Lua.DoString("GrantLevel(\"party1\");");
Lua.DoString("GrantLevel(\"party2\");");
Lua.DoString("GrantLevel(\"party3\");");
Lua.DoString("GrantLevel(\"party4\");");
Lua.DoString("GrantLevel(\"party5\");");

Lua.DoString("AcceptLevelGrant();");

To:

Code:
Lua.DoString("/reload");

so replacing everything you marked as "from Code" by "Lua.DoString("/reload");?

im just a total noob to this and want to make it right the first time instead if asking like 10 times like im already am :D thanks for the help btw, you are all really nice to me. i was afraid first to get flamed for dumb questions :D
 
Yup, should be able to just open it in notepad and replace it. It even has settings that let you change how often you execute the script.

Code:
using Styx.Common;
using Styx.Plugins;
using Styx.WoWInternals;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GrantRAFLevels
{
    public class Plugin : HBPlugin
    {
        public override string Author { get { return "SpeshulK926"; } }
        public override string Name { get { return "Grant RAF Levels!"; } }
        public override Version Version { get { return new Version(1, 0); } }
        public override string ButtonText { get { return "Settings..."; } }
        public override bool WantButton { get { return true; } }
        public override void OnButtonPress()
        {
            SettingsForm frm = new SettingsForm();
            frm.ShowDialog();
            GRLSettings.Instance.Save();
        }
        public Styx.WoWInternals.WoWObjects.LocalPlayer Me { get { return Styx.StyxWoW.Me; } }
        private Stopwatch _timer = new Stopwatch();
        public override void Pulse()
        {
            if (!_timer.IsRunning || _timer.ElapsedMilliseconds > (GRLSettings.Instance.TimerInMinutes * 1000 * 60))
            {
                Logging.Write("[RAFLevel] Attempting to grant levels");

                Lua.DoString("/reload");
                _timer.Restart();
            }
        }
        public override void OnEnable()
        {
            base.OnEnable();
            Logging.Write("[RAFLevel] Enabled");
        }
        public override void OnDisable()
        {
            base.OnDisable();
            Logging.Write("[RAFLevel] Disabled");
        }

    }
}
 
Yup, should be able to just open it in notepad and replace it. It even has settings that let you change how often you execute the script.

Code:
using Styx.Common;
using Styx.Plugins;
using Styx.WoWInternals;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GrantRAFLevels
{
    public class Plugin : HBPlugin
    {
        public override string Author { get { return "SpeshulK926"; } }
        public override string Name { get { return "Grant RAF Levels!"; } }
        public override Version Version { get { return new Version(1, 0); } }
        public override string ButtonText { get { return "Settings..."; } }
        public override bool WantButton { get { return true; } }
        public override void OnButtonPress()
        {
            SettingsForm frm = new SettingsForm();
            frm.ShowDialog();
            GRLSettings.Instance.Save();
        }
        public Styx.WoWInternals.WoWObjects.LocalPlayer Me { get { return Styx.StyxWoW.Me; } }
        private Stopwatch _timer = new Stopwatch();
        public override void Pulse()
        {
            if (!_timer.IsRunning || _timer.ElapsedMilliseconds > (GRLSettings.Instance.TimerInMinutes * 1000 * 60))
            {
                Logging.Write("[RAFLevel] Attempting to grant levels");

                Lua.DoString("/reload");
                _timer.Restart();
            }
        }
        public override void OnEnable()
        {
            base.OnEnable();
            Logging.Write("[RAFLevel] Enabled");
        }
        public override void OnDisable()
        {
            base.OnDisable();
            Logging.Write("[RAFLevel] Disabled");
        }

    }
}

yeah it looks exactly like this. but sadly it doenst work, the log says "[RAFLevel] Attempting to grant levels" and just nothing happens, it doesnt stop the bot from running but its just like that it works like before.
 
yeah it looks exactly like this. but sadly it doenst work, the log says "[RAFLevel] Attempting to grant levels" and just nothing happens, it doesnt stop the bot from running but its just like that it works like before.
Sounds like another issue then. Maybe not related to the plugin if 2 different ones both don't work.
 
Sounds like another issue then. Maybe not related to the plugin if 2 different ones both don't work.

i did try running only this plugin, did delete all caches in wow/battle.net/and honorbuddy folders, tried it with diffrent profiles and bots. sadly nothing. i tryied with 1 min timer, 3 min timer, 5 min timer, 10 min timer. all didnt work. i wanted to be sure i did try everything.
 
Whipped together this really quick for you, I did not test in game, but it should work. It will use the command /reload randomly every 20 to 30 minutes. Create a folder in your plugins called Slash Reload and place the attached .cs in it and enable it in HB.

Thread.Sleep should not be used. It locks the thread for the duration. You're telling it to lock everything up and not return for 20-30 minutes.
See my signature quote from CJ.

This one: https://www.thebuddyforum.com/honor...equests/274237-lf-raf-grant-level-plugin.html does something very similar to that. You can just change the inside of it from:

Code:
Lua.DoString("/reload");

Stopwatch will handle this, however you can't just run a slash command from a Lua.DoString.

Use:
Code:
Lua.DoString("RunMacroText(\"/reload\")");
 
Thread.Sleep should not be used. It locks the thread for the duration. You're telling it to lock everything up and not return for 20-30 minutes.
See my signature quote from CJ.



Stopwatch will handle this, however you can't just run a slash command from a Lua.DoString.

Use:
Code:
Lua.DoString("RunMacroText(\"/reload\")");

There u go. I've never tried to run a slash command like that. I only ever ran lua code from it, so I didn't know. I still don't really understand how /reload is going to fix anything, but to each their own.
 
I don't really get the need for this plugin myself either. :p

Also, most of the time you can call the wow lua functions directly instead of macros. For this it would be API ReloadUI | WoWWiki | Fandom powered by Wikia
Code:
Lua.DoString("ReloadUI()");

thats why i ask if it would be possible/easier to make a restart HB plugin that restarts HB after time X. cause its not the UI reload that helps, its the HB reset by pressing stop and start again often.
 
Did you try HB Relog?

Yeah but its not just how i want it to work for a couple of reasons. its not problem if its just not possible to make a HB reset plugin in. i just wanted to know it its possible to make with low effort. thanks anyway for all your help and discussion guys!
 
Restart HB every 30 minutes and if u want to change the time u can just change this line if (_timer.ElapsedMilliseconds < 1000 * 10 * 30) 30 is 30 minutes ( i know u can use TimeSpan.FromMinutes(1); but sometimes it does not work i have no idea why ). This only work for questing botbase only. i can add for other botbase as well.
 

Attachments

Back
Top