• Visit Rebornbuddy
  • [Plugin] Kill Rares and Loot Chests

    Discussion in 'Uncataloged' started by Pasterke, Dec 2, 2014.

    1. Rusty_Trombone

      Rusty_Trombone Member

      Joined:
      Oct 30, 2011
      Messages:
      348
      Likes Received:
      0
      Trophy Points:
      16
      I think I found it. The CanLoot is to blame, since according to documentation "Returns true if you can loot this gameobject, works for herbs minerals and chests.". Remove CanLoot and use something like !IsHerb && !IsMineral

      Code:
      List<WoWGameObject> chests = ObjectManager.GetObjectsOfTypeFast<WoWGameObject>().Where(c => c != null
                                                        && c.Distance <= Range
                                                        && c.SubType == WoWGameObjectType.Chest
                                                        && !Blacklist.Contains(c.Guid, BlacklistFlags.All)
                                                        && c.Distance <= Range
                                                        && !c.IsHerb
                                                        && !c.IsMineral).OrderBy(c => c.Distance).ToList();
      This is quick and dirty. You need to use the variables in the other post that indicated whenther the toon has the profession of course.
       
      Last edited: Aug 22, 2015
    2. wizardpt

      wizardpt Member

      Joined:
      Sep 26, 2012
      Messages:
      414
      Likes Received:
      0
      Trophy Points:
      16
      I cant get this working , i get always the mining bug
       
    3. hbuser23

      hbuser23 New Member

      Joined:
      Aug 18, 2015
      Messages:
      22
      Likes Received:
      1
      Trophy Points:
      0
      I did some modificationbs to the Main.cs. Increased the performance, locked chests are ignored and if a chest can't be reached it will be blacklisted.
       

      Attached Files:

      • Main.cs
        File size:
        7.2 KB
        Views:
        354
      Last edited: Nov 8, 2015
    4. crashburn833

      crashburn833 New Member

      Joined:
      Jun 18, 2012
      Messages:
      4
      Likes Received:
      0
      Trophy Points:
      0
      Works well with legion still useful for collecting artifact boxes
       
    5. Strelok27

      Strelok27 Member

      Joined:
      Dec 7, 2014
      Messages:
      85
      Likes Received:
      3
      Trophy Points:
      8
      While it certainly does detect rares still, it does not however move towards said rares.
       
    6. xiangua

      xiangua New Member

      Joined:
      Jan 21, 2014
      Messages:
      5
      Likes Received:
      0
      Trophy Points:
      0
      This won't show up in my plugins list :(
       
    7. StickyIcky1775

      StickyIcky1775 Member

      Joined:
      Mar 3, 2012
      Messages:
      53
      Likes Received:
      1
      Trophy Points:
      8
      Anyone know how to update this?
      Would be really helpful!
       
    8. GMJohnny

      GMJohnny New Member

      Joined:
      Nov 19, 2014
      Messages:
      8
      Likes Received:
      0
      Trophy Points:
      0
      Does anyone know if this loots the fishing barrels from fishing artifact!
       
    9. speshulk926

      speshulk926 Community Developer

      Joined:
      Dec 8, 2014
      Messages:
      911
      Likes Received:
      17
      Trophy Points:
      18
      It doesn't even work and hasn't been modified for Legion. As far as I know there is nothing that loots the barrels at this point. Fishing Buddy locks movement down really bad, so it's next to impossible to add in Fishing Barrels.
       

    Share This Page