• Visit Rebornbuddy
  • [Plugin]ItsATrap - Barn Trapper

    Discussion in 'Plugins' started by Opply, Jan 10, 2015.

    1. Opply

      Opply Community Developer

      Joined:
      Feb 28, 2013
      Messages:
      328
      Likes Received:
      29
      Trophy Points:
      0
      I don't have a warlock at lvl 100 with decent gear, so have not had anything to test with.
      But if you play a spec where you tank the mobs and not a pet it should be fine...

      Tbh, I have no idea.. Would think it comes down to the settings used and what combat routine you run..
      My toons that does this is at least 615+ ilvl, hunters can probs be lower ilvl than that (pet seems to take very little dmg).

      All I can say is; give it a try, if you toon dies alot without trapping anything, tweak the CR config or try to get it some gear.. :)
       
    2. abndrew82

      abndrew82 New Member

      Joined:
      May 14, 2010
      Messages:
      323
      Likes Received:
      1
      Trophy Points:
      0
      This worked great for 2 of my chars, 630ish Prot Warrior and Guardian druid both farmed about 30 crates using this plugin and the trampler profile. Going to run more to get a good stock up.
       
    3. daemon9

      daemon9 New Member

      Joined:
      Feb 11, 2011
      Messages:
      528
      Likes Received:
      5
      Trophy Points:
      0
      Hmm I set it to GrindBot using the profile you posted with the plugin enabled and Wetland Trampler as the mob name, but trapping isn't taking place...it just kills. Am I doing something wrong? Here's a log:


      Oh I see...the Mob ID is required...not just the mob name. Got it working...sorry!


      Edit: Although my toon waits for the mob to despawn before moving on to the next. I don't believe this is intended, correct?
       
      Last edited: Feb 10, 2015
    4. abndrew82

      abndrew82 New Member

      Joined:
      May 14, 2010
      Messages:
      323
      Likes Received:
      1
      Trophy Points:
      0
      I think that's an HB thing, your char wont move on cause it still thinks the mob is alive and attackable. I noticed when I have a follower with me the follower keeps nuking it all the way till it despawns, which makes me think its HB / CC related that it waits till they both fully recognize the mob is dead
       
    5. Opply

      Opply Community Developer

      Joined:
      Feb 28, 2013
      Messages:
      328
      Likes Received:
      29
      Trophy Points:
      0
      yeah, it will wait until it despawns.. it was either that or attacking the mob (like grind bot wants to do..)...
      chars with bad gear will probs eat between every kill anyways, so I don't rly see the harm in it :)
       
    6. Restobro

      Restobro New Member

      Joined:
      Oct 4, 2012
      Messages:
      34
      Likes Received:
      0
      Trophy Points:
      0
      While I don't have barn lvl 3, I changed the mob-id in the profile to riverbeasts instead of tramplers. I have a question tho, would it be possible to "cancel attack" when laying trap? It works flawless for me except for the fact that my over-geared balance druid tend to kill the mobs before laying the trap. For example when a mob is on 20% hp and the plugin is trying to spam a trap at the same time as my routine is casting a 3 second starfire that I know will kill the riverbeast. I already changed the trap percent to 75 but it still happens sometimes. It would be great if the plugin would also cancel that starfire and lay the trap. Thanks in advance!
       
    7. pefogor

      pefogor New Member

      Joined:
      Aug 12, 2014
      Messages:
      46
      Likes Received:
      0
      Trophy Points:
      0
    8. lukasfc

      lukasfc New Member

      Joined:
      Feb 25, 2013
      Messages:
      17
      Likes Received:
      0
      Trophy Points:
      0
      Its working great now. i was using another profile, and that was the problem. great work, ty
       
    9. Opply

      Opply Community Developer

      Joined:
      Feb 28, 2013
      Messages:
      328
      Likes Received:
      29
      Trophy Points:
      0
      sorry, there are no plans to make better support for barn level 1-2.
      You are however free the use the code in any way you like, so if you want to fix it yourself, go ahead :)
       
    10. Pavel1

      Pavel1 New Member

      Joined:
      Feb 18, 2015
      Messages:
      2
      Likes Received:
      1
      Trophy Points:
      0
      Hey, thanks for the plugin!

      The 'kite logic" wasn't looking good to be. It was just moving backwards and not hitting the trap some times (with Wooly Clefthoof). So... I FIXED IT!!
      Now it's calculating diametrically opposed point, as if the trap is the center and the target is on a circle. It's easier to show :)
      [​IMG]

      Feel free do and it to your plugin if you like.
      Code:
      		//logic to "kite" mob over trap
      		private void kiteTarget()
      		{
      			WoWUnit target = Me.CurrentTarget;
      
      			//is target trapped all ready?
      			bool hasTargetBeenTrapped = target.HasAura(TRAPPED_AURA_NAME);
      			if(!hasTargetBeenTrapped)
      			{
      				if(hunterKiteLogic())
      				{
      					petFollow();
      					return;
      				}
      				petFollow();
      				Log("Moving diametrically to trap!");
      				//getting trap object to work with
      				WoWObject trap_object = getPlacedTrapObject();
      				if(trap_object != null){
      					WoWPoint target_location = Me.CurrentTarget.Location;
      					WoWPoint trap_location = trap_object.Location;
      					float min_dist = 6; // min distance between Me and Trap
      					float x_dist = target_location.X - trap_location.X;
      					float y_dist = target_location.Y - trap_location.Y;
      					
      					//setting min distance if target is too close to the trap
      					if(Math.Abs(x_dist) < min_dist)
      						if(x_dist < 0) x_dist = -min_dist;
      						else x_dist = min_dist;
      						
      					if(Math.Abs(y_dist) < min_dist)
      						if(y_dist < 0) y_dist = -min_dist;
      						else y_dist = min_dist;
      						
      					float x_new = trap_location.X - x_dist;
      					float y_new = trap_location.Y - y_dist;
      					
      					//finally go to calculated location
      					WoWMovement.ClickToMove(x_new, y_new, Me.Location.Z);
      				}
      				//this doesn't freeze WoW
      				StyxWoW.Sleep(2000);
      			}
      			else
      			{
      				Log("Target successfully trapped!!!");
      				Me.ClearTarget();
      				postTrappingLogic();
      			}
      		}
      
      		//get placed trap as WoWObject
              private WoWObject getPlacedTrapObject()
              {
                  hasTrap = true;
                  WoWObject deadlyTrap = ObjectManager.GetObjectsOfType<WoWObject>().FirstOrDefault(o => o.Entry == 84774);
                  if(deadlyTrap != null)
                  {
                      return deadlyTrap;
                  }
      
                  WoWObject improvedTrap = ObjectManager.GetObjectsOfType<WoWObject>().FirstOrDefault(o => o.Entry == 84773);
                  if (improvedTrap != null)
                  {
                      return improvedTrap;
                  }
      
                  WoWObject basicTrap = ObjectManager.GetObjectsOfType<WoWObject>().FirstOrDefault(o => o.Entry == 83925);
                  if (basicTrap != null)
                  {
                      return basicTrap;
                  }
                  hasTrap = false;
      
                  Log("Could not find a Placed Trap near you");
                  return null;
              }
      
      P.S. let me know what you think. I spent at least 30 mins to write this message :)
       
      Last edited: Feb 19, 2015
      Opply likes this.
    11. menand

      menand New Member

      Joined:
      Mar 24, 2013
      Messages:
      154
      Likes Received:
      0
      Trophy Points:
      0
      It work perfect with my Druid, but didnt work with Warlock, and very bad work with Rogue and Monk.

      Wich Combat routins i must use? How much must be my Ilvl ? Any setups?..
       
    12. blablub

      blablub New Member

      Joined:
      Dec 1, 2012
      Messages:
      809
      Likes Received:
      4
      Trophy Points:
      0
      i got no trubles 560 dk / warrior (downtimes) / shaman (ehn) / monk (ww) (tuanhas) and on my druid (owl) with stars

      dk and shaman can even handle the alpha wolfs ;)

      @menand

      since i usally farm 2-4h i take the time and switch talents / glyphs, since iam not familiar with the warlock i can´t say much but if you got problems with surviving try a spec with a tankpet / or selfheal vs singel target.
       
    13. Opply

      Opply Community Developer

      Joined:
      Feb 28, 2013
      Messages:
      328
      Likes Received:
      29
      Trophy Points:
      0
      Great! Always cool with some user contributions :)

      However, I do see some problems with the math you use in some situations, but I can probs add something similar to this into the plugin so it works better with mobs with knockback.. :)
      I'll see if I can get it tested and out over the weekend :)

      warlock with pet tank will probs have issues

      I don't rly know how well everything works..
      For my toons at 100 that struggled at the start, I added more gear (PvP/Highmaul LFR)..
      I've only rly tested with TuanHa's CR, others might work just fine.. just keep testing stuff out :)
       
    14. menand

      menand New Member

      Joined:
      Mar 24, 2013
      Messages:
      154
      Likes Received:
      0
      Trophy Points:
      0
      560!???

      not 650?? my 610-620 alts doesnt enought....
       
    15. Opply

      Opply Community Developer

      Joined:
      Feb 28, 2013
      Messages:
      328
      Likes Received:
      29
      Trophy Points:
      0
      New version is out, thanks to Pavel1 for the input.. :)

      I think this new version will work a bit better on warlocks with pet tank..
      Should hopefully also deal better on mobs with knockback..

      Keep me posted! :)
       
      Last edited: Feb 20, 2015
    16. oshir

      oshir New Member

      Joined:
      Nov 18, 2014
      Messages:
      22
      Likes Received:
      0
      Trophy Points:
      0
      The new version work fine for me , no lag or freeze with my warlock :) Thank for this update
       
    17. menand

      menand New Member

      Joined:
      Mar 24, 2013
      Messages:
      154
      Likes Received:
      0
      Trophy Points:
      0
      excellent work!

      65+ loots : 0 Deaths; 620 Warlock.
       
    18. flua2000

      flua2000 New Member

      Joined:
      Dec 4, 2013
      Messages:
      3
      Likes Received:
      0
      Trophy Points:
      0
      loxxy 630 -- desto -- working like a charm. 20 traps in 30ish min.

      good bøy!
       
    19. Joakim1331

      Joakim1331 New Member

      Joined:
      Jan 12, 2011
      Messages:
      108
      Likes Received:
      0
      Trophy Points:
      0
      Works perfect, thank you! <3
       
    20. Pavel1

      Pavel1 New Member

      Joined:
      Feb 18, 2015
      Messages:
      2
      Likes Received:
      1
      Trophy Points:
      0
      I've just got an idea and you have polished it well. Cheers, man :)
       

    Share This Page