Jensen- 24 Posted February 27, 2018 Share Posted February 27, 2018 got this problem npc is dead and i have to interact with it, bot doesnt find npc and skipping this step going next one, is there a code to wait for the npc until it spawns and then start interacting? Link to comment Share on other sites More sharing options...
BetterSister 367 Posted February 27, 2018 Share Posted February 27, 2018 It may appear as object instead of npc Link to comment Share on other sites More sharing options...
Jensen- 24 Posted February 27, 2018 Author Share Posted February 27, 2018 ok got it, and what if i have to wait for npc to respawn and then interact with it Link to comment Share on other sites More sharing options...
Jensen- 24 Posted February 27, 2018 Author Share Posted February 27, 2018 2 minutes ago, Mike-Mail said: is it for a quester or gather? quester im trying to do http://www.wowhead.com/quest=11794/the-hunt-is-on and sometimes the npc is dead and i need a code to wait for it to respawn Link to comment Share on other sites More sharing options...
Jensen- 24 Posted February 27, 2018 Author Share Posted February 27, 2018 ok ty for help got it working Link to comment Share on other sites More sharing options...
Jensen- 24 Posted February 27, 2018 Author Share Posted February 27, 2018 new problem i need to kill npc loot it then target it and use item on it any advice Thread t = new Thread(() => { uint itemId = 35943; int questId = 12035; while (robotManager.Products.Products.IsStarted) { if (Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause) { if (!Quest.HasQuest(12035)) break; if (ObjectManager.Target.IsValid && ObjectManager.Target.IsDead) { ItemsManager.UseItem(35943); } } Thread.Sleep(1000); } }); t.Start(); tryed this but it doesnt target the body and i cant use the quest item if i dont have a target Link to comment Share on other sites More sharing options...
Matenia 620 Posted February 27, 2018 Share Posted February 27, 2018 You can either use ObjectManager.Me.Target = guid to target the NPC, or use Interact.InteractGameObject(unit.GetBaseAddress) Link to comment Share on other sites More sharing options...
Jensen- 24 Posted February 28, 2018 Author Share Posted February 28, 2018 got it working now i need to click on an object thats in the air wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithGameObject(new Vector3(2614.84, 5266.78, 52.2882), 188163); this doesnt work tryed interacting gather and still have no idea,this quest http://www.wowhead.com/quest=11965/call-to-arms geting ] Cannot make path to the target (Bell Rope), ignore it. Link to comment Share on other sites More sharing options...
Jensen- 24 Posted February 28, 2018 Author Share Posted February 28, 2018 ty for help found a solution Link to comment 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