Vous pouvez également essayer cette version (pour que wrobot depop la monture avant de cliquer):
using System.Threading;
using System.Windows.Forms;
using wManager.Wow.Bot.Tasks;
using wManager.Wow.Enums;
using wManager.Wow.Helpers;
using wManager.Wow.ObjectManager;
using Timer = robotManager.Helpful.Timer;
public class Main : wManager.Plugin.IPlugin
{
public void Initialize()
{
wManager.Events.InteractEvents.OnInteractPulse += (target, cancelable) =>
{
try
{
if (!ObjectManager.Me.IsMounted && !ObjectManager.Me.GetMove)
return;
var o = ObjectManager.GetObjectByGuid(target);
if (o.IsValid && o.Type == WoWObjectType.GameObject)
{
MountTask.DismountMount();
Thread.Sleep(Usefuls.Latency + 500);
var t = new Timer(2000 + Usefuls.Latency);
while (!t.IsReady && (ObjectManager.Me.IsMounted || ObjectManager.Me.GetMove))
{
Thread.Sleep(50);
}
}
}
catch { }
};
}
public void Dispose()
{
}
public void Settings()
{
MessageBox.Show("No settings for this plugin.");
}
}