With lua code like
local targetExists = UnitExists("target"); TargetNearestEnemy(); FocusUnit("target"); if targetExists then TargetLastTarget(); else ClearTarget(); end
or
TargetNearestEnemy(); FocusUnit("target"); TargetLastTarget();
Hello, use this c# code:
if (wManager.Wow.Helpers.Party.IsInGroup())
{
var o = wManager.Wow.ObjectManager.ObjectManager.GetNearestWoWGameObject(wManager.Wow.ObjectManager.ObjectManager.GetWoWGameObjectByName("Guild Chest"));
if (o.IsValid)
{
wManager.Wow.Helpers.Interact.InteractGameObject(o.GetBaseAddress, true);
}
}
(replace "Guild Chest" by game object name how is appear in game (you can get object name when you put mouse over)
Hello, you can get number of mob kills in "wManager.Statistics.Kills".
The better way is to create plugin. But you can add this code in your custom profile:
int maxKill = 10;
if (wManager.Statistics.Kills >= maxKill &&
Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause &&
!Conditions.IsAttackedAndCannotIgnore)
{
try
{
Memory.WowMemory.Memory.GetProcess().Kill(); // if you want close game
}
catch {}
robotManager.Products.Products.ProductStop();
}
Hello, Not tested, but like this:
int entryIdNpc = 123456;
var path = new List<Vector3>(); // your path
MovementManager.Go(path);
while (MovementManager.InMovement &&
Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause &&
!Conditions.IsAttackedAndCannotIgnore)
{
// Wait follow path
Thread.Sleep(100);
}
MovementManager.StopMove();
if (path[path.Count - 1].DistanceTo(ObjectManager.Me.Position) < 10)
{
// easy way:
GoToTask.ToPositionAndIntecractWithNpc(path[path.Count - 1], entryIdNpc);
// no easy:
/*var u = ObjectManager.GetNearestWoWUnit(ObjectManager.GetWoWUnitByEntry(entryIdNpc));
if (u.IsValid)
{
// can need to go to but I'll not implement it
Interact.InteractGameObject(u.GetBaseAddress);
}*/
}
You get this problem only in this quest on in all quests?
You can try to count number of http://www.wowhead.com/item=122095/crackling-leyworm-core in your bag