Jump to content

game object


Miragex01

Recommended Posts

This better

var Object = ObjectManager.GetNearestWoWGameObject(ObjectManager.GetWoWGameObjectByEntry(1234));
// or var Object = ObjectManager.GetObjectWoWGameObject().Where(o => o.IsValid && o.Entry == 1234).OrderBy(o => o.GetDistance).FirstOrDefault();

if (GoToTask.ToPosition(new Vector3(1, 2, 3, "Flying"))) // replace "flying" with "None" to ground move
{
	if (Object != null)
	{
		Interact.InteractGameObject(Object.GetBaseAddress);
		Usefuls.WaitIsCasting();
	}
}


Recommend:

 

Link to comment
Share on other sites

  • 2 weeks later...
// here

// Go to specific location, and Useitem on Object and Harvest + Quest required (RunCode) - me

var pos = new Vector3(-2496.714f, -1632.943f, 91.73521f);
uint itemId = 15710;
int objectId = 177644;
int questId = 6002;

wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithGameObject(pos, objectId);

Thread.Sleep(Usefuls.Latency + 10000);

if (Quest.HasQuest(questId))
{
     ItemsManager.UseItem(itemId);
	wManager.wManagerSetting.CurrentSetting.ListHarvest.Add(177644);
}

// You can also just make a RuNCode to "go to position - or a follow path" and make a RunCode - and just use the Harvest code at the bottom.(enter the object id u want to harvest/clickon)

 

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