Miragex01 0 Posted June 9, 2019 Share Posted June 9, 2019 hi all, tell me lua script or C # code for object interaction. Link to comment https://wrobot.eu/forums/topic/11371-game-object/ Share on other sites More sharing options...
Jensen- 25 Posted June 9, 2019 Share Posted June 9, 2019 wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithGameObject(new Vector3(-1322.357, 4042.352, 116.4912), 181606); Link to comment https://wrobot.eu/forums/topic/11371-game-object/#findComment-54399 Share on other sites More sharing options...
sith500 13 Posted June 9, 2019 Share Posted June 9, 2019 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: Miragex01 1 Link to comment https://wrobot.eu/forums/topic/11371-game-object/#findComment-54400 Share on other sites More sharing options...
Andoido 75 Posted June 18, 2019 Share Posted June 18, 2019 // 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 https://wrobot.eu/forums/topic/11371-game-object/#findComment-54611 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now