zatvorgt 5 Posted April 24, 2019 Share Posted April 24, 2019 Hello, after next 2-3 updates bot bad interact to npc sometimes with code example: <QuestsSorted Action="RunCode" NameClass="wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(new Vector3(-8867.79, 673.673, 97.90384), 6740, 1, false);" /> in warmane max distance to interract 5.5 meters , warmane all ok. But in another server max distance to interract npc is 4 meters .... and he stuck again and again in 4.5 meters of npc....." you need to be closer to interact with that target " Please take interract distance to npc max 3 meters for good working on all servers Link to comment https://wrobot.eu/forums/topic/11112-bad-dinterract-npc-distance/ Share on other sites More sharing options...
sith500 13 Posted April 24, 2019 Share Posted April 24, 2019 if (GoToTask.ToPosition(Vector3 position, float precision, bool skipIfCannotMakePath, BooleanDelegate conditionExit) Interact.InteractGameObject(ulong baseAddress, bool stopMove, bool skipWaitTime, bool leftClick); For example: var mob = ObjectManager.GetNearestWoWUnit(ObjectManager.GetWoWUnitByEntry(12345)); if (GoToTask.ToPosition(new Vector3(0, 0, 0, "None"), 3.5f)) { Interact.InteractGameObject(mob.GetBaseAddress, true); // your actions } Where "3.5f" - distance to interract More information: Link to comment https://wrobot.eu/forums/topic/11112-bad-dinterract-npc-distance/#findComment-53017 Share on other sites More sharing options...
zatvorgt 5 Posted April 24, 2019 Author Share Posted April 24, 2019 33 minutes ago, sith500 said: if (GoToTask.ToPosition(Vector3 position, float precision, bool skipIfCannotMakePath, BooleanDelegate conditionExit) Interact.InteractGameObject(ulong baseAddress, bool stopMove, bool skipWaitTime, bool leftClick); For example: var mob = ObjectManager.GetNearestWoWUnit(ObjectManager.GetWoWUnitByEntry(12345)); if (GoToTask.ToPosition(new Vector3(0, 0, 0, "None"), 2f)) { Interact.InteractGameObject(mob.GetBaseAddress, true); // your actions } Where "2f" - distance to interractMore information: thanks but is hard, this problem starts after 2-3 lasts updates....maybe return system of interract old?* Link to comment https://wrobot.eu/forums/topic/11112-bad-dinterract-npc-distance/#findComment-53021 Share on other sites More sharing options...
sith500 13 Posted April 24, 2019 Share Posted April 24, 2019 Write all your code that you run through "RunCode" Link to comment https://wrobot.eu/forums/topic/11112-bad-dinterract-npc-distance/#findComment-53022 Share on other sites More sharing options...
zatvorgt 5 Posted April 24, 2019 Author Share Posted April 24, 2019 4 minutes ago, sith500 said: Write all your code that you run through "RunCode" <QuestsSorted Action="RunCode" NameClass="wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(new Vector3(-8847.28, 569.955, 94.68758), 4981, 1, false);" /> <QuestsSorted Action="Wait" NameClass="2000" /> <QuestsSorted Action="RunLuaCode" NameClass="BuyMerchantItem (5, 8)" /> or standart gototown , same problem Link to comment https://wrobot.eu/forums/topic/11112-bad-dinterract-npc-distance/#findComment-53023 Share on other sites More sharing options...
sith500 13 Posted April 24, 2019 Share Posted April 24, 2019 34 minutes ago, zatvorgt said: 1, After interaction, you need to click on the button to open the trading window? Try this: var mob = ObjectManager.GetNearestWoWUnit(ObjectManager.GetWoWUnitByEntry(4981)); if (GoToTask.ToPosition(new Vector3(-8847.28, 569.955, 94.68758), 2f) { Interact.InteractGameObject(mob.GetBaseAddress, true); Thread.Sleep(Usefuls.Latency + 500); Lua.LuaDoString("GossipTitleButton1:Click()"); Thread.Sleep(Usefuls.Latency + 1000); Lua.LuaDoString("BuyMerchantItem(5, 8)"); } I recommend doing this step go like "pulse", not "Runcode". Tell me the id of your item. Link to comment https://wrobot.eu/forums/topic/11112-bad-dinterract-npc-distance/#findComment-53024 Share on other sites More sharing options...
sith500 13 Posted April 24, 2019 Share Posted April 24, 2019 upd: Updated code, sorry Link to comment https://wrobot.eu/forums/topic/11112-bad-dinterract-npc-distance/#findComment-53025 Share on other sites More sharing options...
zatvorgt 5 Posted April 25, 2019 Author Share Posted April 25, 2019 16 hours ago, sith500 said: upd: Updated code, sorry thanks,will test Link to comment https://wrobot.eu/forums/topic/11112-bad-dinterract-npc-distance/#findComment-53074 Share on other sites More sharing options...
zatvorgt 5 Posted May 13, 2019 Author Share Posted May 13, 2019 any help for this?need add option in wrobot to change interract deistance with npc Link to comment https://wrobot.eu/forums/topic/11112-bad-dinterract-npc-distance/#findComment-53572 Share on other sites More sharing options...
Droidz 2738 Posted May 14, 2019 Share Posted May 14, 2019 Hello, wait next update and use this: wManager.Wow.ObjectManager.WoWUnit.MaxInteractDistance = 50.0f; wManager.Wow.ObjectManager.WoWUnit.MinInteractDistance = 4.3f; TheSmokie 1 Link to comment https://wrobot.eu/forums/topic/11112-bad-dinterract-npc-distance/#findComment-53602 Share on other sites More sharing options...
zatvorgt 5 Posted May 14, 2019 Author Share Posted May 14, 2019 1 minute ago, Droidz said: Hello, wait next update and use this: wManager.Wow.ObjectManager.WoWUnit.MaxInteractDistance = 50.0f; wManager.Wow.ObjectManager.WoWUnit.MinInteractDistance = 4.3f; Thank you much!!!!!!! Link to comment https://wrobot.eu/forums/topic/11112-bad-dinterract-npc-distance/#findComment-53603 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