Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

My Bot doesn't using exact NPC's from my proflie. Bot trying to buy food and drink from bag and weapon vendors, but i didn't add them to my profile.

  • Author
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 😞

  • Author

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

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

  • Author
1 hour ago, Droidz said:

It's caused by your plugin AutoSelectFoodAndDrink

then, how can add in force to buy 'items' with code?


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

  • Author
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.

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

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.