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

Key to deactivate TankLeader

Gigaflat

New Member
Joined
Jun 17, 2014
Messages
201
Reaction score
2
Key to deactivate TankLeader (SOLVED)

Is there a key to deactivate TankLeader ?

The PauseKeys.cs plugin works perfectly but, after some seconds it re-enables TankLeader. This can be very annoying when I am positioning a tank ready to take a shot.

I would like to be able to deactivate TL indefinitely, until I press that key again to activate TL again.

EDIT: SOLVED! Plugin available (see page 2)
 
Last edited:
Aevitos, you wrote this plugin to disengage the Aimbot (see below).

Is there a command to disengage the Navigation?
(Sometimes I want to take control of my tank and lead it into battle. If I press the A, D, W, S keys it pauses temporarily the navigation but, it resumes a few sec later and ruins my aim....

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

namespace Scylla.CommonBot.Plugins.AimbotPause
{
public class AimbotPause : IPlugin
{
public bool Equals(IPlugin other)
{
return Name == other.Name && Version == other.Version;
}

public string Author { get { return "aevitas"; } }
public Version Version { get { return new Version(1, 0); } }
public string Name { get { return "Aimbot Pause"; } }
public string Description { get { return "pauses the bot when you press the Tilde (~) on the keyboard"; } }
public Window DisplayWindow { get { return null; } }
public void OnPulse()
{
}

public void OnInitialize()
{
Hotkeys.RegisterHotkey("Aimbot pause key", BotMain.ResetLastHardwareAction, Keys.Oemtilde);
}

public void OnShutdown()
{
}

public void OnEnabled()
{
}

public void OnDisabled()
{
}
}
}
 
You can set BotMain.IsPausedForExecution to true to pause the bot for as long as you want, then set it to false when you want the bot to run again. You can use virtually the same code as above to achieve that, and select your own hotkeys. :)
 
You mean like this?

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

namespace Scylla.CommonBot.Plugins.TankLeaderPause
{
public class TankLeaderPause : IPlugin
{
public bool Equals(IPlugin other)
{
return Name == other.Name && Version == other.Version;
}

public string Author { get { return "Gigaflat helped by Aevitas"; } }
public Version Version { get { return new Version(1, 0); } }
public string Name { get { return "TankLeader Pause"; } }
public string Description { get { return "Pauses TL when you press the Tilde (~) on the keyboard. Do NOT activate at the same time as AimBotPause"; } }
public Window DisplayWindow { get { return null; } }
public void OnPulse()
{
}

public void OnInitialize()
{
Hotkeys.RegisterHotkey("TankLeader pause key", BotMain.IsPausedForExecution , Keys.Oemtilde);
}

public void OnShutdown()
{
}

public void OnEnabled()
{
}

public void OnDisabled()
{
}
}
}


Thanks for the quick reply :)
 
c'mon guys,

there is nobody here who understands two lines of this program code?????



????
 
Almost

Try like this and tell what happens

Code:
public void OnInitialize()
 {
Hotkeys.RegisterHotkey("TankLeader pause key", BotMain.IsPausedForExecution(true) , Keys.[B]KeyToPause[/B]);
Hotkeys.RegisterHotkey("TankLeader run key", BotMain.IsPausedForExecution(false) , Keys.[B]KeyToRun[/B]);
 }

*replace bold text with keys you want to use
 
Last edited:
Thanks for the try Kurt!

It did not work though :-(
Compiler Error: s:\World of Tanks add ons\WOT MODS\TankLeader\TankLeader 2.0.327.195\Plugins\X_TankLeaderPause\TankLeaderPause.cs(27,56) : error CS1955: Non-invocable member 'Scylla.CommonBot.BotMain.IsPausedForExecution' cannot be used like a method.
Compiler Error: s:\World of Tanks add ons\WOT MODS\TankLeader\TankLeader 2.0.327.195\Plugins\X_TankLeaderPause\TankLeaderPause.cs(28,54) : error CS1955: Non-invocable member 'Scylla.CommonBot.BotMain.IsPausedForExecution' cannot be used like a method.
 
:p

Don´t worry, it was only harcoding.

I will give a try this weekend and code the entire class with its own methods to pass parameters to Hotkeys.RegisterHotkey()

Which compiler are you using for the tests? MSVS with references or is it debug log from TL console output?

It could look like something similar to this

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 "BotNav"; } }
        public string Description { get { return "BotNav Management."; } }
        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()
		{
			BotMain.IsPausedForExecution = true;
		}
		public void TurnOnBotNav()
		{
			BotMain.IsPausedForExecution = false;
		}
    }
}
 
Last edited:
Many thanks in advance Kurt ! :-)

I would love to have this function (pause TankLeader and later resume) because I tend to leave the game playing on my side monitor (I have three monitors on my PC) and when I see the situation becoming dangerous, I take over manually.
The current solution "PauseKeys" does not help me that much because it automatically regains control after some seconds thus ruining my cover or aim.


What I posted was the debug log from TL console output.

RGDS
 
Tested; It works like this.

I've only added two more lines to show in console Bot State

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 "BotNav"; } }
        public string Description { get { return "BotNav Management."; } }
        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;
		}
    }
}

Regards
 
Kurt, you can not imagine how happy I am with this little plugin of yours! :D
 
Glad to hear that, enjoy it then.

I'm considering not to buy bot; actual IA and poor support and contributions/help to develop and make plugins...well it's really difficult not to be reported after tier 5, so it will become useless fast
 
I fully understand your point.

For me it is different: I have over 40Tier 9-10 tanks in the garage and have hardly time to get them out for the 2x first victory of the day. On average I have to play two games to get one win so it makes some 60 battles... And Tier 9-10 makes a big loss of money, which I have to recover playing my premium Tier 8 tanks....another 10-20 battles.

Running TL at tier 4 gives me on average 130K credits per hour. So, within a few hours it has made enough money so that I can enjoy the evening driving my Tier 10 tanks spreading love and gold ammo :cool:

PS. Usually I am present when TL plays. That's why I wanted so much this plug in so that I can take over when I see the opportunity...
 
That is the question, I'm considering it, advantages and problems... it lacks of many important things but it's good as a tool to make credits and free xp with low tiers....

WOT 9.2 is about to come, maybe I will wait till then and see what happens, so I'm afraid no more test for me with plugins for the moment
 
Back
Top