Sorry But I Will Not Be Updating These Plugins. Feel Free To Update And Call Them Your Own Ok this a first time working with C# so be easy. HAS NO GUI/SETTING'S. if theres anyone that can help me add a gui it would appreicated as this would bring more custom settings to this plugin. description : Mill-O-Matic- auto milling of herbs if you have Inscription as a profession. I'm pretty sure that i have added all the herbs that can be milled but if i missed any please let me know i will add them. Mills herbs as soon as you have a stack of 5 in ur bags. Leather-O-Matic- turns Borean Leather into Heavy Borean Leather once you have a stack of 6 in your bags. Bolt-O-MaticTurns Frostweave cloth into Bolts of Frostweave once you have 5 in your bags.(NOT TESTED) Installation : place in Plugins folder and check it in HB and it will start as soon as you begin botting. recommended addons for wow : krestack- restacks items in bags (i don't know how to do this threw HB ) Mill-O-Matic - v1.0.0.0- Initial release v1.0.0.1- Edited/optimized by Weyoun v1.0.0.2-Added extra time for loot window to close Leather-O-Matic - v1.0.0.0- Initial release (works for me) v1.0.0.1- Added Skill Level check Bolt-O-Matic - v1.0.0.0- Initial release (NOT TESTED)
hmmmm....... Quite sure I don't have that in my TidyBags On a different notice. Would it not be more efficient to put the query all in 1 part instead of a section for each herb? No idea if this is correct, I just made it with notepad, am on the road, and don't have all my home "Tools" available here. Code: if (sw.Elapsed.TotalSeconds > 2) { foreach (WoWItem item in ObjectManager.GetObjectsOfType<WoWItem>()) { if (_itemList.Contains(item.Entry)) { if (item.StackCount >= 5) { WoWMovement.MoveStop(); SpellManager.CastSpellById(51005); // open milling tradeskill window Styx.Helpers.Logging.Write(Color.FromName("MidnightBlue"), "[Auto Mill]: Using {0} we have {1}", item.Name, item.StackCount); Lua.DoString("UseItemByName(\"" + item.Name + "\")"); Thread.Sleep(1000); sw.Reset(); WoWMovement.MoveStop(); Thread.Sleep(100); SpellManager.CastSpellById(51005); // open Millingtradeskill window Thread.Sleep(2000); int count = item.StackCount; int prevTime = Environment.TickCount; float Time = (count * 1.5f); Logging.Write("Milling will take roughly :{0} seconds", (int)Time); while (item.StackCount >= 5) { SpellManager.CastSpellById(51005); Thread.Sleep(100); sw.Reset(); } } } sw.Reset(); sw.Start(); } }
Yes, it would be a lot more efficient. @OP: I have altered your code a little bit as you said it's your first time. You might recheck the code as I'm very new to HB. The following is not meant to offend you but rather to give you some hints on basic programming practices. You have violated a coding principal called DRY (http://en.wikipedia.org/wiki/Don%27t_repeat_yourself) thus makeing your code not optimal. You also fetched the number of items in all your bags by a function call. In the next line you called this function one again to calculate the number of how many times you have to mill your items. You should have used your stored variable instead of calling a function which is more cost efficient. I also noticed you are trying to cast integer values to integer, you might want to check if this is necessary. If you have further questings regarding programming feel free to PM me.
LiquidAtoR yes its not your code to the "T" but i still gave credit because it was your coding that got it started. Sorry if you got offended but its a learning process for me on my free time. the first aid thing is something else i'm working must have forgotten it. Weyoun thankyou i'm vary new to C# so any help is more than welcome. Again thxs for the help it's making the learning process much faster.
i'll take a look at it. Do u have any addons that makes sure your items are in the biggest stack possible? i.e addon called " kRestack " you can get it at --> wowinterface.com/downloads/info13436-kRestack
lol, was not offended m8. just pointed out that first aid thingy made no sense with rest of the plugin unless you put your fingers in the mill
the skining one works nicely , can you make 1 for tailoring?to make frostweave cloth into bolt of frostweave?