Jump to content

Mount/Dismount


Recommended Posts

Use this plugin: Main.cs

using wManager.Wow.Enums;
using wManager.Wow.ObjectManager;
using wManager.Wow.Bot.Tasks;

public class Main : wManager.Plugin.IPlugin
{
    public void Initialize()
    {

        wManager.Events.InteractEvents.OnInteractPulse += (target, cancelable) =>
        {
            try
            {
                if (ObjectManager.Me.IsMounted)
                {
                    var o = ObjectManager.GetObjectByGuid(target) as WoWUnit;
                    if (o != null && o.IsValid && o.Type == WoWObjectType.Unit && o.IsFlightMaster)
                        MountTask.DismountMount();
                }
            } catch { }
        };
    }

    public void Dispose()
    {
    }

    public void Settings()
    {
    }
}

 

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