Jump to content

Recommended Posts

salut

je suis sur un serveur privé légèrement bugée pour dépecer les mob je doit fair 2 clique gauche est-ce possible de modifier le bot pour qu'il fasse 2 clique gauche sur chaque mob tuer ?

Link to comment
Share on other sites

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
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...