Jump to content

Shortcut to add current position to blacklisted zones?


Kratzbuerste
 Share

Recommended Posts

Hello, try this plugin (shortcut is Alt-R) Main.cs:

using System.Windows.Forms;
using robotManager.Helpful;
using wManager.Plugin;
using wManager.Wow.Helpers;
using wManager.Wow.ObjectManager;

public class Main : IPlugin
{
    private KeyboardHook _hookKeybindings = new KeyboardHook();
    public void Initialize()
    {
        _hookKeybindings.KeyPressed += HookKeybindings_KeyPressed;
        _hookKeybindings.RegisterHotKey(ModifierKeys.Alt, Keys.R);
    }

    private void HookKeybindings_KeyPressed(object sender, KeyPressedEventArgs e)
    {
        if (Conditions.InGameAndConnectedAndProductStarted)
            wManager.wManagerSetting.AddBlackListZone(ObjectManager.Me.Position, 20);
    }

    public void Dispose()
    {
        _hookKeybindings.Dispose();
    }

    public void Settings()
    {
    }
}

Line 13 you can replace "Alt" by "Control" (ctrl), and "R" by another keyboard key.

Line 19 you can replace 20 by new blacklist radius.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...