Decided to make a joke plugin. automatically teabags nearby dead players if not in combat
also it will do a /point /lofl emote while running towards target
for some reason I couldn't upload so you'll have to make a new text file called AutoTeabag.cs copy and paste the code below into it and save it in your plugins folder
also it will do a /point /lofl emote while running towards target
for some reason I couldn't upload so you'll have to make a new text file called AutoTeabag.cs copy and paste the code below into it and save it in your plugins folder
Code:
using System;
using System.Collections.Generic;
using System.Threading;
using Styx;
using Styx.Plugins.PluginClass;
using Styx.Logic.BehaviorTree;
using Styx.Helpers;
using Styx.WoWInternals;
using Styx.Logic.Pathing;
using Styx.Logic.Combat;
using Styx.WoWInternals.WoWObjects;
namespace Spankee
{
class AutoTeaBag : HBPlugin
{
public override string Name { get { return "AutoTeaBag"; } }
public override string Author { get { return "spankee"; } }
private readonly Version _version = new Version(1, 0);
public override Version Version { get { return _version; } }
//public override string ButtonText { get { return "AutoTeaBag"; } }
public override bool WantButton { get { return false; } }
public override void OnButtonPress()
{
}
public override void Pulse()
{
ObjectManager.Update();
List<WoWPlayer> unitList = ObjectManager.GetObjectsOfType<WoWPlayer>();
foreach (WoWPlayer p in unitList)
{
if (p.Dead && !ObjectManager.Me.Combat && !ObjectManager.Me.IsGhost && ObjectManager.Me.Dead)
{
p.Target();
Thread.Sleep(1000);
Navigator.MoveTo(p.Location);
Lua.DoString("DoEmote(\"point\")");
Thread.Sleep(1000);
Lua.DoString("DoEmote(\"rofl\")");
while (p.Dead && !ObjectManager.Me.Combat &&
ObjectManager.Me.Location.Distance(p.Location) > 3)
{
Navigator.MoveTo(p.Location);
Thread.Sleep(100);
}
for (int i = 0; i < 10; i++)
{
if (ObjectManager.Me.Combat || ObjectManager.Me.CurrentTarget != null)
break;
WoWMovement.Move(WoWMovement.MovementDirection.Descend);
Thread.Sleep(1000);
WoWMovement.Move(WoWMovement.MovementDirection.JumpAscend);
Thread.Sleep(1000);
}
}
}
}
}
}
Last edited: