Jump to content

Recommended Posts

Hello have the problem that afther a fight the bot will click on the dead mob open the loot window but didnt loot.

The server have "Auto loot" (Quick loot) without pressing Shift + Mouse 

is it possible that the bot didnt use quickloot i think the problem ist if the server have quickloot and the bot use it too that he didnt loot.

 

i just need to know how can i change the bot from quick loot to normal loot

 

Link to comment
https://wrobot.eu/forums/topic/15528-wrobot-didnt-loot-vanilla/
Share on other sites

Hello, try this plugin :

using wManager.Wow.Enums;
using wManager.Wow.Helpers;
using wManager.Wow.ObjectManager;

public class Main : wManager.Plugin.IPlugin
{
    public void Initialize()
    {
        var stopWatch = new System.Diagnostics.Stopwatch();
        wManager.Events.InteractEvents.OnInteractPulse += (target, cancelable) =>
        {
            if (stopWatch.ElapsedMilliseconds < 1000
                && stopWatch.IsRunning)
            {
                return;
            }

            var obj = ObjectManager.GetObjectByGuid(target);
            if (obj.IsValid &&
                (obj.Type == WoWObjectType.Unit || obj.Type == WoWObjectType.GameObject))
            {
                var isLootable = false;
                if (obj.Type == WoWObjectType.Unit)
                {
                    var unit = new WoWUnit(obj.GetBaseAddress);
                    isLootable = unit.IsLootable;
                }
                else if (obj.Type == WoWObjectType.GameObject)
                {
                    isLootable = true;
                }

                if (isLootable)
                {
                    stopWatch.Restart();
                    Interact.InteractGameObject(obj.GetBaseAddress);
                    cancelable.Cancel = true;
                }
            }
        };
    }

    public void Dispose()
    {
    }

    public void Settings()
    {
    }
}



 

Main.cs

Thanks i try it in 1 hour If im at Home, 

 

The next Problem is they didnt use Skills. They only Run to the target and Meele Auto Attack in the log would be the skills. Log say using Skil XY (XY= Any skill Name) and ingame the only Auto Attack If we can Solve this too im rly fine ☺️💪

9 hours ago, Droidz said:

Hello, try this plugin :

using wManager.Wow.Enums;
using wManager.Wow.Helpers;
using wManager.Wow.ObjectManager;

public class Main : wManager.Plugin.IPlugin
{
    public void Initialize()
    {
        var stopWatch = new System.Diagnostics.Stopwatch();
        wManager.Events.InteractEvents.OnInteractPulse += (target, cancelable) =>
        {
            if (stopWatch.ElapsedMilliseconds < 1000
                && stopWatch.IsRunning)
            {
                return;
            }

            var obj = ObjectManager.GetObjectByGuid(target);
            if (obj.IsValid &&
                (obj.Type == WoWObjectType.Unit || obj.Type == WoWObjectType.GameObject))
            {
                var isLootable = false;
                if (obj.Type == WoWObjectType.Unit)
                {
                    var unit = new WoWUnit(obj.GetBaseAddress);
                    isLootable = unit.IsLootable;
                }
                else if (obj.Type == WoWObjectType.GameObject)
                {
                    isLootable = true;
                }

                if (isLootable)
                {
                    stopWatch.Restart();
                    Interact.InteractGameObject(obj.GetBaseAddress);
                    cancelable.Cancel = true;
                }
            }
        };
    }

    public void Dispose()
    {
    }

    public void Settings()
    {
    }
}



 

Main.cs 1.4 kB · 0 downloads

WoW you are a HERO !

that works they loot all items ❤️ love you 😄 and if you can solve the skill problem you would be insane 🙂

 

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