Gargaroth95 1 Posted June 18, 2019 Share Posted June 18, 2019 Hello community, can anyone tell me, if it's possible to rightclick on a specific position? ClickOnTerrain.Pulse(new Vector3(1738.88, -1184.93, 59.2689)); --> But instead a rightclick? Thank you! Link to comment https://wrobot.eu/forums/topic/11411-click-on-terrain-rightclick/ Share on other sites More sharing options...
TheSmokie 242 Posted June 18, 2019 Share Posted June 18, 2019 Why? Link to comment https://wrobot.eu/forums/topic/11411-click-on-terrain-rightclick/#findComment-54604 Share on other sites More sharing options...
Gargaroth95 1 Posted June 18, 2019 Author Share Posted June 18, 2019 There is a buggy Questgiver on my server. The Bot does not interact with him. Link to comment https://wrobot.eu/forums/topic/11411-click-on-terrain-rightclick/#findComment-54605 Share on other sites More sharing options...
Andoido 75 Posted June 18, 2019 Share Posted June 18, 2019 (edited) You can do a few different ways my friend.. Heres a few examples. Prepare yourself for an Above and Beyond answer... Your best bet is to use this code i made for several quests requireing the same exact thing - Using harvest is a good option when wanting to click on stuff, otherwise you need to add an objectid and itemid if your using an item. // 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); } // This will search the area for a specific Item or w.e. and click on the ground to interact with it. WoWGameObject andoido = wManager.Wow.ObjectManager.ObjectManager.GetObjectWoWGameObject().FirstOrDefault(i => i.Entry == 148917); if (andoido != null) { wManager.Wow.Helpers.Interact.InteractGameObject(andoido.GetBaseAddress); } This one will interact with NPC who is Dead on the ground. Can be used in situations for clicking and what not - If you wish to cast a spell, you can add an uint spellId. wManager.Events.InteractEvents.OnInteractPulse += (target, cancelable) => { var t = wManager.Wow.ObjectManager.ObjectManager.GetObjectByGuid(target); if (!t.IsValid) return; var e = t.Entry; if (e == 21859 || e == 21846) { System.Threading.Tasks.Task.Run(delegate { System.Threading.Thread.Sleep(wManager.Wow.Helpers.Usefuls.Latency + 100); wManager.Wow.Helpers.ClickOnTerrain.Item(31769, t.Position); }); } }; And lastely, this code you can specify wether or not you have an item < or > than. (change latency to like 3,000 or something. // RunCode - Interact with ObjectID - Gather Object RunCode var pos = new Vector3(199.9151f, 3472.976f, 63.24443f); int objectId = 184115 ; wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithGameObject(pos, objectId); Thread.Sleep(Usefuls.Latency + 10000); if(ItemsManager.GetItemCountById(23339) < 1) { wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithGameObject(pos, objectId); Thread.Sleep(Usefuls.Latency + 10000); } Edited June 18, 2019 by Andoido Link to comment https://wrobot.eu/forums/topic/11411-click-on-terrain-rightclick/#findComment-54607 Share on other sites More sharing options...
Gargaroth95 1 Posted June 18, 2019 Author Share Posted June 18, 2019 Thank you really much! I will test it! Link to comment https://wrobot.eu/forums/topic/11411-click-on-terrain-rightclick/#findComment-54609 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