botok 3 Posted April 10, 2023 Share Posted April 10, 2023 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. Link to comment Share on other sites More sharing options...
Droidz 2737 Posted April 10, 2023 Share Posted April 10, 2023 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 More sharing options...
botok 3 Posted April 10, 2023 Author Share Posted April 10, 2023 Thank you! I will try this 🙂 Link to comment Share on other sites More sharing options...
botok 3 Posted April 12, 2023 Author Share Posted April 12, 2023 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 More sharing options...
botok 3 Posted April 12, 2023 Author Share Posted April 12, 2023 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 More sharing options...
Droidz 2737 Posted April 12, 2023 Share Posted April 12, 2023 Hello, check if wManager.wManagerSetting.CurrentSetting.ToTownTimerActivated is disabled, but it's easier to help you with the full log file. Link to comment Share on other sites More sharing options...
botok 3 Posted April 12, 2023 Author Share Posted April 12, 2023 1 hour ago, Droidz said: Hello, check if wManager.wManagerSetting.CurrentSetting.ToTownTimerActivated is disabled, but it's easier to help you with the full log file. 12 апр. 2023 04H20 - NOKYMAe.log.html Link to comment Share on other sites More sharing options...
botok 3 Posted April 12, 2023 Author Share Posted April 12, 2023 12_._2023_03H50_-_EryaArd.log.html Link to comment Share on other sites More sharing options...
Droidz 2737 Posted April 12, 2023 Share Posted April 12, 2023 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 More sharing options...
botok 3 Posted April 12, 2023 Author Share Posted April 12, 2023 1 hour ago, Droidz said: It's caused by your plugin AutoSelectFoodAndDrink then, how can add in force to buy 'items' with code? Link to comment Share on other sites More sharing options...
Matenia 627 Posted April 12, 2023 Share Posted April 12, 2023 (edited) 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 April 12, 2023 by Matenia Link to comment Share on other sites More sharing options...
botok 3 Posted April 12, 2023 Author Share Posted April 12, 2023 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 More sharing options...
Matenia 627 Posted April 12, 2023 Share Posted April 12, 2023 (edited) 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 April 12, 2023 by Matenia Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now