Jump to content

Dismount on right clicking a mob / object


Wakka

Recommended Posts

I have a problem with the server that I play on. When I right click mobs / objects, it says "you are mounted" There is no solution I did not try. I want a script or something that would dismount me on clicking the object and continue with clicking it for available profiles, so the object or mob would not have to be clicked twice. Thank you.

Link to comment
Share on other sites

Hello, try plugin like:

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)
                {
                    MountTask.DismountMount();
                }
            } catch { }
        };
    }

    public void Dispose()
    {
    }

    public void Settings()
    {
    }
}

 

Link to comment
Share on other sites

  • 1 year later...

hey,

        robotManager.Helpful.Var.SetVar("DismountRightClick", true);
        wManager.Events.InteractEvents.OnInteractPulse += (target, cancelable) =>
        {
            try
            {
                if (robotManager.Helpful.Var.GetVar<bool>("DismountRightClick") && ObjectManager.Me.IsMounted)
                {
                    MountTask.DismountMount();
                }
            }
            catch { }
        };

        // .... disable
        robotManager.Helpful.Var.SetVar("DismountRightClick", false);
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
×
×
  • Create New...