Hello, start to use only NPC of your profile:
(use step "RunCode" to run all code)
wManager.Wow.Helpers.NpcDB.AcceptOnlyProfileNpc = true;
It is not easy way, but add NPC with C# code like this (use this code when you change zone to select good npc for current level/zone):
wManager.Wow.Helpers.NpcDB.ListNpc.RemoveAll(n => n.CurrentProfileNpc); // Remove in NPCDB all Npc added on current profile
var npcRepair = new wManager.Wow.Class.Npc // Npc repair info
{
Name = "Npc name",
Entry = 1234,
Faction = wManager.Wow.Class.Npc.FactionType.Neutral,
ContinentId = wManager.Wow.Enums.ContinentId.Azeroth,
Position = new robotManager.Helpful.Vector3(1, 2, 3),
CanFlyTo = true,
Type = wManager.Wow.Class.Npc.NpcType.Repair,
};
wManager.Wow.Helpers.NpcDB.AddNpc(npcRepair, false, true); // Add npc repair to npcdb
var npcVendor = new wManager.Wow.Class.Npc // Npc vendor info
{
Name = "Npc name",
Entry = 1234,
Faction = wManager.Wow.Class.Npc.FactionType.Neutral,
ContinentId = wManager.Wow.Enums.ContinentId.Azeroth,
Position = new robotManager.Helpful.Vector3(1, 2, 3),
CanFlyTo = true,
Type = wManager.Wow.Class.Npc.NpcType.Vendor,
};
wManager.Wow.Helpers.NpcDB.AddNpc(npcVendor, false, true); // Add npc vendor to npcdb
If you want force WRobot to go to vendor/repair:
wManager.Wow.Bot.States.ToTown.ForceToTown = true;