Jump to content

My Bot doesn't using exact NPC's from my proflie


botok

Recommended Posts

Hello, in advanced general settings you have the option to use only NPC of your profile (and not all NPCs of your NPCDB.

If you want to activate it with a code, you can run :

wManager.wManagerSetting.CurrentSetting.AcceptOnlyProfileNpc = true;

 

Link to comment
Share on other sites

On 4/10/2023 at 5:46 PM, Droidz said:

Hello, in advanced general settings you have the option to use only NPC of your profile (and not all NPCs of your NPCDB.

If you want to activate it with a code, you can run :

wManager.wManagerSetting.CurrentSetting.AcceptOnlyProfileNpc = true;

 

I got another problem here. My bot after killing 10-20 mobs heads to town, but i didn't set timer and bag is not full. Which setting caused that thing? Because of that my bot leveling too slow 😞

Link to comment
Share on other sites

wManager.wManagerSetting.CurrentSetting.NpcScanVendor = false;
wManager.wManagerSetting.CurrentSetting.AddToNpcDb = false;
wManager.wManagerSetting.CurrentSetting.AcceptOnlyProfileNpc = true;
wManager.wManagerSetting.CurrentSetting.Selling = true;
wManager.wManagerSetting.CurrentSetting.AttackElite = true;
wManager.wManagerSetting.CurrentSetting.AttackBeforeBeingAttacked = true;
wManager.wManagerSetting.CurrentSetting.SellGray = true;
wManager.wManagerSetting.CurrentSetting.SellWhite = true;
wManager.wManagerSetting.CurrentSetting.SellGreen = true;
wManager.wManagerSetting.CurrentSetting.SellBlue = true;
wManager.wManagerSetting.CurrentSetting.LootChests = true;
wManager.wManagerSetting.CurrentSetting.MaxUnitsNear = 12;
wManager.wManagerSetting.CurrentSetting.CloseIfPlayerTeleported = false;
wManager.wManagerSetting.CurrentSetting.DrinkAmount = 20;
wManager.wManagerSetting.CurrentSetting.RestingMana = true;
wManager.wManagerSetting.CurrentSetting.DrinkPercent = 50;
wManager.wManagerSetting.CurrentSetting.DrinkMaxPercent = 99;
wManager.wManagerSetting.CurrentSetting.FoodPercent = 50;
wManager.wManagerSetting.CurrentSetting.FoodMaxPercent = 99;

there is all settings that i changed, but none of them cause that problem

Link to comment
Share on other sites

Quote

[D] 04:53:06 - [AutoSelectFoodAndDrink] Select food: Haunch of Meat
[D] 04:53:06 - [AutoSelectFoodAndDrink] Select drink: Ice Cold Milk
[D] 04:53:07 - [AutoSelectFoodAndDrink] Drinks: 9
[D] 04:53:07 - [AutoSelectFoodAndDrink] Out of water, force wRobot to town
04:53:08 - [ToTown] Go to town: force go to town enabled

It's caused by your plugin AutoSelectFoodAndDrink

Link to comment
Share on other sites


Read the description. Every vendor (except for Repair) available to your profile NEEDS TO BE A VENDOR WHO SELLS FOOD FOR THIS TO WORK.

You need to force your bot to only know applicable vendors. It will try to select the appropriate food for your level and in your bags, depending on the situation. The code is right there if you want to modify it. Responsibility of configuring WRobot is on you. If you add vendors that don't sell food, the bot will try to go to the closest vendor over and over and never be able to buy food. It'll just force another ToTown state where it can intercept and buy more food.

If you only want to use specific food, you need to change the code. That's why I published everything for free.

Edited by Matenia
Link to comment
Share on other sites

2 hours ago, Matenia said:


Read the description. Every vendor (except for Repair) available to your profile NEEDS TO BE A VENDOR WHO SELLS FOOD FOR THIS TO WORK.

You need to force your bot to only know applicable vendors. It will try to select the appropriate food for your level and in your bags, depending on the situation. The code is right there if you want to modify it. Responsibility of configuring WRobot is on you. If you add vendors that don't sell food, the bot will try to go to the closest vendor over and over and never be able to buy food. It'll just force another ToTown state where it can intercept and buy more food.

If you only want to use specific food, you need to change the code. That's why I published everything for free.

I added only vendors with food, I think he constantly goes to town because i didn't set food amount cuz i dont need food, only drink setted.

Link to comment
Share on other sites

Make sure all your vendors have drinks then.

And then find this:

if (OutOfFood())
{
  Logging.WriteDebug("[AutoSelectFoodAndDrink] Out of food, force wRobot to town");
  ToTown.ForceToTown = true;
}

and replace with

if (false)
{
  Logging.WriteDebug("[AutoSelectFoodAndDrink] Out of food, force wRobot to town");
  ToTown.ForceToTown = true;
}

It will now never go to town to buy food. However, the log file above showed it went to town to buy water. If your water is not in this level appropriate list, you're fucked:
Water at the vendor you're using needs to be the one in the list. You may follow down the code and adjust it to your liking.

{ 0, 159 }, // Refreshing Spring water
{ 5, 159 }, // Refreshing Spring water
{ 10, 1179 }, // Ice Cold Milk
{ 20, 1205 }, // Melon Juice
{ 30, 1708 }, // Sweet Nectar
{ 40, 1645 }, // Moonberry Juice
{ 50, 8766 }, // Morning Glory Dew
{ 61, 28399 }, // Filtered Draenic Water -- make sure this is only used in TBC
{ 65, 27860 }, // Purified Draenic Water
{ 71, 33444 }, // Pungent Seal Whey -- make sure this is only used in WotLK
{ 75, 33444 }, // Pungent Seal Whey
{ 85, 8766 },

 

Edited by Matenia
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...