Skoal 1 Posted April 2, 2018 Share Posted April 2, 2018 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 Link to comment https://wrobot.eu/forums/topic/9035-how-does-milling-work/ Share on other sites More sharing options...
headcrab 32 Posted April 2, 2018 Share Posted April 2, 2018 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; } Link to comment https://wrobot.eu/forums/topic/9035-how-does-milling-work/#findComment-42081 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