Thank you @thxgod1\
here @Jensen-, code for you're problem, Also more code you can use that i have made.
if (!Quest.HasQuest(Quest ID) && !(ObjectManager.Me.Position.DistanceTo2D(new Vector3(x, y, z)) < 20))
{
wManager.Wow.Bot.Tasks.GoToTask.ToPosition(new Vector3(x, y, z));
}
var u = ObjectManager.GetNearestWoWUnit(ObjectManager.GetWoWUnitByEntry(NPCID));
if (u.IsValid)
{
Interact.InteractGameObject(u.GetBaseAddress);
wManager.Wow.Helpers.Lua.RunMacroText("/script AcceptQuest();");
}
return true;