Showboat 5 Posted February 12, 2017 Share Posted February 12, 2017 Hi, I noticed a problem with the ammo bag on a hunter, it counts it as free bag space. So if i have 3+ free spaces in my ammo bag and the bot set to sell when it hits 2 free spaces it will never sell! Will continue to try and loot and fail everytime. Can we have the ammo bags blacklisted so it doesnt count? Also, was looking for an option to buy ammo, but cant see to see it on the advanced setting, options for dont sell your ammo and hearthstone, but nothing for buy. Is this coming? Or am i a dope!? Great product! Keep up the good work and support :) Link to comment https://wrobot.eu/forums/topic/5093-hunter-ammo-bags-loot-and-buying-ammo/ Share on other sites More sharing options...
clemcarpi 0 Posted February 12, 2017 Share Posted February 12, 2017 Please could you sharde your Fight Class ? Thanks a lote Link to comment https://wrobot.eu/forums/topic/5093-hunter-ammo-bags-loot-and-buying-ammo/#findComment-23560 Share on other sites More sharing options...
Showboat 5 Posted February 12, 2017 Author Share Posted February 12, 2017 I took most of this from an exising profile and tweaked it for vanilla. Its far from perfect, i cant get heal pet to work... But its grinding away for me ok. I also included the fixes for auto shot. Been using this since about level 15, now nearly 20. Legion lowbie BM Hunter2.xml Link to comment https://wrobot.eu/forums/topic/5093-hunter-ammo-bags-loot-and-buying-ammo/#findComment-23572 Share on other sites More sharing options...
Zickefoose 5 Posted May 16, 2017 Share Posted May 16, 2017 To bad no one is willing to help here. I think it has to do with greedy hands..... ( I.E. intentionally left out to encourage more fighter class sales ) anarchia 1 Link to comment https://wrobot.eu/forums/topic/5093-hunter-ammo-bags-loot-and-buying-ammo/#findComment-26805 Share on other sites More sharing options...
Arcangelo 105 Posted June 7, 2017 Share Posted June 7, 2017 Just make an open while statement - like: If ObjectManager.Me.Level > xxxx While wManager.Wow.Helpers.ItemsManager.GetItemCountByIdLUA(xxxxx) < xxxxx; Runcode: Var npc = new Npc{Entry = xxxx,Position = new Vector3(Xxxxx, xxxxx, xxxx),Type = Npc.NpcType.Vendor};int itemId = xxxx;if (GoToTask.ToPositionAndIntecractWith(npc)){Vendor.BuyItem(ItemsManager.GetNameById(itemId), xxxxx);}return true; And end if ObjectManager.Me.Level <= xxxx And make a go to step, to make it a loop? ? And for the blacklisting: wManager.wManagerSetting.Add blacklist "find where the bag is stores"Entry(xxxx, true); - And it have nothing to do with the fightclass... It is the profiles that needs tweaks. Personally I don't put stuff like this in my profiles, as that would be a hell, if you don't run a hunter ;) I haven't tested it - so you might need to tweak it :-) - but this should give you an idea to move forward Link to comment https://wrobot.eu/forums/topic/5093-hunter-ammo-bags-loot-and-buying-ammo/#findComment-27507 Share on other sites More sharing options...
d3kxn 2 Posted December 9, 2017 Share Posted December 9, 2017 I have something like this in my fight class to detect this situation: wManager.Events.LootingEvents.OnLootingTaskEnd += (cancelable) => { this.CheckBagStopConditions(); }; /* * Check whether or not to stop the bot when the inventory is full * or no ammonition is available anymore. * (The full bag detection of wrobot is broken (because of the quiver)) */ private void CheckBagStopConditions() { if (!this.HasBagSpaceFree() || !this.HasAmmonition()) { Logging.Write("Stop the bot!"); Products.ProductStop(); } } private bool HasBagSpaceFree() { int FreeTotal = wManager.Wow.Helpers.Bag.GetContainerNumFreeSlotsNormalType; int FreeQuiver = wManager.Wow.Helpers.Bag.GetContainerNumFreeSlotsByBagID(4); // TODO: Make configurable int FreeForLoot = FreeTotal - FreeQuiver; return FreeForLoot > 0; } private bool HasAmmonition() { if (MySettings.CurrentSetting.AmmonitionName == "") { return true; // disable this check } return ItemsManager.GetItemCountByNameLUA(MySettings.CurrentSetting.AmmonitionName) > 0; } It currently simply stops the bot. But you could use it to do anything else in this situation. You will need to replace MySettings.CurrentSetting.AmmonitionName with the name of the ammonition you use. Matenia 1 Link to comment https://wrobot.eu/forums/topic/5093-hunter-ammo-bags-loot-and-buying-ammo/#findComment-36415 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