• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Auto crafting

    Discussion in 'Archives' started by izzy, Sep 29, 2010.

    1. izzy

      izzy Member

      Joined:
      Jan 15, 2010
      Messages:
      249
      Likes Received:
      7
      Trophy Points:
      18
      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)
       

      Attached Files:

      Last edited: Nov 11, 2010
    2. erenion

      erenion DEVELOPER Buddy Core Dev

      Joined:
      Jan 15, 2010
      Messages:
      321
      Likes Received:
      6
      Trophy Points:
      0
      Pm me your MSN and I'd be happy to help with a GUI :)

      Looks good :) thanks for contributing!
       
    3. LiquidAtoR

      LiquidAtoR Community Developer

      Joined:
      Jan 15, 2010
      Messages:
      1,430
      Likes Received:
      52
      Trophy Points:
      48
      hmmmm....... :D
      Quite sure I don't have that in my TidyBags :p

      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();
                      }
                  }
      
       
      Last edited: Sep 30, 2010
    4. Weyoun

      Weyoun New Member

      Joined:
      Sep 27, 2010
      Messages:
      8
      Likes Received:
      0
      Trophy Points:
      1
      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.
       

      Attached Files:

    5. izzy

      izzy Member

      Joined:
      Jan 15, 2010
      Messages:
      249
      Likes Received:
      7
      Trophy Points:
      18
      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.
       
      Last edited: Sep 30, 2010
    6. ene1

      ene1 New Member

      Joined:
      Jul 21, 2010
      Messages:
      27
      Likes Received:
      1
      Trophy Points:
      0
      Milling one time, then stop
       
    7. izzy

      izzy Member

      Joined:
      Jan 15, 2010
      Messages:
      249
      Likes Received:
      7
      Trophy Points:
      18
      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
       
    8. LiquidAtoR

      LiquidAtoR Community Developer

      Joined:
      Jan 15, 2010
      Messages:
      1,430
      Likes Received:
      52
      Trophy Points:
      48
      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 ;)
       
    9. Ronnieole

      Ronnieole New Member

      Joined:
      Jan 15, 2010
      Messages:
      98
      Likes Received:
      0
      Trophy Points:
      0
      ROFL!!! nice one!

      Im gonna roll herb, inscription to try this one!
       
    10. izzy

      izzy Member

      Joined:
      Jan 15, 2010
      Messages:
      249
      Likes Received:
      7
      Trophy Points:
      18
      Let me know if you have any problems or suggestions .
       
    11. db00

      db00 Member

      Joined:
      Feb 25, 2010
      Messages:
      418
      Likes Received:
      1
      Trophy Points:
      18
      the skining one works nicely , can you make 1 for tailoring?to make frostweave cloth into bolt of frostweave?
       
    12. db00

      db00 Member

      Joined:
      Feb 25, 2010
      Messages:
      418
      Likes Received:
      1
      Trophy Points:
      18
      Leather-o-matic.cs doesn't work with the new hb .
       
    13. Beringtom

      Beringtom Member

      Joined:
      Mar 7, 2010
      Messages:
      278
      Likes Received:
      0
      Trophy Points:
      16
      a all-in-one addon could be nice :p with a "tickbox" option for each funtion :p
       
    14. db00

      db00 Member

      Joined:
      Feb 25, 2010
      Messages:
      418
      Likes Received:
      1
      Trophy Points:
      18
      can someone please update this?
       
    15. ryder1337

      ryder1337 New Member

      Joined:
      Sep 17, 2010
      Messages:
      189
      Likes Received:
      0
      Trophy Points:
      0
      I vote for an update for this. I really need it .. I'll gladly give you rep or whatever you may like :)
       
    16. BPAlpha

      BPAlpha New Member

      Joined:
      Jan 15, 2010
      Messages:
      594
      Likes Received:
      41
      Trophy Points:
      0
      ill work on a all round if anyone wants just have to wait for new release of HB
       
    17. engerd

      engerd New Member

      Joined:
      Feb 3, 2010
      Messages:
      34
      Likes Received:
      0
      Trophy Points:
      0
      Update this for cata plz
       
    18. ryder1337

      ryder1337 New Member

      Joined:
      Sep 17, 2010
      Messages:
      189
      Likes Received:
      0
      Trophy Points:
      0
      Is the new release of HB ready for this to be made? :)
       
    19. jsmb768ypl

      jsmb768ypl Member

      Joined:
      Jan 15, 2010
      Messages:
      199
      Likes Received:
      1
      Trophy Points:
      18
      im working on one, check destroyer deluxe for updates!
       
    20. ryder1337

      ryder1337 New Member

      Joined:
      Sep 17, 2010
      Messages:
      189
      Likes Received:
      0
      Trophy Points:
      0
      Cool, nice man.
       

    Share This Page