eniac86 21 Posted December 14, 2018 Share Posted December 14, 2018 Can you make wrobot distinct between ammo-bag-slots and actual real bag slots. Setting a point on when to do a vendor run because of full bags with a hunter is horrible. But as hunter is probably the best farmer class this is a huge problem for everyone running a hunter. Link to comment https://wrobot.eu/forums/topic/10498-can-you-make-it-so-wrobot-does-not-count-quiverammobag-slots-als-normal-bag-slots/ Share on other sites More sharing options...
Marsbar 228 Posted December 14, 2018 Share Posted December 14, 2018 (edited) Try this plugin, I made it ages ago for a friend, i think it does what you're after, you just have to give it the correct bag slot id, id 1 is the first bag next to your backpack, then its 2, 3, 4. AmmoV2.cs edit: if it works for you let me know and I'll post it for other people, i thought there was another plugin or something that covers this but can't find anything atm. Edited December 14, 2018 by Marsbar eniac86 1 Link to comment https://wrobot.eu/forums/topic/10498-can-you-make-it-so-wrobot-does-not-count-quiverammobag-slots-als-normal-bag-slots/#findComment-49922 Share on other sites More sharing options...
Matenia 628 Posted December 15, 2018 Share Posted December 15, 2018 @Marsbar you can do this completely automatically: Lua.LuaDoString(@" if GetItemInfoFromItemLink ~= nil then return end function GetItemInfoFromItemLink(link) local itemId = nil; if ( type(link) == 'string' ) then _,_, itemId = string.find(link, 'item:(%d+):'); if (itemId) then local version, build, date = GetBuildInfo(); if (tonumber(build) > 5875) then local itemName, itemLink, itemQuality, itemLevel, itemMinLevel, itemType, itemSubType, itemCount, itemEquipLoc, itemTexture = GetItemInfo(itemId); return itemName, itemLink, itemQuality, itemLevel, itemType, itemSubType, itemCount, itemTexture; else return GetItemInfo(itemId); end end end end "); uint quiverSlotCount = Lua.LuaDoString<uint>(@" for slot = 20,23 do local link = GetInventoryItemLink('player', slot); if link then then local itemName, itemLink, itemQuality, itemLevel, itemType, itemSubType, itemCount, itemTexture = GetItemInfoFromItemLink(link); if itemType == 'Quiver' then return GetContainerNumSlots(slot - 19); -- gets back slot end end end "); Works at least vanilla => WotLK. So you can turn that into a free plugina nd post it here :) t00z and Marsbar 2 Link to comment https://wrobot.eu/forums/topic/10498-can-you-make-it-so-wrobot-does-not-count-quiverammobag-slots-als-normal-bag-slots/#findComment-49926 Share on other sites More sharing options...
eniac86 21 Posted December 21, 2018 Author Share Posted December 21, 2018 @marsbar the plugin throws an error upon closing the settings window. But it works nevertheless. Thank you ❤️ Link to comment https://wrobot.eu/forums/topic/10498-can-you-make-it-so-wrobot-does-not-count-quiverammobag-slots-als-normal-bag-slots/#findComment-50043 Share on other sites More sharing options...
Marsbar 228 Posted February 13, 2019 Share Posted February 13, 2019 (edited) On 12/15/2018 at 9:10 AM, Matenia said: @Marsbar you can do this completely automatically: Works at least vanilla => WotLK. So you can turn that into a free plugina nd post it here ? couldn't actually get this to work so using this instead: return Lua.LuaDoString<int>(@" for slot = 20,23 do local link = GetInventoryItemLink('player', slot); if link then local _, _, _, _, _, itemType = GetItemInfo(link); if itemType == 'Quiver' then return slot - 19; -- gets back slot end end end "); Edited February 13, 2019 by Marsbar Link to comment https://wrobot.eu/forums/topic/10498-can-you-make-it-so-wrobot-does-not-count-quiverammobag-slots-als-normal-bag-slots/#findComment-51519 Share on other sites More sharing options...
Droidz 2738 Posted February 14, 2019 Share Posted February 14, 2019 I'll try to resolve this problem in bot, can you confirm than list of bags is complete here? https://www.wowhead.com/icon=133581/inv-misc-ammo-bullet-01#used-by-item:0+14-2 (items type Bag)? Link to comment https://wrobot.eu/forums/topic/10498-can-you-make-it-so-wrobot-does-not-count-quiverammobag-slots-als-normal-bag-slots/#findComment-51532 Share on other sites More sharing options...
Marsbar 228 Posted February 14, 2019 Share Posted February 14, 2019 7 minutes ago, Droidz said: I'll try to resolve this problem in bot, can you confirm than list of bags is complete here? https://www.wowhead.com/icon=133581/inv-misc-ammo-bullet-01#used-by-item:0+14-2 (items type Bag)? https://wotlk.evowow.com/?items=11 all types of hunter quiver/ammobags. These were removed cata onwards so it's only needed for WOTLK, TBC and Vanilla Link to comment https://wrobot.eu/forums/topic/10498-can-you-make-it-so-wrobot-does-not-count-quiverammobag-slots-als-normal-bag-slots/#findComment-51533 Share on other sites More sharing options...
Marsbar 228 Posted February 14, 2019 Share Posted February 14, 2019 20 minutes ago, Droidz said: I'll try to resolve this problem in bot, can you confirm than list of bags is complete here? https://www.wowhead.com/icon=133581/inv-misc-ammo-bullet-01#used-by-item:0+14-2 (items type Bag)? Also can you let me know once you've resolved it? Then I can get rid of https://wrobot.eu/files/file/1766-free-ammo/ Link to comment https://wrobot.eu/forums/topic/10498-can-you-make-it-so-wrobot-does-not-count-quiverammobag-slots-als-normal-bag-slots/#findComment-51534 Share on other sites More sharing options...
Droidz 2738 Posted February 14, 2019 Share Posted February 14, 2019 Bags are in objectmanager (to check, but it's my idea ) Link to comment https://wrobot.eu/forums/topic/10498-can-you-make-it-so-wrobot-does-not-count-quiverammobag-slots-als-normal-bag-slots/#findComment-51535 Share on other sites More sharing options...
Droidz 2738 Posted February 14, 2019 Share Posted February 14, 2019 problem is only in vanilla? Link to comment https://wrobot.eu/forums/topic/10498-can-you-make-it-so-wrobot-does-not-count-quiverammobag-slots-als-normal-bag-slots/#findComment-51536 Share on other sites More sharing options...
Matenia 628 Posted February 14, 2019 Share Posted February 14, 2019 no Vanila, TBC, WotLK Link to comment https://wrobot.eu/forums/topic/10498-can-you-make-it-so-wrobot-does-not-count-quiverammobag-slots-als-normal-bag-slots/#findComment-51539 Share on other sites More sharing options...
Droidz 2738 Posted February 14, 2019 Share Posted February 14, 2019 wManager.Wow.Helpers.Bag.GetContainerNumFreeSlotsNormalType return good result for me in Wotlk and Tbc Link to comment https://wrobot.eu/forums/topic/10498-can-you-make-it-so-wrobot-does-not-count-quiverammobag-slots-als-normal-bag-slots/#findComment-51540 Share on other sites More sharing options...
Droidz 2738 Posted February 14, 2019 Share Posted February 14, 2019 And code look like: var QuiverAmmoBagsId = new List<int> { 29143, 29144, 29118, 18714, 44447, 44448, 34105, 34106, 34099, 34100, 19319, 19320, 2662, 2663, 8217, 8218, 7371, 7372, 3604, 3605, 3573, 3574, 11362, 11363, 5439, 5441, 7278, 7279, 2101, 2102, }; var freeSlots = 0; var bags = wManager.Wow.ObjectManager.ObjectManager.GetObjectWoWContainer(); foreach (var b in bags) { if (b.IsValid && QuiverAmmoBagsId.Contains(b.Entry) && b.Owner == wManager.Wow.ObjectManager.ObjectManager.Me.Guid && (b.ContainedIn == 0 || b.ContainedIn == wManager.Wow.ObjectManager.ObjectManager.Me.Guid) && !string.IsNullOrWhiteSpace(b.Name)) { freeSlots += Lua.LuaDoString<int>($@" local freeSlots = 0; for bagID = 1, 4 do if GetBagName(bagID) ~= nil and GetBagName(bagID) == '{b.Name.Replace("'", "\'")}' then for s=1,GetContainerNumSlots(bagID) do local i = GetContainerItemInfo(bagID,s); if not i then freeSlots = freeSlots + 1 end end end end return freeSlots;"); } } Link to comment https://wrobot.eu/forums/topic/10498-can-you-make-it-so-wrobot-does-not-count-quiverammobag-slots-als-normal-bag-slots/#findComment-51541 Share on other sites More sharing options...
eniac86 21 Posted March 10, 2019 Author Share Posted March 10, 2019 Hey ?, is this now part of the bot or is the plugin still needed? Link to comment https://wrobot.eu/forums/topic/10498-can-you-make-it-so-wrobot-does-not-count-quiverammobag-slots-als-normal-bag-slots/#findComment-52097 Share on other sites More sharing options...
Droidz 2738 Posted March 11, 2019 Share Posted March 11, 2019 Hello, it is now part of the bot eniac86 1 Link to comment https://wrobot.eu/forums/topic/10498-can-you-make-it-so-wrobot-does-not-count-quiverammobag-slots-als-normal-bag-slots/#findComment-52110 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