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()
{
}
}