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

Key to temporarily deactivate TankLeader

Gigaflat

New Member
Joined
Jun 17, 2014
Messages
201
Reaction score
2
Original post is here
https://www.thebuddyforum.com/tankl...r-forum/168361-key-deactivate-tankleader.html
Thanks to Kurt Knispel for writing the plugin.

Code:
using System;
using System.Windows;
using System.Windows.Forms;
using Scylla.Common;
using Scylla.Common.Plugins;

namespace Scylla.CommonBot.Plugins
{

    public class BotNav : IPlugin
    {
        public bool Equals(IPlugin other)
        {
            return Name == other.Name && Version == other.Version;
        }

        public string Author { get { return "Kurt Knispel"; } }
        public Version Version { get { return new Version(1, 0); } }
        public string Name { get { return "TankLeaderPause"; } }
        public string Description { get { return "Pauses the BOT when you press P. Continues when you press O "; } }
        public Window DisplayWindow { get { return null; } }

        public void OnPulse()
        {
        }

        public void OnInitialize()
        {
            
        }

        public void OnShutdown()
        {
        }

        public void OnEnabled()
        {
			Hotkeys.RegisterHotkey("TL pause key", TurnOffBotNav , Keys.P);
			Hotkeys.RegisterHotkey("TL run key", TurnOnBotNav , Keys.O);

            Logging.Write("BotNav plugin enabled.");
        }

        public void OnDisabled()
        {
			Hotkeys.RemoveHotkey("TL pause key");
			Hotkeys.RemoveHotkey("TL run key");

            Logging.Write("BotNav plugin disabled.");
        }
		
		public void TurnOffBotNav()
		{
			Logging.Write("BotNav PAUSED.");
			BotMain.IsPausedForExecution = true;
		}
		public void TurnOnBotNav()
		{
			Logging.Write("BotNav OPERATIVE.");
			BotMain.IsPausedForExecution = false;
		}
    }
}
 

Attachments

where i get a key? i download the program, its always paying or surveys, can u please help me one time ?
 
Back
Top