Jump to content

Recommended Posts

Bonjour, essayé ce plugin: SkinDoubleClick.cs

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

public class Main : wManager.Plugin.IPlugin
{
    public void Initialize()
    {
        wManager.Events.InteractEvents.OnInteractPulse += (target, cancelable) =>
        {
            try
            {
                if (Var.GetVar<object>("LastTargetSkin") == (object)target)
                    return;
                Var.SetVar("LastTargetSkin", target);
                var o = ObjectManager.GetObjectByGuid(target);
                if (o.IsValid && o.Type == WoWObjectType.Unit)
                {
                    var u = new WoWUnit(o.GetBaseAddress);
                    if (u.IsValid && u.Skinnable)
                    {
                        new Thread(delegate()
                        {
                            Thread.Sleep(500 + Usefuls.Latency);
                            Interact.InteractGameObject(u.GetBaseAddress);
                        }).Start();
                    }
                }
            } catch {}
        };


    }

    public void Dispose()
    {
    }

    public void Settings()
    {
        MessageBox.Show("No settings for this plugin.");
    }
}

 

Link to comment
https://wrobot.eu/forums/topic/7512-help-legion-grinder/#findComment-34305
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
×
×
  • Create New...