Jump to content

Bad dinterract npc distance


zatvorgt

Recommended Posts

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
Share on other sites

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
Share on other sites

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 interract


More information:

 

thanks but is hard, this problem starts after 2-3 lasts updates....maybe return system of interract old?*

Link to comment
Share on other sites

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
Share on other sites

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
Share on other sites

  • 3 weeks later...
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
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...