April 2, 20188 yr I was wondering if you could mass disenchant all the green and blue stuff in your inventory, cause it seems I need to type all of the items in the milling options if I want them to get disenchanted, in that case that saves me no time
April 2, 20188 yr You can add this function to your fightclass or to plugin and mill all herbs in bags at once. For example, you can add it to Profession Helper plugin and call it from craftTask: private bool milling() { string command = @" local function findherb() local function f(b,s) return select(7,GetItemInfo(GetContainerItemLink(b,s) or 0))==""Herb"" and select(2,GetContainerItemInfo(b,s))>=5 end for i=0,4 do for j=1,GetContainerNumSlots(i) do if f(i,j) then return i,j end end end end local result = false while (true) do local b,s = findherb() if (not b or not s) then return result end result = true CastSpellByName(""Milling"") UseContainerItem(b,s) end"; bool result = Lua.LuaDoString<bool>(command); Usefuls.WaitIsCastingAndLooting(); return result; }
Create an account or sign in to comment