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

LF Auto log out plugin

NEwboy

New Member
Joined
Aug 31, 2010
Messages
126
Reaction score
0
Basically i want to start botting a few toons i have in a guild (risky i know, but thats me!) but i only want to do it over ngiht while the guild is quiet, so im looking for a plugin that will log me out at a certain time or after a certain amount of time etc, similar to the feature glider used to have.

anyone know of any?

thanks in advance
 
Here's what I use for my personal use.

Code:
using System;
using Styx.Helpers;
using System.Threading;
using System.Diagnostics;
using System.Collections.Generic;
using Styx.Plugins.PluginClass;
using Styx.Combat.CombatRoutine;
using Styx.WoWInternals;

namespace Styx.Bot.Plugins
{
    public class QuickLogout : HBPlugin
    {
        // Minutes until logout
        const int MINUTES = 0;
        // Hours until logout
        const int HOURS = 6;
        // Logout at specified level
        const int LEVEL = 95;
		
		public WaitTimer _logout;
        public override void Pulse()
        {
            if (_logout == null)
            { 
                _logout = new WaitTimer(new TimeSpan(HOURS, MINUTES, 0)); 
                _logout.Reset(); 
            }
            if (StyxWoW.Me.Level == LEVEL || _logout.IsFinished)
            {
                InactivityDetector.ForceLogout(true);
            }
        }
		
        public override string Name { get { return "Logout"; } }
        public override string Author { get { return "Apoc"; } }
        public override Version Version { get { return new Version(1, 0); } }
        public override bool WantButton { get { return false; } }
    }
}

Self explanatory. No frills, just does what it says.
 
i'm also interested in something like this. Apoc, do i make an xml file of that and throw it into my plugin folder or?
 
Save it to a .cs file in your plugins folder.
 
Back
Top