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

Exit Timer (HB1 + HB2)

khurune

Member
Joined
Jan 15, 2010
Messages
836
Reaction score
4
This is the old Exit Timer for HB1, And also an dirty updated version for HB2 (Both Tested)

Only Version 2 Will Hearthstone, And will only run on HBv2


Credits
Orignal Coding credits to MaiN for an awesome plugin and writing the orignal.
Also much credits to fpsware who helped me get Hearthstone working properly lol, (I was getting there, just slowly :P)

What it does.
Version1) HB1 Only, GUI, Timer only.

Version2) HBv2 Only, GUI, Timer And Hearth on exit.

Version two will use hearthstone on exit, and wait 15seconds before closing wow. Reason I added such a long wait is for those (like me) That run a few addons even while botting, this allows for a slight load delay.

Why did I update this, and add Hearthstone?
Well last I checked you get more rested at an inn, so erm, more rested = more exp = faster botting ? dur.

Just place into your plugins folder, Start up the bot, Goto plugins tab, select Exit Timer, Enable it, Then click open and set the time you want in minutes, Then click Ok. Thats it, simplez.
 

Attachments

Last edited by a moderator:
Didn't know one existed so I dirty made this one too. Figured this is a good place to put it. [hb1]

Code:
namespace TimerLog
{
/*
 * TimerLog v1.0
 *
 * Edit logout time: line 33 before you enable plugin
 *
 */

using Logic;
using System;
using Helpers;
using Logic.Pathing;
using System.Threading;
using System.Diagnostics;
using Logic.Common.Combat;
using Object_Dumping_Enumeration;
using CustomCombat.CombatInterface;
using Memory_Read_Write_Inject.Lua;
using Object_Dumping_Enumeration.WoWObjects;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
using System.Xml.Linq;
using System.Linq;
using System.Net;
using System.Windows.Forms;
using System.Drawing;
using Styx.Plugins.PluginClass;

  
    public class AutoLog : HBPlugin
    {
        static int logOutAfterMinutes = 1;
        bool useHearth = true;


        int logOutAfterMS = logOutAfterMinutes * 60000;
        private static Stopwatch timer = new Stopwatch();
        
        public override void Pulse()
        {
            //Logging.Write("Pulse");
            if (!timer.IsRunning)
            {
                //Logging.Write("Timer Start");
                timer.Reset();
                timer.Start();
            }
            if (timer.ElapsedMilliseconds > logOutAfterMS && !ObjectManager.Me.Dead && !ObjectManager.Me.Combat)
            {
                //Logging.Write("Timer Elapsed");
                if (useHearth)
                {
                    Logging.Write("Using Hearthstone");
                    Lua.DoString("UseItemByName(\"Hearthstone\")");
                    Thread.Sleep(20000);
                }
                if (!ObjectManager.Me.Dead && !ObjectManager.Me.Combat)
                {
                    timer.Stop();
                    Logging.Write("Quitting WoW!");
                    Lua.DoString("ForceQuit()");
                    System.Diagnostics.Process.Start("Shutdown", "-s -t 10");
                }
            }
        }

        public override string Name { get { return "TimerLog"; } }

        public override string Author { get { return "ski"; } }

        public override Version Version { get { return new Version(1, 0); } }

        public override bool WantButton { get { return false; } }

        public override void OnButtonPress()
        {
            if (timer.IsRunning)
            {
                timer.Stop();
                timer.Reset();
            }
        }

    }
}
 

Attachments

tbh, all i done was made it work for hbv2, its more useful than most people think, if i overnight bot, I like to logout before peak time kicks in :) and this does just that, So real thanks is to MaiN.
 
Ive had this for HB1 from an OLD release and used it all the time.

Happy to see someone updated it for HB 2 Thank you!
 
Updated HBv2 version, Read first post. :)
 
Last edited:
Works on HB 1.9 ?


-----------------------



Checked... v2 works fine.
 
Last edited:
Whould be nice if this plug-in featured "Quit on max honor". Really nice as it is though! Good work to the developers of this one!
 
Very nice! Thank you for the awesome plugin update. I was looking for this. +rep
 
Haven't test on current stable version due to net issues. Hb1 version does not support hearthing. However version 2 may work on 1.9. Once i get my router sorted i will see if there are any issues,
 
if anyone wants to kick it up a notch. add a check for hostile mobs, so you dont end up loging out right next to a Gnoll Camp.
 
What version of hb is everyone having issues with. Logs aswell please
 
Didn't work for me with latest stable. (HB2) Set it for 5 hour timer. wake up my guys flying in the sky straight up..... he didnt hearth or log out =\
 
Last edited:
Should consider adding an option to shutdown after 75k honor has been achieved.
 
It works as as writen.... but from what I can tell, it doesn't check to see if I'm in combat when it tries to log. So the next morning everything is shut down. Which is great. But I am usually a ghost when I log back in.

From the one time I was able to catch it in action it just tries to hearth during combat and then gets interrupted... then dies. It then closes everything. A few times when the timer hit when I was just traveling and it worked perfectly. Even the hearthing.
 
I've used this a few times, and it works well as long as not in combat (as stated above).

It would be nice if the plugin could give you an option to not hearth and log in place (for HB2). What would really be nice if the plugin could arrange for moving to the nearest mailbox then log. But I'm sure that's asking quite a lot. :)

Thanks again for making such a useful addin!

cheers,
CJ
 
not sure if its the plug in or the new hb release but he won't hearth now worked fine up to today.
 
Could this be made to shut off my computer, too?

edit: tested. this doesn't even work anymore. Doesn't shut down HonorBuddy and if you leave the plugin window open, it'll just crash it.
 
Last edited:
Back
Top